Skip to content

Fix xtensa project build issue #88305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion modules/hal_nxp/mcux/mcux-sdk-ng/device/device.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ endif()
set(CONFIG_MCUX_COMPONENT_device.system ON)
set(CONFIG_MCUX_COMPONENT_device.CMSIS ON)
set(CONFIG_MCUX_COMPONENT_driver.clock ON)
set(CONFIG_MCUX_COMPONENT_driver.power ON)

if((NOT CONFIG_SOC_MIMXRT798S_HIFI1) AND (NOT CONFIG_SOC_MIMXRT798S_HIFI4))
set(CONFIG_MCUX_COMPONENT_driver.power ON)
endif()

set(CONFIG_MCUX_COMPONENT_driver.reset ON)
set(CONFIG_MCUX_COMPONENT_driver.memory ON)

Expand Down
9 changes: 7 additions & 2 deletions modules/hal_nxp/mcux/mcux-sdk-ng/drivers/drivers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
# SPDX-License-Identifier: Apache-2.0

# fsl_common driver
zephyr_library_sources(${MCUX_SDK_NG_DIR}/drivers/common/fsl_common.c
${MCUX_SDK_NG_DIR}/drivers/common/fsl_common_arm.c)
zephyr_library_sources(${MCUX_SDK_NG_DIR}/drivers/common/fsl_common.c)
zephyr_include_directories(${MCUX_SDK_NG_DIR}/drivers/common)

if(CONFIG_ARCH STREQUAL "xtensa")
zephyr_library_sources(${MCUX_SDK_NG_DIR}/drivers/common/fsl_common_dsp.c)
elseif(CONFIG_ARCH STREQUAL "arm")
zephyr_library_sources(${MCUX_SDK_NG_DIR}/drivers/common/fsl_common_arm.c)
endif()

set_variable_ifdef(CONFIG_HWINFO_MCUX_SRC_V2 CONFIG_MCUX_COMPONENT_driver.src_2)
set_variable_ifdef(CONFIG_GPIO_MCUX_IGPIO CONFIG_MCUX_COMPONENT_driver.igpio)
set_variable_ifdef(CONFIG_ADC_MCUX_LPADC CONFIG_MCUX_COMPONENT_driver.lpadc)
Expand Down