Skip to content
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

NETC driver cmake fix up #499

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
1 change: 0 additions & 1 deletion mcux/hal_nxp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ if (${MCUX_DEVICE} MATCHES "MIMXRT1189")
elseif (${MCUX_DEVICE} MATCHES "MIMX9596")
include_driver_ifdef(CONFIG_ETH_NXP_IMX_NETC netc/socs/imx95 driver_netc_soc_imx95)
include_driver_ifdef(CONFIG_ETH_NXP_IMX_NETC msgintr driver_msgintr)
include_driver_ifdef(CONFIG_ETH_NXP_IMX_NETC irqsteer driver_irqsteer)
endif()

if (((${MCUX_DEVICE} MATCHES "MIMXRT1[0-9][0-9][0-9]") AND (NOT (CONFIG_SOC_MIMXRT1166_CM4 OR CONFIG_SOC_MIMXRT1176_CM4 OR CONFIG_SOC_MIMXRT1189_CM33))) OR
Expand Down
8 changes: 7 additions & 1 deletion mcux/mcux-sdk/drivers/netc/driver_netc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@
include_guard(GLOBAL)
message("driver_netc component is included.")

if(${MCUX_DEVICE} MATCHES "MIMX9596")
set(NETC_SWITCH_FILE "")
else()
set(NETC_SWITCH_FILE "${CMAKE_CURRENT_LIST_DIR}/fsl_netc_switch.c")
endif()

target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/fsl_netc_endpoint.c
${CMAKE_CURRENT_LIST_DIR}/fsl_netc_switch.c
${CMAKE_CURRENT_LIST_DIR}/fsl_netc_timer.c
${CMAKE_CURRENT_LIST_DIR}/fsl_netc_ierb.c
${CMAKE_CURRENT_LIST_DIR}/fsl_netc_mdio.c
${CMAKE_CURRENT_LIST_DIR}/netc_hw/fsl_netc_hw.c
${CMAKE_CURRENT_LIST_DIR}/netc_hw/fsl_netc_hw_port.c
${CMAKE_CURRENT_LIST_DIR}/netc_hw/fsl_netc_hw_si.c
${CMAKE_CURRENT_LIST_DIR}/netc_hw/fsl_netc_hw_enetc.c
${NETC_SWITCH_FILE}
)

target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
Expand Down