File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ macro(create_mbed_802_15_4_target)
9
9
# Nanostack drivers always require Mbed RTOS
10
10
target_link_libraries (mbed-802.15.4-rf PUBLIC mbed-core-flags mbed-rtos-flags )
11
11
12
+ # For NanostackRfPhy.h
13
+ target_link_libraries (mbed-802.15.4-rf PUBLIC mbed-nanostack )
14
+
12
15
target_link_libraries (mbed-nanostack
13
16
INTERFACE
14
17
mbed-802.15.4-rf
Original file line number Diff line number Diff line change @@ -34,8 +34,13 @@ target_link_libraries(mbed-nanostack-mbed_mesh_api
34
34
PUBLIC
35
35
mbed-nanostack-hal_mbed_cmsis_rtos
36
36
mbed-nanostack-sal_stack
37
+ mbed-nanostack
37
38
mbed-netsocket-api
38
39
mbed-core-flags
39
40
PRIVATE
40
41
mbed-rtos-flags
41
42
)
43
+
44
+ # Since there are a lot of circular references between this library and mbed-netsocket-api,
45
+ # we have to have CMake repeat the libraries on the link line multiple times.
46
+ set_property (TARGET mbed-nanostack-mbed_mesh_api PROPERTY LINK_INTERFACE_MULTIPLICITY 3 )
Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ if("MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE=CELLULAR" IN_LIST MBED_CONFI
69
69
target_link_libraries (mbed-netsocket-api PUBLIC mbed-cellular )
70
70
endif ()
71
71
72
+ # Similarly if mesh networking is used bring in that library
73
+ if ("MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE=MESH" IN_LIST MBED_CONFIG_DEFINITIONS )
74
+ target_link_libraries (mbed-netsocket-api PUBLIC mbed-nanostack-mbed_mesh_api )
75
+ endif ()
76
+
77
+
72
78
if ("DEVICE_EMAC=1" IN_LIST MBED_TARGET_DEFINITIONS )
73
79
target_link_libraries (mbed-netsocket-api
74
80
INTERFACE
You can’t perform that action at this time.
0 commit comments