47271ce8be
Update usage of zephyr_code_relocate to follow new API. The old method of relocating a file was the following directive: zephyr_code_relocate(file location) The new API for zephyr_code_relocate uses the following directive: zephyr_code_relocate(FILES file LOCATION location) update in tree usage to follow this model. Also, update the NXP HAL SHA, as NXP's HAL uses this macro as well. Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
15 lines
525 B
CMake
15 lines
525 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(FILES src/reloc.c LOCATION SRAM2_LITERAL)
|
|
zephyr_code_relocate(FILES src/reloc.c LOCATION SRAM2_TEXT)
|
|
zephyr_code_relocate(FILES src/reloc.c LOCATION SRAM3_DATA)
|
|
zephyr_code_relocate(FILES src/reloc.c LOCATION SRAM3_RODATA)
|
|
zephyr_code_relocate(FILES src/reloc.c LOCATION SRAM4_BSS)
|