From 37cd0abd1d311eeacb61444ac8680d5627a93b18 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 18 Feb 2021 10:55:11 -0500 Subject: [PATCH] soc: intel_adsp: include cleanup Do not include SOF headers in SoC code and cleanup unused and relative paths. Signed-off-by: Anas Nashif --- .../intel_adsp/common/bootloader/CMakeLists.txt | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/soc/xtensa/intel_adsp/common/bootloader/CMakeLists.txt b/soc/xtensa/intel_adsp/common/bootloader/CMakeLists.txt index 72531f5287b..1a7ffc3283f 100644 --- a/soc/xtensa/intel_adsp/common/bootloader/CMakeLists.txt +++ b/soc/xtensa/intel_adsp/common/bootloader/CMakeLists.txt @@ -2,24 +2,16 @@ # # SPDX-License-Identifier: Apache-2.0 # -# TODO: Need to unbind SOF module. - add_library(base_module base_module.c) target_include_directories(base_module PUBLIC ${SOC_DIR}/${ARCH}/${SOC_PATH}/include - ${SOC_DIR}/${ARCH}/${SOC_PATH}/../common/include - ${ZEPHYR_BASE}/../modules/hal/xtensa/include - ${PROJECT_BINARY_DIR}/include/generated - ${ZEPHYR_BASE}/../modules/audio/sof/zephyr/include + ../include ) add_library(boot_module boot_module.c) target_include_directories(boot_module PUBLIC ${SOC_DIR}/${ARCH}/${SOC_PATH}/include - ${SOC_DIR}/${ARCH}/${SOC_PATH}/../common/include - ${ZEPHYR_BASE}/../modules/hal/xtensa/include - ${PROJECT_BINARY_DIR}/include/generated - ${ZEPHYR_BASE}/../modules/audio/sof/zephyr/include + ../include ) add_executable(bootloader @@ -36,16 +28,11 @@ target_sources_ifdef(CONFIG_RESET_VECTOR_IN_BOOTLOADER bootloader PRIVATE add_dependencies(bootloader ${SYSCALL_LIST_H_TARGET}) -set(zephyr_sdk $ENV{ZEPHYR_SDK_INSTALL_DIR}) - target_include_directories(bootloader PUBLIC ./ - ${PROJECT_BINARY_DIR}/include ${TOOLCHAIN_INCLUDES} ${SOC_DIR}/${ARCH}/${SOC_PATH}/ ${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 ??