diff --git a/app/samples/.template-project/CMakeLists.txt b/app/samples/.template-project/CMakeLists.txt new file mode 100644 index 000000000..ab20e3eff --- /dev/null +++ b/app/samples/.template-project/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.20.0) + +set(FSW_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../..) + +find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(template LANGUAGES CXX) + +target_compile_options(app PRIVATE -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-ignored-qualifiers) +FILE(GLOB app_sources src/*.cpp) +target_sources(app PRIVATE ${app_sources}) diff --git a/app/samples/.template-project/Kconfig b/app/samples/.template-project/Kconfig new file mode 100644 index 000000000..5ba198ca5 --- /dev/null +++ b/app/samples/.template-project/Kconfig @@ -0,0 +1 @@ +source "Kconfig.zephyr" diff --git a/app/samples/.template-project/prj.conf b/app/samples/.template-project/prj.conf new file mode 100644 index 000000000..7f839fd57 --- /dev/null +++ b/app/samples/.template-project/prj.conf @@ -0,0 +1,18 @@ +CONFIG_CPP=y +CONFIG_REQUIRES_FULL_LIBCPP=y +CONFIG_STD_CPP20=y + +CONFIG_F_CORE=y +CONFIG_F_CORE_OS=y + + # outputs +CONFIG_SERIAL=y +CONFIG_FILE_SYSTEM_SHELL=y +CONFIG_HEAP_MEM_POOL_SIZE=8192 + +CONFIG_DEBUG=y +CONFIG_CBPRINTF_FP_SUPPORT=y + +CONFIG_LZ4=y +CONFIG_MAIN_STACK_SIZE=4096 + diff --git a/app/samples/.template-project/sample.yaml b/app/samples/.template-project/sample.yaml new file mode 100644 index 000000000..481ed84af --- /dev/null +++ b/app/samples/.template-project/sample.yaml @@ -0,0 +1,9 @@ +sample: + description: + name: template +common: + build_only: true + platform_allow: + - native_sim +tests: + samples.template.default: {} diff --git a/app/samples/.template-project/src/main.cpp b/app/samples/.template-project/src/main.cpp new file mode 100644 index 000000000..4cce7f667 --- /dev/null +++ b/app/samples/.template-project/src/main.cpp @@ -0,0 +1,3 @@ +int main() { + return 0; +}