Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ project("Asset Tracker Template")
# Include files that are common for all modules
add_subdirectory(src/common)

# Add main application source
target_sources(app PRIVATE src/main.c)

# Include mandatory module source folders
add_subdirectory(src/modules/network)
add_subdirectory(src/modules/cloud)
add_subdirectory(src/modules/location)
add_subdirectory(src/modules/app)
add_subdirectory(src/modules/fota)
add_subdirectory(src/modules/button)

Expand Down
2 changes: 1 addition & 1 deletion app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ config APP_PAYLOAD_CHANNEL_BUFFER_MAX_SIZE
Maximum size of the buffer sent over the payload channel.
Contains encoded CBOR data sampled and encoded in the various modules.

rsource "src/Kconfig.main"
rsource "src/modules/battery/Kconfig.battery"
rsource "src/modules/network/Kconfig.network"
rsource "src/modules/cloud/Kconfig.cloud"
rsource "src/modules/location/Kconfig.location"
rsource "src/modules/led/Kconfig.led"
rsource "src/modules/app/Kconfig.app"
rsource "src/modules/fota/Kconfig.fota"
rsource "src/modules/environmental/Kconfig.environmental"
rsource "src/modules/shell/Kconfig.shell"
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions app/src/modules/app/CMakeLists.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ target_sources(app
PRIVATE
src/main.c
src/checks.c
${ASSET_TRACKER_TEMPLATE_DIR}/app/src/modules/app/app.c
${ASSET_TRACKER_TEMPLATE_DIR}/app/src/main.c
${ASSET_TRACKER_TEMPLATE_DIR}/app/src/common/message_channel.c
)

Expand All @@ -40,7 +40,7 @@ target_link_options(app PRIVATE --whole-archive)

add_compile_options(-Wno-return-type)

set_property(SOURCE ${ASSET_TRACKER_TEMPLATE_DIR}/app/src/modules/app/app.c PROPERTY COMPILE_FLAGS
set_property(SOURCE ${ASSET_TRACKER_TEMPLATE_DIR}/app/src/main.c PROPERTY COMPILE_FLAGS
"-include ${CMAKE_CURRENT_SOURCE_DIR}/src/redef.h")

# Options that cannot be passed through Kconfig fragments
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tests:
asset_tracker_template.fw.app:
asset_tracker_template.fw.main:
platform_allow:
- native_sim
- native_sim/native/64
Expand Down
Loading