mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
Refactor the esp_err_to_name() system to decouple esp_common from higher-level components. Instead of a monolithic generated table, each component registers its error codes into a dedicated linker section (.esp_err_msg_table) via idf_define_esp_err_codes() in its CMakeLists.txt. New files: - tools/err_codes_extract.py: extract ESP_ERR_* defines from headers to CSV - tools/err_codes_to_c.py: generate C source placing entries into linker section - tools/err_codes_to_rst.py: generate RST documentation from error codes - tools/cmake/err_codes.cmake: CMake module providing idf_define_esp_err_codes() - components/esp_common/include/esp_err_codes.h: esp_err_msg_t typedef - components/esp_common/src/esp_err_to_name_new.c: new lookup using link-time array - tools/test_apps/build_system/err_codes_check/: CI test app Changes: - Remove all optional component dependencies from esp_common/CMakeLists.txt - Add .esp_err_msg_table section to all 5 linker scripts - Register error codes in 18 components via idf_define_esp_err_codes() - Add new scripts to .gitlab/ci/rules.yml build_check patterns - use new scripts to generate doc and add CI validation - Update esp_err.rst to add description of composable code registration
64 lines
2.9 KiB
Plaintext
64 lines
2.9 KiB
Plaintext
components/app_update/otatool.py
|
|
components/efuse/efuse_table_gen.py
|
|
components/efuse/test_efuse_host/efuse_tests.py
|
|
components/esp_local_ctrl/python/esp_local_ctrl_pb2.py
|
|
components/mbedtls/esp_crt_bundle/gen_crt_bundle.py
|
|
components/mbedtls/esp_crt_bundle/test_gen_crt_bundle/test_gen_crt_bundle.py
|
|
components/partition_table/gen_empty_partition.py
|
|
components/partition_table/gen_esp32part.py
|
|
components/partition_table/parttool.py
|
|
components/partition_table/test_gen_esp32part_host/gen_esp32part_tests.py
|
|
components/protocomm/python/constants_pb2.py
|
|
components/protocomm/python/sec0_pb2.py
|
|
components/protocomm/python/sec1_pb2.py
|
|
components/protocomm/python/session_pb2.py
|
|
components/xtensa/trax/traceparse.py
|
|
examples/protocols/esp_local_ctrl/scripts/esp_local_ctrl.py
|
|
examples/protocols/esp_local_ctrl/scripts/proto_lc.py
|
|
examples/protocols/esp_local_ctrl/scripts/security/security.py
|
|
examples/protocols/esp_local_ctrl/scripts/security/security0.py
|
|
examples/protocols/esp_local_ctrl/scripts/security/security1.py
|
|
examples/protocols/esp_local_ctrl/scripts/transport/ble_cli.py
|
|
examples/protocols/esp_local_ctrl/scripts/transport/transport.py
|
|
examples/protocols/esp_local_ctrl/scripts/transport/transport_ble.py
|
|
examples/protocols/esp_local_ctrl/scripts/transport/transport_console.py
|
|
examples/protocols/esp_local_ctrl/scripts/transport/transport_http.py
|
|
examples/storage/parttool/parttool_example.py
|
|
examples/system/ota/otatool/get_running_partition.py
|
|
examples/system/ota/otatool/otatool_example.py
|
|
tools/ble/lib_ble_client.py
|
|
tools/ble/lib_gap.py
|
|
tools/ble/lib_gatt.py
|
|
tools/ci/python_packages/idf_http_server_test/adder.py
|
|
tools/ci/python_packages/idf_http_server_test/client.py
|
|
tools/ci/python_packages/idf_http_server_test/test.py
|
|
tools/ci/python_packages/idf_iperf_test_util/Attenuator.py
|
|
tools/ci/python_packages/idf_iperf_test_util/LineChart.py
|
|
tools/ci/python_packages/idf_iperf_test_util/PowerControl.py
|
|
tools/ci/python_packages/idf_iperf_test_util/TestReport.py
|
|
tools/ci/python_packages/wifi_tools.py
|
|
tools/esp_app_trace/espytrace/apptrace.py
|
|
tools/esp_app_trace/espytrace/sysview.py
|
|
tools/esp_app_trace/logtrace_proc.py
|
|
tools/esp_app_trace/sysviewtrace_proc.py
|
|
tools/gen_soc_caps_kconfig/test/test_gen_soc_caps_kconfig.py
|
|
tools/ldgen/ldgen.py
|
|
tools/ldgen/ldgen/entity.py
|
|
tools/ldgen/ldgen/fragments.py
|
|
tools/ldgen/ldgen/generation.py
|
|
tools/ldgen/ldgen/linker_script.py
|
|
tools/ldgen/ldgen/output_commands.py
|
|
tools/ldgen/ldgen/sdkconfig.py
|
|
tools/ldgen/test/test_entity.py
|
|
tools/ldgen/test/test_fragments.py
|
|
tools/ldgen/test/test_generation.py
|
|
tools/ldgen/test/test_output_commands.py
|
|
tools/mass_mfg/mfg_gen.py
|
|
tools/test_apps/build_system/ldgen_test/check_placements.py
|
|
tools/test_idf_py/extra_path/some_ext.py
|
|
tools/test_idf_py/idf_ext.py
|
|
tools/test_idf_py/test_idf_extensions/test_ext/test_extension.py
|
|
tools/test_idf_py/test_idf_py.py
|
|
tools/test_idf_tools/test_idf_tools.py
|
|
tools/test_mkdfu/test_mkdfu.py
|