Skip to content

Commit bdfd1d2

Browse files
mmahadevan108nashif
authored andcommitted
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 <[email protected]>
1 parent 0543dd6 commit bdfd1d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/nxp/mcx/mcxn/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ zephyr_compile_definitions_ifdef(CONFIG_NXP_LP_FLEXCOMM LPFLEXCOMM_INIT_NOT_USED
1010

1111
zephyr_sources(soc.c)
1212

13-
if(CONFIG_FLASH_MCUX_FLEXSPI_NOR)
13+
if(CONFIG_FLASH_MCUX_FLEXSPI_XIP OR CONFIG_FLASH_MCUX_FLEXSPI_NOR)
1414
zephyr_sources(flash_clock_setup.c)
1515
if(CONFIG_FLASH_MCUX_FLEXSPI_XIP)
1616
zephyr_code_relocate(FILES flash_clock_setup.c LOCATION ${CONFIG_FLASH_MCUX_FLEXSPI_XIP_MEM}_TEXT)

0 commit comments

Comments
 (0)