soc: intel_adsp: include cleanup
Do not include SOF headers in SoC code and cleanup unused and relative paths. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
8f9fd94352
commit
37cd0abd1d
1 changed files with 2 additions and 15 deletions
|
@ -2,24 +2,16 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
# TODO: Need to unbind SOF module.
|
|
||||||
|
|
||||||
add_library(base_module base_module.c)
|
add_library(base_module base_module.c)
|
||||||
target_include_directories(base_module PUBLIC
|
target_include_directories(base_module PUBLIC
|
||||||
${SOC_DIR}/${ARCH}/${SOC_PATH}/include
|
${SOC_DIR}/${ARCH}/${SOC_PATH}/include
|
||||||
${SOC_DIR}/${ARCH}/${SOC_PATH}/../common/include
|
../include
|
||||||
${ZEPHYR_BASE}/../modules/hal/xtensa/include
|
|
||||||
${PROJECT_BINARY_DIR}/include/generated
|
|
||||||
${ZEPHYR_BASE}/../modules/audio/sof/zephyr/include
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(boot_module boot_module.c)
|
add_library(boot_module boot_module.c)
|
||||||
target_include_directories(boot_module PUBLIC
|
target_include_directories(boot_module PUBLIC
|
||||||
${SOC_DIR}/${ARCH}/${SOC_PATH}/include
|
${SOC_DIR}/${ARCH}/${SOC_PATH}/include
|
||||||
${SOC_DIR}/${ARCH}/${SOC_PATH}/../common/include
|
../include
|
||||||
${ZEPHYR_BASE}/../modules/hal/xtensa/include
|
|
||||||
${PROJECT_BINARY_DIR}/include/generated
|
|
||||||
${ZEPHYR_BASE}/../modules/audio/sof/zephyr/include
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(bootloader
|
add_executable(bootloader
|
||||||
|
@ -36,16 +28,11 @@ target_sources_ifdef(CONFIG_RESET_VECTOR_IN_BOOTLOADER bootloader PRIVATE
|
||||||
|
|
||||||
add_dependencies(bootloader ${SYSCALL_LIST_H_TARGET})
|
add_dependencies(bootloader ${SYSCALL_LIST_H_TARGET})
|
||||||
|
|
||||||
set(zephyr_sdk $ENV{ZEPHYR_SDK_INSTALL_DIR})
|
|
||||||
|
|
||||||
target_include_directories(bootloader PUBLIC
|
target_include_directories(bootloader PUBLIC
|
||||||
./
|
./
|
||||||
${PROJECT_BINARY_DIR}/include
|
|
||||||
${TOOLCHAIN_INCLUDES}
|
${TOOLCHAIN_INCLUDES}
|
||||||
${SOC_DIR}/${ARCH}/${SOC_PATH}/
|
${SOC_DIR}/${ARCH}/${SOC_PATH}/
|
||||||
${SOC_DIR}/${ARCH}/${SOC_PATH}/include
|
${SOC_DIR}/${ARCH}/${SOC_PATH}/include
|
||||||
${PROJECT_BINARY_DIR}/include/generated
|
|
||||||
${ZEPHYR_BASE}/../modules/audio/sof/zephyr/include
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO: pre-process linker script. How do we use toplevel infrastructure ??
|
# TODO: pre-process linker script. How do we use toplevel infrastructure ??
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue