Adicionar primeiro
This commit is contained in:
13
main/CMakeLists.txt
Executable file
13
main/CMakeLists.txt
Executable file
@@ -0,0 +1,13 @@
|
||||
set(COMPONENT_SRCS "main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
|
||||
if(CONFIG_BOARD_CONFIG_DEPLOY)
|
||||
set(CFG_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../cfg/${CONFIG_BOARD_CONFIG}")
|
||||
if(EXISTS ${CFG_SRC_DIR}/board.cfg)
|
||||
spiffs_create_partition_image(cfg ${CFG_SRC_DIR} FLASH_IN_PROJECT)
|
||||
else()
|
||||
message(FATAL_ERROR "${CFG_SRC_DIR}/board.cfg doesn't exit")
|
||||
endif()
|
||||
endif()
|
||||
Reference in New Issue
Block a user