Skip to content

Commit 9609302

Browse files
galakMaureenHelm
authored andcommitted
iMX: can: Fix building flexcan driver
We need to same ASSERT/NDEBUG support that exists for kinetis for imx. Otherwise we get build errors with building the flexcan drivers on imx-rt. Signed-off-by: Kumar Gala <[email protected]>
1 parent d3b5bab commit 9609302

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mcux/drivers/imx/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_LPSPI fsl_lpspi.c)
3333
zephyr_library_sources_ifdef(CONFIG_UART_MCUX_LPUART fsl_lpuart.c)
3434
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_CSI fsl_csi.c)
3535
zephyr_library_sources_ifdef(CONFIG_WDT_MCUX_IMX_WDOG fsl_wdog.c)
36-
zephyr_library_sources_ifdef(CONFIG_CAN_MCUX_FLEXCAN fsl_flexcan.c)
36+
zephyr_library_sources_ifdef(CONFIG_CAN_MCUX_FLEXCAN fsl_flexcan.c)
37+
38+
if(NOT CONFIG_ASSERT OR CONFIG_FORCE_NO_ASSERT)
39+
zephyr_compile_definitions(NDEBUG) # squelch fsl_flexcan.c warning
40+
endif()

0 commit comments

Comments
 (0)