zephyr/samples/boards/intel_adsp/code_relocation/CMakeLists.txt
Ederson de Souza 7ffc6c31b5 samples/boards: Add intel_adsp/code_relocation sample
A simple sample with some (explained) tricks to get code relocation for
Intel ADSP CAVS platforms.

Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
2022-11-03 10:25:07 +01:00

15 lines
450 B
CMake

# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(adsp_cavs_code_relocation)
target_sources(app PRIVATE src/main.c src/reloc.c)
zephyr_code_relocate(src/reloc.c SRAM2_LITERAL)
zephyr_code_relocate(src/reloc.c SRAM2_TEXT)
zephyr_code_relocate(src/reloc.c SRAM3_DATA)
zephyr_code_relocate(src/reloc.c SRAM3_RODATA)
zephyr_code_relocate(src/reloc.c SRAM4_BSS)