diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phyar8031/driver_phy-device-ar8031.cmake')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phyar8031/driver_phy-device-ar8031.cmake | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phyar8031/driver_phy-device-ar8031.cmake b/lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phyar8031/driver_phy-device-ar8031.cmake new file mode 100644 index 000000000..f4f279f60 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/components/phy/device/phyar8031/driver_phy-device-ar8031.cmake | |||
@@ -0,0 +1,25 @@ | |||
1 | if(NOT DRIVER_PHY-DEVICE-AR8031_INCLUDED) | ||
2 | |||
3 | set(DRIVER_PHY-DEVICE-AR8031_INCLUDED true CACHE BOOL "driver_phy-device-ar8031 component is included.") | ||
4 | |||
5 | target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE | ||
6 | ${CMAKE_CURRENT_LIST_DIR}/fsl_phyar8031.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 "MIMX8QM6_cm4_core0") | ||
15 | include(driver_phy-common) | ||
16 | endif() | ||
17 | if(${MCUX_DEVICE} STREQUAL "MIMX8QM6_cm4_core1") | ||
18 | include(driver_phy-common) | ||
19 | endif() | ||
20 | if(${MCUX_DEVICE} STREQUAL "MIMX8QX6") | ||
21 | include(driver_phy-common) | ||
22 | endif() | ||
23 | |||
24 | |||
25 | endif() \ No newline at end of file | ||