-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevice_header.cmake
52 lines (41 loc) · 1.72 KB
/
device_header.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# device spcific drivers for single core device
if(CONFIG_MCUX_COMPONENT_device.CMSIS)
mcux_add_source(BASE_PATH ${SdkRootDirPath}/devices/${soc_portfolio}/${soc_series}/${device} SOURCES fsl_device_registers.h
"${CONFIG_MCUX_HW_DEVICE_CORE}.h" "${CONFIG_MCUX_HW_DEVICE_CORE}_features.h" "${CONFIG_MCUX_HW_DEVICE_CORE}_COMMON.h" "../${soc_periph}/*.h")
mcux_add_include(BASE_PATH ${SdkRootDirPath}/devices/${soc_portfolio}/${soc_series}/${device} INCLUDES .)
mcux_add_include(BASE_PATH ${SdkRootDirPath}/devices/${soc_portfolio}/${soc_series}/${soc_periph} INCLUDES .)
endif()
if(CONFIG_MCUX_COMPONENT_device.system)
mcux_add_source(BASE_PATH ${SdkRootDirPath}/devices/${soc_portfolio}/${soc_series}/${device} SOURCES system_${CONFIG_MCUX_HW_DEVICE_CORE}.c
system_${CONFIG_MCUX_HW_DEVICE_CORE}.h)
mcux_add_include(BASE_PATH ${SdkRootDirPath}/devices/${soc_portfolio}/${soc_series}/${device} INCLUDES .)
endif()
if(CONFIG_MCUX_COMPONENT_device.startup)
mcux_add_source(
BASE_PATH
${SdkRootDirPath}/devices/${soc_portfolio}/${soc_series}/${device}
SOURCES
iar/startup_${CONFIG_MCUX_HW_DEVICE_CORE}.s
TOOLCHAINS
iar
CONFIG
true)
mcux_add_source(
BASE_PATH
${SdkRootDirPath}/devices/${soc_portfolio}/${soc_series}/${device}
SOURCES
gcc/startup_${CONFIG_MCUX_HW_DEVICE_CORE}.S
TOOLCHAINS
armgcc
CONFIG
true)
mcux_add_source(
BASE_PATH
${SdkRootDirPath}/devices/${soc_portfolio}/${soc_series}/${device}
SOURCES
arm/startup_${CONFIG_MCUX_HW_DEVICE_CORE}.S
TOOLCHAINS
mdk
CONFIG
true)
endif()