@@ -17,7 +17,6 @@ if(CONFIG_SOC_LPC11U66
17
17
OR CONFIG_SOC_MIMX9352_A55
18
18
OR CONFIG_SOC_MIMX9596_A55
19
19
OR CONFIG_SOC_MIMX9596_M7
20
- OR CONFIG_SOC_MK22F12
21
20
OR CONFIG_SOC_MK64F12
22
21
OR CONFIG_SOC_MK66F18
23
22
OR CONFIG_SOC_MK80F25615
@@ -64,51 +63,6 @@ else()
64
63
endif ()
65
64
66
65
if (DEFINED CONFIG_SOC_SDKNG_UNSUPPORTED)
67
- zephyr_include_directories(${ZEPHYR_CURRENT_MODULE_DIR} /mcux/mcux-sdk/devices/${MCUX_DEVICE_PATH} )
68
- zephyr_include_directories(${ZEPHYR_CURRENT_MODULE_DIR} /mcux/mcux-sdk/devices/${MCUX_DEVICE_PATH} /drivers)
69
-
70
- # include CMSIS of mcux-sdk for Cortex-A
71
- if (CONFIG_CPU_CORTEX_A)
72
- zephyr_include_directories(${ZEPHYR_CURRENT_MODULE_DIR} /mcux/mcux-sdk/CMSIS/Core_AArch64/Include )
73
- endif ()
74
-
75
- # The mcux uses the cpu name to expose SoC-specific features
76
- # of a given peripheral. For example, the UART peripheral may be
77
- # instantiated with/without a hardware FIFO, and the size of that
78
- # FIFO may be different for each instance in a given SoC. See
79
- # fsl_device_registers.h and ${MCUX_DEVICE}_features.h
80
- zephyr_compile_definitions(${MCUX_CPU} )
81
-
82
- # Build mcux device-specific objects. Although it is not normal
83
- # practice, drilling down like this avoids the need for repetitive
84
- # build scripts for every mcux device.
85
- zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR} /mcux/mcux-sdk/devices/${MCUX_DEVICE_PATH} /drivers/fsl_clock.c)
86
-
87
- if (${MCUX_DEVICE} MATCHES "LPC" )
88
- zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR} /mcux/mcux-sdk/devices/${MCUX_DEVICE_PATH} /drivers/fsl_power.c)
89
- zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR} /mcux/mcux-sdk/devices/${MCUX_DEVICE_PATH} /drivers/fsl_reset.c)
90
- endif ()
91
-
92
- zephyr_library_sources_ifdef(CONFIG_SOC_LPC54114_M4
93
- ${ZEPHYR_CURRENT_MODULE_DIR} /mcux/mcux-sdk/devices/${MCUX_DEVICE_PATH} /gcc/startup_LPC54114_cm4.S
94
- )
95
-
96
- # Include middleware/usb
97
- if (CONFIG_UDC_DRIVER OR CONFIG_USB_DEVICE_DRIVER)
98
- if (CONFIG_DT_HAS_NXP_USBPHY_ENABLED)
99
- zephyr_include_directories(${ZEPHYR_HAL_NXP_MODULE_DIR} /mcux/middleware/mcux-sdk-middleware-usb/phy)
100
- endif ()
101
- # Include usb required header file.
102
- zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR} /mcux_sdk_ng/middleware)
103
- endif ()
104
-
105
- # Include middleware/bt_controller.cmake
106
- if (CONFIG_BT_H4_NXP_CTLR)
107
- include (${CMAKE_CURRENT_LIST_DIR} /mcux_sdk_ng/middleware/bt_controller.cmake)
108
- endif ()
109
-
110
- add_subdirectory (${ZEPHYR_HAL_NXP_MODULE_DIR} /mcux/components ${CMAKE_CURRENT_BINARY_DIR} /components)
111
-
112
66
# Include Entry cmake component
113
67
add_subdirectory (mcux-sdk)
114
68
0 commit comments