aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phyksz8081/driver_phy-device-ksz8081.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phyksz8081/driver_phy-device-ksz8081.cmake')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phyksz8081/driver_phy-device-ksz8081.cmake37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phyksz8081/driver_phy-device-ksz8081.cmake b/lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phyksz8081/driver_phy-device-ksz8081.cmake
new file mode 100644
index 000000000..e8133805e
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phyksz8081/driver_phy-device-ksz8081.cmake
@@ -0,0 +1,37 @@
1if(NOT DRIVER_PHY-DEVICE-KSZ8081_INCLUDED)
2
3 set(DRIVER_PHY-DEVICE-KSZ8081_INCLUDED true CACHE BOOL "driver_phy-device-ksz8081 component is included.")
4
5 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6 ${CMAKE_CURRENT_LIST_DIR}/fsl_phyksz8081.c
7 )
8
9 target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE
10 ${CMAKE_CURRENT_LIST_DIR}/.
11 )
12
13 #OR Logic component
14 if(${MCUX_DEVICE} STREQUAL "MIMXRT1052")
15 include(driver_phy-common)
16 endif()
17 if(${MCUX_DEVICE} STREQUAL "MIMXRT1064")
18 include(driver_phy-common)
19 endif()
20 if(${MCUX_DEVICE} STREQUAL "MK64F12")
21 include(driver_phy-common)
22 endif()
23 if(${MCUX_DEVICE} STREQUAL "MK66F18")
24 include(driver_phy-common)
25 endif()
26 if(${MCUX_DEVICE} STREQUAL "MIMXRT1021")
27 include(driver_phy-common)
28 endif()
29 if(${MCUX_DEVICE} STREQUAL "MIMXRT1062")
30 include(driver_phy-common)
31 endif()
32 if(${MCUX_DEVICE} STREQUAL "MIMXRT1024")
33 include(driver_phy-common)
34 endif()
35
36
37endif() \ No newline at end of file