mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
tools: Support overwrite of includes for gen_esp_err_to_name.py
gen_esp_err_to_name.py includes files like components/lwip/include/apps/esp_ping.h as "apps/esp_ping.h" because all subdirectories of "include" are used. If "components/lwip/include/apps" is in the path of the compiler instead of "components/lwip/include" then include "apps/esp_ping.h" will fail. This fix allows to process lines like: '// gen_esp_err_to_name.py: some text "esp_ping.h" some text' in header files for overwriting the include.
This commit is contained in:

committed by
Ivan Grokhotkov

parent
f8750eb58d
commit
bf443a763f
@@ -4,9 +4,6 @@
|
||||
#if __has_include("soc/soc.h")
|
||||
#include "soc/soc.h"
|
||||
#endif
|
||||
#if __has_include("apps/esp_ping.h")
|
||||
#include "apps/esp_ping.h"
|
||||
#endif
|
||||
#if __has_include("esp32/ulp.h")
|
||||
#include "esp32/ulp.h"
|
||||
#endif
|
||||
@@ -28,6 +25,9 @@
|
||||
#if __has_include("esp_ota_ops.h")
|
||||
#include "esp_ota_ops.h"
|
||||
#endif
|
||||
#if __has_include("esp_ping.h")
|
||||
#include "esp_ping.h"
|
||||
#endif
|
||||
#if __has_include("esp_spi_flash.h")
|
||||
#include "esp_spi_flash.h"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user