mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-08 10:06:55 +00:00
Move to latest cmake version with many bug fixes and enhancements. Signed-off-by: Anas Nashif <anas.nashif@intel.com> Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
19 lines
527 B
CMake
19 lines
527 B
CMake
cmake_minimum_required(VERSION 3.13.1)
|
|
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
project(test_relocation)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
target_sources(app PRIVATE ${app_sources})
|
|
|
|
# Code relocation feature
|
|
zephyr_code_relocate(src/test_file1.c SRAM2)
|
|
|
|
zephyr_code_relocate(src/test_file2.c SRAM)
|
|
|
|
zephyr_code_relocate(src/test_file3.c SRAM2_TEXT)
|
|
zephyr_code_relocate(src/test_file3.c SRAM_DATA)
|
|
zephyr_code_relocate(src/test_file3.c SRAM2_BSS)
|
|
|
|
zephyr_code_relocate(../../../kernel/sem.c SRAM)
|