Skip to content

Commit a6988f1

Browse files
committed
Make all libraries link mbed-application-profile-flags
This makes all libraries link mbed-application-profile-flags instead of mbed-core-flags/mbed-rtos-flags so that they build on correct application profile, mbed-os or mbed-baremetal.
1 parent 7098cb0 commit a6988f1

File tree

26 files changed

+29
-37
lines changed

26 files changed

+29
-37
lines changed

connectivity/cellular/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ target_sources(mbed-cellular
3838
target_link_libraries(mbed-cellular
3939
PUBLIC
4040
mbed-netsocket-api
41-
mbed-core-flags
42-
mbed-rtos-flags
41+
mbed-application-profile-flags
4342
mbed-randlib
4443
)

connectivity/drivers/802.15.4_RF/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ macro(create_mbed_802_15_4_target)
77
add_library(mbed-802.15.4-rf STATIC EXCLUDE_FROM_ALL)
88

99
# Nanostack drivers always require Mbed RTOS
10-
target_link_libraries(mbed-802.15.4-rf PUBLIC mbed-core-flags mbed-rtos-flags)
10+
target_link_libraries(mbed-802.15.4-rf PUBLIC mbed-application-profile-flags)
1111

1212
# For NanostackRfPhy.h
1313
target_link_libraries(mbed-802.15.4-rf PUBLIC mbed-nanostack)

connectivity/drivers/ble/FEATURE_BLE/COMPONENT_BlueNRG_2/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ add_library(mbed-bluenrg2 STATIC EXCLUDE_FROM_ALL
66

77
target_link_libraries(mbed-bluenrg2
88
PUBLIC
9-
mbed-core-flags
9+
mbed-application-profile-flags
1010
mbed-ble
11-
PRIVATE
12-
mbed-rtos-flags)
11+
)
1312

1413
# circular dependency between mbed-ble and the BlueNRG driver, because of the ble_cordio_get_hci_driver() implementation
1514
target_link_libraries(mbed-ble PUBLIC mbed-bluenrg2)

connectivity/drivers/ble/FEATURE_BLE/COMPONENT_BlueNRG_MS/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ add_library(mbed-bluenrg-ms STATIC EXCLUDE_FROM_ALL
66

77
target_link_libraries(mbed-bluenrg-ms
88
PUBLIC
9-
mbed-core-flags
9+
mbed-application-profile-flags
1010
mbed-ble
11-
PRIVATE
12-
mbed-rtos-flags)
11+
)
1312

1413

1514
# circular dependency between mbed-ble and the BlueNRG driver, because of the ble_cordio_get_hci_driver() implementation

connectivity/drivers/emac/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ target_link_libraries(mbed-emac
3333
PUBLIC
3434
mbed-netsocket-api
3535
PRIVATE
36-
mbed-rtos-flags
36+
mbed-application-profile-flags
3737
)

connectivity/drivers/wifi/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ macro(create_mbed_wifi_target)
88

99
target_link_libraries(mbed-wifi
1010
PUBLIC
11-
mbed-rtos-flags
11+
mbed-application-profile-flags
1212
mbed-netsocket-api
1313
)
1414
endif()

connectivity/drivers/wifi/COMPONENT_WHD/minimal-cyhal/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ add_library(mbed-minimal-cyhal STATIC
1515
wiced_filesystem.cpp)
1616
target_include_directories(mbed-minimal-cyhal PUBLIC .)
1717
target_link_libraries(mbed-minimal-cyhal PUBLIC
18-
mbed-core-flags
18+
mbed-application-profile-flags
1919
mbed-cy-rtos-abstraction)
2020

2121
# This is needed in order to make cybsp_wifi.h include cycfg.h

connectivity/drivers/wifi/COMPONENT_WHD/whd-bsp-integration/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ target_sources(mbed-wifi
1515
target_link_libraries(mbed-wifi
1616
PUBLIC
1717
mbed-lwipstack
18-
mbed-rtos-flags
18+
mbed-application-profile-flags
1919
)
2020

2121
if("DEVICE_EMAC=1" IN_LIST MBED_TARGET_DEFINITIONS)

connectivity/libraries/mbed-coap/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ target_compile_definitions(mbed-coap
2626
target_link_libraries(mbed-coap
2727
PUBLIC
2828
mbed-nanostack-libservice
29-
mbed-core-flags
29+
mbed-application-profile-flags
3030
mbed-randlib
3131
)

connectivity/libraries/ppp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ target_link_libraries(mbed-ppp
5757
PUBLIC
5858
mbed-netsocket-api
5959
PRIVATE
60-
mbed-rtos-flags
60+
mbed-application-profile-flags
6161
)

0 commit comments

Comments
 (0)