mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/cmake_sdkconfig_path' into 'release/v4.0'
fix bug for cmake build system See merge request espressif/esp-idf!6102
This commit is contained in:
commit
5e0cc123ee
@ -1,3 +1,4 @@
|
|||||||
|
idf_build_get_property(sdkconfig_header SDKCONFIG_HEADER)
|
||||||
if(BOOTLOADER_BUILD)
|
if(BOOTLOADER_BUILD)
|
||||||
# For bootloader, all we need from esp32 is headers
|
# For bootloader, all we need from esp32 is headers
|
||||||
idf_component_register(INCLUDE_DIRS include)
|
idf_component_register(INCLUDE_DIRS include)
|
||||||
@ -75,7 +76,7 @@ else()
|
|||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT esp32_out.ld
|
OUTPUT esp32_out.ld
|
||||||
COMMAND "${CMAKE_C_COMPILER}" -C -P -x c -E -o esp32_out.ld -I ${config_dir} ${LD_DIR}/esp32.ld
|
COMMAND "${CMAKE_C_COMPILER}" -C -P -x c -E -o esp32_out.ld -I ${config_dir} ${LD_DIR}/esp32.ld
|
||||||
MAIN_DEPENDENCY ${LD_DIR}/esp32.ld ${SDKCONFIG_H}
|
MAIN_DEPENDENCY ${LD_DIR}/esp32.ld ${sdkconfig_header}
|
||||||
COMMENT "Generating linker script..."
|
COMMENT "Generating linker script..."
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user