summaryrefslogtreecommitdiff
path: root/fw/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'fw/CMakeLists.txt')
-rw-r--r--fw/CMakeLists.txt37
1 files changed, 2 insertions, 35 deletions
diff --git a/fw/CMakeLists.txt b/fw/CMakeLists.txt
index ce16b10..6f2ea60 100644
--- a/fw/CMakeLists.txt
+++ b/fw/CMakeLists.txt
@@ -11,6 +11,7 @@ set(ZEPHYR_MODULES
"${CMAKE_CURRENT_SOURCE_DIR}/rtos/modules/mbedtls"
"${CMAKE_CURRENT_SOURCE_DIR}/btl/mcuboot"
)
+set(ZEPHYR_BASE "${CMAKE_CURRENT_SOURCE_DIR}/rtos/zephyr")
string(REPLACE ";" "," ZEPHYR_MODULES_COMMA "${ZEPHYR_MODULES}")
include(ExternalProject)
@@ -28,38 +29,4 @@ ExternalProject_Add(
-DCONFIG_BOOT_SIGNATURE_KEY_FILE="${KEY}"
)
-find_package(Zephyr
- REQUIRED
- HINTS
- "${CMAKE_CURRENT_SOURCE_DIR}/rtos/zephyr"
-)
-
-project(iot-contact-fw)
-
-target_sources(app
- PRIVATE
- "${CMAKE_CURRENT_SOURCE_DIR}/src/syslog.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/src/network.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/src/http.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/src/ws.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/src/heart.c"
-)
-
-zephyr_linker_sources(SECTIONS sections-rom.ld)
-zephyr_linker_section(NAME http_resource_desc_http_service
- KVMA RAM_REGION GROUP RODATA_REGION
- SUBALIGN ${CONFIG_LINKER_ITERABLE_SUBALIGN})
-
-generate_inc_file_for_target(
- app
- src/index.html
- ${ZEPHYR_BINARY_DIR}/include/generated/index.html.gz.inc
- --gzip
-)
-
-generate_inc_file_for_target(
- app
- src/iot-contact.js
- ${ZEPHYR_BINARY_DIR}/include/generated/iot-contact.js.gz.inc
- --gzip
-)
+add_subdirectory(app)