mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-01 16:16:54 +08:00

1. support "make size", "make size-files", "make size-components" and "make size-symbols" 2. add esp-idf style link file including "esp8266.ld" and "esp8266.project.ld.in" 3. add link advaced generation file to components of esp8266 and spi_flash
15 lines
456 B
CMake
15 lines
456 B
CMake
set(srcs "src/partition"
|
|
"src/spi_flash_raw.c"
|
|
"src/spi_flash.c")
|
|
if(BOOTLOADER_BUILD)
|
|
set(srcs "${srcs}" "port/port.c")
|
|
set(priv_requires "bootloader_support")
|
|
else()
|
|
set(priv_requires "esp8266" "freertos" "bootloader_support")
|
|
endif()
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
PRIV_REQUIRES "${priv_requires}"
|
|
INCLUDE_DIRS "include"
|
|
LDFRAGMENTS "linker.lf")
|