mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
Merge branch 'feat/error-code-registration' into 'master'
feat(esp_common): implement composable error code registration via link-time arrays Closes IDF-15105 and IDF-15486 See merge request espressif/esp-idf!46125
This commit is contained in:
@@ -112,19 +112,15 @@ check_chip_support_components:
|
||||
- find ${IDF_PATH}/components/soc \( -path "*/include/soc/*_struct.h" -o -path "*/register/soc/*_struct.h" -o -path "*/register/*/soc/*_struct.h" \) -print0 | xargs -0 -n1 ./tools/ci/check_soc_struct_headers.py
|
||||
- tools/ci/check_esp_memory_utils_headers.sh
|
||||
|
||||
check_esp_err_to_name:
|
||||
check_esp_err_codes:
|
||||
extends:
|
||||
- .pre_check_template
|
||||
- .rules:build:check
|
||||
artifacts:
|
||||
when: on_failure
|
||||
paths:
|
||||
- components/esp_common/esp_err_to_name.c
|
||||
expire_in: 1 week
|
||||
script:
|
||||
- cd ${IDF_PATH}/tools/
|
||||
- ./gen_esp_err_to_name.py
|
||||
- git diff --exit-code -- ../components/esp_common/src/esp_err_to_name.c || { echo 'Differences found. Please run gen_esp_err_to_name.py and commit the changes.'; exit 1; }
|
||||
- cd ${IDF_PATH}
|
||||
- python tools/err_codes_extract.py --search-dirs components/ --output /tmp/err_codes.csv --validate
|
||||
- python tools/err_codes_to_rst.py --csv /tmp/err_codes.csv --output /tmp/esp_err_defs.inc
|
||||
- echo "Extracted $(wc -l < /tmp/err_codes.csv) error codes"
|
||||
|
||||
check_esp_system:
|
||||
extends:
|
||||
|
||||
@@ -66,6 +66,9 @@
|
||||
- "tools/test_build_system/**/*"
|
||||
- "tools/ci/test_configure_ci_environment.sh"
|
||||
- "tools/gen_esp_err_to_name.py"
|
||||
- "tools/err_codes_extract.py"
|
||||
- "tools/err_codes_to_c.py"
|
||||
- "tools/err_codes_to_rst.py"
|
||||
- "tools/ci/check_soc_headers_leak.py"
|
||||
- "tools/ci/check_esp_memory_utils_headers.sh"
|
||||
- "tools/ci/check_blobs.sh"
|
||||
|
||||
Reference in New Issue
Block a user