tools(ci): add script to build all examples

Using new cmake project declare.
This commit is contained in:
dongheng
2019-06-18 13:08:26 +08:00
parent c1d329b78f
commit d244c20dec
6 changed files with 539 additions and 3 deletions

View File

@ -10,14 +10,12 @@ if(NOT IDF_PATH)
"in by the parent build process.")
endif()
set(COMPONENTS esptool_py bootloader bootloader_support spi_flash log esp8266 util partition_table)
set(COMPONENTS esptool_py bootloader bootloader_support spi_flash log esp8266 util partition_table main)
set(BOOTLOADER_BUILD 1)
add_definitions(-DBOOTLOADER_BUILD=1)
set(COMPONENT_REQUIRES_COMMON log esp8266 spi_flash)
set(MAIN_SRCS main/bootloader_start.c)
include("${IDF_PATH}/tools/cmake/project.cmake")
project(bootloader)

View File

@ -0,0 +1,4 @@
set(COMPONENT_SRCS "bootloader_start.c")
set(COMPONENT_ADD_INCLUDEDIRS "")
set(COMPONENT_REQUIRES "bootloader_support")
register_component()