soc: mcx: Fix build errors when building for XIP from FlexSPI

Include compile of the flash file when FlexSPI_XIP is enabled
even when the FlexSPI driver is not enabled.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
Mahesh Mahadevan 2024-04-24 13:36:05 -05:00 committed by Anas Nashif
commit bdfd1d2e1b

View file

@ -10,7 +10,7 @@ zephyr_compile_definitions_ifdef(CONFIG_NXP_LP_FLEXCOMM LPFLEXCOMM_INIT_NOT_USED
zephyr_sources(soc.c)
if(CONFIG_FLASH_MCUX_FLEXSPI_NOR)
if(CONFIG_FLASH_MCUX_FLEXSPI_XIP OR CONFIG_FLASH_MCUX_FLEXSPI_NOR)
zephyr_sources(flash_clock_setup.c)
if(CONFIG_FLASH_MCUX_FLEXSPI_XIP)
zephyr_code_relocate(FILES flash_clock_setup.c LOCATION ${CONFIG_FLASH_MCUX_FLEXSPI_XIP_MEM}_TEXT)