Commit Graph

31604 Commits

Author SHA1 Message Date
Frantisek Hrbata
6133810392 fix: harden input parsing in component_requirements hint module
Currently we silently ignore when the original component is not found
in a hope we can provide at least some meaningful hint. As it turned
out it's not true. Instead of providing misleading hint, just return
error. This adds several checks for situations, which should not happen,
but when they do it should be easier to identify the root cause of the
problem.

For example when hint module received malformed output with extra new
lines, e.g. caused by a bug in RunTool, it wrongly reported the original
component as source component.

This should also fix the tests on Windows.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-25 14:20:22 +01:00
Frantisek Hrbata
0fc2e77017 feat(hints): use all_component_info from project_description.json
Currently the component_requirements hint module does not work
as expected if the component list for a project is trimmed down.
With the new "all_component_info" dictionary info in project_description.json,
the module can produce hints even if cmake's COMPONENTS variable is
set.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-25 14:20:22 +01:00
Frantisek Hrbata
87afd5e829 feat(tools): export information about all components in __COMPONENT_TARGETS
Add new "all_component_info" dictionary into the
project_description.json file. It contains information about all
registered components presented in the __COMPONENT_TARGETS list.
Since components in this list are not fully evaluated, because only the first
stage of cmakefiles processing is done, it does not contain the same information
as the "build_component_info" dictionary. The "type", "file" and "sources" variables
are missing.

Most of the properties are already attached to the component target, so
this only adds INCLUDE_DIRS property to the target during the first cmakefiles
processing stage.

The "all_component_info" dict is generated in a separate function, even
though the original function for "build_component_info" could be
adjusted. This introduces a little bit of boilerplate, but keeps it
logically separated and probably easier if we want to extend it in the
future.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-25 14:20:22 +01:00
Frantisek Hrbata
17aa60886c fix(hints): properly identify source component
If there is a component(child) within a component(parent), like for test_apps, the parent
component may be wrongly identified as source component for the failed include. This may
lead to a false bug report if the parent component has component, which provides the missing
header, in requirements.

Fix this by looking for the longest matching source component directory.

Suggested-by: Ivan Grokhotkov <ivan@espressif.com>
Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-01-25 14:20:22 +01:00
Island
e4ae078224 Merge branch 'bugfix/ble_check_adv_data_v5.1' into 'release/v5.1'
fix(bt/bluedroid): Fix ble adv data check to avoid memory overflow(backport v5.1)

See merge request espressif/esp-idf!28406
2024-01-25 12:06:02 +08:00
Island
7d45bbef63 Merge branch 'bugfix/fix_ble_memory_leak_v5.1' into 'release/v5.1'
fix(ble/bluedroid): Fix ble memory leak when gattc config off(backport v5.1)

See merge request espressif/esp-idf!28496
2024-01-25 11:59:13 +08:00
Island
4fd3de1ce8 Merge branch 'bugfix/fix_some_ble_issue_v5.1' into 'release/v5.1'
Bugfix/fix some ble issue v5.1(backport v5.1)

See merge request espressif/esp-idf!28616
2024-01-25 11:59:02 +08:00
Island
9a85bb8426 Merge branch 'bugfix/address_resolution_v5.1' into 'release/v5.1'
fix(nimble): Added support for address resolution during inquiry (v5.1)

See merge request espressif/esp-idf!28519
2024-01-25 11:58:47 +08:00
Jiang Jiang Jian
26bbec86f2 Merge branch 'bugfix/fix_pmk_invalid_wpa_or_wpa2_connect_fail_issue_v5.1' into 'release/v5.1'
fix(wifi): fix pmk invalid lead same ssid wpa and wpa2 connect fail issue(Backport v5.1)

See merge request espressif/esp-idf!28668
2024-01-25 09:57:44 +08:00
Mahavir Jain
5dec348666 Merge branch 'feat/update_cjson_v1_7_17_v5.1' into 'release/v5.1'
feat(cJSON): update submodule to v1.7.17 (v5.1)

See merge request espressif/esp-idf!28349
2024-01-24 15:05:10 +08:00
Mahavir Jain
d7e275c408 Merge branch 'feat/add_ble_support_in_local_ctrl_example_v5.1' into 'release/v5.1'
fix(examples): Fix encoding issue in esp_local_ctrl's proto script (v5.1)

See merge request espressif/esp-idf!28128
2024-01-24 15:04:45 +08:00
Mahavir Jain
da47d4d632 Merge branch 'bugfix/update_jtag_disabling_api_v5.1' into 'release/v5.1'
fix(esp_hw_support): fix API esp_hmac_disable_jtag() to disable JTAG (v5.1)

See merge request espressif/esp-idf!28493
2024-01-24 15:04:33 +08:00
Jiang Jiang Jian
c9f2c512b6 Merge branch 'bugfix/change_default_value_for_ip_ttl_5.1' into 'release/v5.1'
Fix(lwip):bugfix for change default value for ip ttl 5.1

See merge request espressif/esp-idf!28400
2024-01-24 14:48:11 +08:00
Jiang Jiang Jian
01f6a7a5c7 Merge branch 'bugfix/revert_changes_a2dp_sink_example_v5.1' into 'release/v5.1'
Revert "fix(bt/bluedroid): corrected the strings of A2DP audio states" (v5.1)

See merge request espressif/esp-idf!28363
2024-01-24 14:47:49 +08:00
muhaidong
3fa5a76a00 fix(wifi): fix pmk invalid lead same ssid wpa and wpa2 connect fail issue 2024-01-24 12:03:14 +08:00
xueyunfei
8b16d9b8bc Fix(lwip):bugfix for change default value for ip ttl 2024-01-24 10:48:57 +08:00
Jin Cheng
bc3c3ac417 Revert "fix(bt/bluedroid): corrected the strings of A2DP audio states"
This reverts commit 00052aa208.
2024-01-24 10:48:10 +08:00
nilesh.kale
fa02eeeb97 fix(esp_hw_support): fix API esp_hmac_disable_jtag() to disable JTAG
After ets_hmac_disable(), invalidating JTAG register process is ineffective.
So, added call to enable hmac begore invalidating JTAG REG.
And similarly disabled it after invalidation.
2024-01-23 12:20:06 +05:30
zhanghaipeng
2874c5e281 feat(bt/bluedroid): Support ext adv aux option 2024-01-22 20:56:26 +08:00
zhanghaipeng
d6d6963fea fix(bt/bluedroid): Fix BLE malloc internal wrapper fail 2024-01-22 20:56:14 +08:00
Zeke Gustafson
5fa653771f feat(ble/bluedroid): Add getter for BLE GAP callback 2024-01-22 20:56:03 +08:00
Zeke Gustafson
8dbfff100e feat(ble/bluedroid): Add getter for BLE GATTS callback 2024-01-22 20:55:56 +08:00
zhanghaipeng
77ca6c58c1 feat(ble/bluedroid): Add getter for BLE GATTC calllback 2024-01-22 20:55:49 +08:00
zhanghaipeng
cc78bb61b5 docs(ble/bluedroid): Optimize documentation for BLE duplicate scan 2024-01-22 20:55:42 +08:00
zhanghaipeng
9c93c54d81 fix(ble/bluedroid): Fix dangling pointer issue in deletion of bonded devices 2024-01-22 20:55:31 +08:00
zhanghaipeng
22bdd07668 fix(ble/bluedroid): Fix BLE background connection log level 2024-01-22 20:55:23 +08:00
Jiang Jiang Jian
7011329b35 Merge branch 'bugfix/fix_scan_request_ifs_error_v5.1' into 'release/v5.1'
Fixed BLE scan request ifs time error in coexistence scenarios on ESP32(backport v5.1)

See merge request espressif/esp-idf!28575
2024-01-22 14:43:05 +08:00
Jiang Jiang Jian
766d26f1f3 Merge branch 'bugfix/fix_crash_issue_when_mesh_deinit_v5.1' into 'release/v5.1'
fix(wifi): fix the crash and malloc fail issue (v5.1)

See merge request espressif/esp-idf!28537
2024-01-22 11:02:46 +08:00
Island
899b216223 Merge branch 'bugfix/ble_update_lib_20231229_v5.1' into 'release/v5.1'
update lib on release/v5.1

See merge request espressif/esp-idf!28188
2024-01-22 10:39:06 +08:00
Darshan Dobariya
95e0a1d1b6 fix(nimble): Added support for address resolution during inquiry. 2024-01-22 09:42:22 +08:00
linruihao
2ec5d6b0f2 fix(esp_coex): Fixed potential BLE scan request ifs timer error bug 2024-01-20 11:28:20 +08:00
zhiweijian
bf322fbc4a Fixed BLE scan request ifs timer error in coexistence scenarios 2024-01-20 11:28:20 +08:00
Jiang Jiang Jian
47b44dfa71 Merge branch 'fix/esp32h2_phy_sleep_wakeup_issue_v5.1' into 'release/v5.1'
fix(esp_phy): fix esp32h2 sleep wakeup issue (backport v5.1)

See merge request espressif/esp-idf!28299
2024-01-19 16:47:58 +08:00
Jiang Jiang Jian
214a4d7a37 Merge branch 'bugfix/fix_mac_bb_pd_iwdt_timeout_v5.1' into 'release/v5.1'
fix(ble): fixed interrupt timeout in MAC_BB_PD callback (v5.1)

See merge request espressif/esp-idf!28465
2024-01-19 16:45:35 +08:00
Jiang Jiang Jian
e1b257934c Merge branch 'bugfix/fix_systick_lost_in_esp32_dfs_v5.1' into 'release/v5.1'
fix(esp_pm): safely check ccompare validity in DFS update_ccompare (v5.1)

See merge request espressif/esp-idf!28562
2024-01-19 16:44:39 +08:00
Harshit Malpani
7869e584ce
feat(cjson): update submodule to v1.7.17
Changelog: https://github.com/DaveGamble/cJSON/releases/tag/v1.7.17
2024-01-19 14:06:11 +05:30
luomanruo
6c8fa646e4 change(ble): npl count is zero if nimble host is not used
change(ble): added npl eventq put to front

change(ble): added cache safe check in ble power save example

ble(update):
    Update c2 lib to 91b81332
    Update h2 lib to 620fbe79
    Update c6 lib to 620fbe79

fix(ble): fix stack overflow disable at sleep

Revert "change(ble): added ble cca en and thresh option"

This reverts commit 71901499b9.
2024-01-19 16:14:05 +08:00
wuzhenghui
ad9a195c3a fix(esp_pm): safely check ccompare validity in DFS update_ccompare 2024-01-19 11:14:28 +08:00
zhangyanjiao
1410699d88 fix(wifi): fix the crash and malloc fail issue
1. fix(wifi/mesh): fix the crash issue when mesh deinit
2. fix(wifi):fix when ap recv auth in sa query porcess will memset psq issue
2024-01-19 11:11:34 +08:00
zhanghaipeng
b59aeaa192 fix(bt/bluedroid): Fix ble adv data check to avoid memory overflow 2024-01-19 10:52:34 +08:00
zhanghaipeng
6a81c1fcce fix(ble/bluedroid): Fix ble memory leak when gattc config off 2024-01-19 10:52:20 +08:00
linruihao
1091ce2106 fix(ble): fixed interrupt timeout in MAC_BB_PD callback 2024-01-19 10:50:09 +08:00
xiaqilin
ee68063b6a fix(esp_phy): fix esp32h2 sleep wakeup and i2c issue 2024-01-19 10:06:11 +08:00
morris
6824abbdb3 Merge branch 'fix/i2c_test_app_change_gpio_v5.1' into 'release/v5.1'
fix(i2c): test app change gpio (v5.1)

See merge request espressif/esp-idf!28484
2024-01-18 17:43:09 +08:00
wanlei
e3532b522e fix(i2c): test app change gpio 2024-01-18 11:13:06 +08:00
morris
ea0c86e30a Merge branch 'ci/temp_disable_jobs_v5.1' into 'release/v5.1'
ci: remove ip101 jobs and twai_std jobs (v5.1)

See merge request espressif/esp-idf!28378
2024-01-18 11:08:33 +08:00
Jiang Jiang Jian
aa2793f3f1 Merge branch 'feature/support_hw_trigger_regdma_when_pu_top_v5.1' into 'release/v5.1'
fix(pm): trigger regdma retention by PMU when TOP is not power down on esp32H2 (backport v5.1)

See merge request espressif/esp-idf!28342
2024-01-18 11:06:51 +08:00
Michael (XIAO Xufeng)
89cc9084ab Merge branch 'bugfix/recalib_bbpll_before_tuning_v5.1' into 'release/v5.1'
fix(bbpll): fix bbpll may not lock or not stable bug for stop early (ESP32C2/S3/C6/H2) (v5.1)

See merge request espressif/esp-idf!28285
2024-01-17 21:24:10 +08:00
Lou Tianhao
1e43abfb57 change(pm): put pmu_hal to iram 2024-01-16 14:01:22 +08:00
Lou Tianhao
2ecbfecedf feat(pm): support PMU trigger regdma when PU TOP 2024-01-16 14:01:22 +08:00