Files
dongheng 301d857988 feat(esp8266): supports "make size" and its family function
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
2019-08-05 17:20:29 +08:00

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")