-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
134 lines (119 loc) · 3.67 KB
/
CMakeLists.txt
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Copyright 2024 NXP
#
# SPDX-License-Identifier: BSD-3-Clause
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4)
mcux_add_include(
INCLUDES
Include
ieee_802_15_4/phy/interface
ieee_802_15_4/phy/source
ieee_802_15_4/phy/source/SerialDevice
ieee_802_15_4/mac/interface
ieee_802_15_4/mac/source/App
smac/interface
smac/common
smac/source
utils
)
mcux_add_source(
SOURCES
ieee_802_15_4/phy/interface/*.h
ieee_802_15_4/phy/source/SerialDevice/*.h
ieee_802_15_4/mac/interface/*.h
Include/MiniMac.h
Include/MMAC.h
Include/MiniMac_Pib.h
Include/tsv_pub.h
Include/mac_sap.h
Include/mac_pib.h
Include/AppApi.h
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.PHY)
mcux_add_source(
SOURCES
ieee_802_15_4/phy/source/ASP.c
ieee_802_15_4/phy/source/PhyDeviceFiltering.c
ieee_802_15_4/phy/source/PhyISR.c
ieee_802_15_4/phy/source/PhyPacket.c
ieee_802_15_4/phy/source/PhyPacketProcessor.c
ieee_802_15_4/phy/source/PhyPlmeData.c
ieee_802_15_4/phy/source/PhySec.c
ieee_802_15_4/phy/source/PhyStateMachine.c
ieee_802_15_4/phy/source/PhyTime.c
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.split_PHY)
mcux_add_source(
SOURCES
ieee_802_15_4/phy/source/SerialDevice/Phy.c
ieee_802_15_4/phy/source/PhyTime.c
ieee_802_15_4/phy/source/SerialDevice/ASP.c
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.k32w1_mcxw71.PHY)
mcux_add_source(
SOURCES
ieee_802_15_4/phy/source/K32W148/PhyPlatform.c
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.k32w1_mcxw71.MAC)
mcux_add_library(
LIBS
ieee_802_15_4/lib/libieee-802.15.4.a
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.k32w1_mcxw71.split_MAC)
mcux_add_library(
LIBS
ieee_802_15_4/lib/libieee-802.15.4_MAC_intf.a
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.k32w1_mcxw71.MAC_split_PHY)
mcux_add_library(
LIBS
ieee_802_15_4/lib/libieee-802.15.4_split.a
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.k32w1_mcxw71.NBU_img)
mcux_add_source(
SOURCES
bin/k32w1_mcxw71/*.*
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.mcxw72.PHY)
mcux_add_source(
SOURCES
ieee_802_15_4/phy/source/MCXW727/PhyPlatform.c
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.mcxw72.MAC)
mcux_add_library(
LIBS
ieee_802_15_4/lib/libieee-802.15.4_MCXW72.a
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.mcxw72.split_MAC)
mcux_add_library(
LIBS
ieee_802_15_4/lib/libieee-802.15.4_MAC_intf_MCXW72.a
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.mcxw72.MAC_split_PHY)
mcux_add_library(
LIBS
ieee_802_15_4/lib/libieee-802.15.4_split_MCXW72.a
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.mcxw72.NBU_img)
mcux_add_source(
SOURCES
bin/mcxw72/*.*
)
endif()
if (CONFIG_MCUX_COMPONENT_middleware.wireless.ieee_802_15_4.rw61x.split_MAC)
mcux_add_library(
LIBS
ieee_802_15_4/lib/libieee-802.15.4_MAC_intf_RW612.a
)
endif()