mirror of https://github.com/ARMmbed/mbed-os.git
CMake: Fix breakage due to BLE dir move
parent
de3462dabb
commit
20e19de028
|
@ -1,6 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("FEATURE")
|
||||
|
||||
add_subdirectory(cellular)
|
||||
add_subdirectory(drivers)
|
||||
add_subdirectory(libraries)
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_subdirectory(libraries)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/common
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/common/ble
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/common/ble/gap
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/internal
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/services
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
source/BLE.cpp
|
||||
source/DiscoveredCharacteristic.cpp
|
||||
source/FileSecurityDb.cpp
|
||||
source/KVStoreSecurityDb.cpp
|
||||
|
||||
source/gap/AdvertisingDataBuilder.cpp
|
||||
source/gap/AdvertisingParameters.cpp
|
||||
source/gap/ConnectionParameters.cpp
|
||||
)
|
|
@ -2,3 +2,5 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
|
||||
add_subdirectory(ble-api-implementation)
|
|
@ -3,20 +3,31 @@
|
|||
|
||||
add_subdirectory(stack)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/driver
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/internal
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack_adaptation
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
driver/CordioHCIDriver.cpp
|
||||
driver/CordioHCITransportDriver.cpp
|
||||
driver/H4TransportDriver.cpp
|
||||
|
||||
source/CordioBLE.cpp
|
||||
source/CordioGattServer.cpp
|
||||
source/CordioImplementations.cpp
|
||||
source/CordioPalAttClient.cpp
|
||||
source/CordioPalGap.tpp
|
||||
source/CordioPalSecurityManager.tpp
|
||||
source/BLEInstanceBaseImpl.cpp
|
||||
source/PalAttClientImpl.cpp
|
||||
source/PalEventQueueImpl.cpp
|
||||
source/PalGapImpl.cpp
|
||||
source/PalGattClientImpl.cpp
|
||||
source/PalGenericAccessServiceImpl.cpp
|
||||
source/PalSecurityManagerImpl.cpp
|
||||
source/PalSigningMonitorImpl.cpp
|
||||
|
||||
stack_adaptation/hci_drv.c
|
||||
stack_adaptation/hci_tr.c
|
||||
stack_adaptation/hci_vs.c
|
||||
stack_adaptation/pal_mbed_os_adaptation.cpp
|
||||
|
@ -24,10 +35,3 @@ target_sources(mbed-os
|
|||
stack_adaptation/wsf_mbed_os_adaptation.c
|
||||
stack_adaptation/wsf_os.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/driver
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack_adaptation
|
||||
)
|
|
@ -1,13 +1,29 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/hci/dual_chip
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/sec/common
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/att
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/cfg
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/dm
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/hci
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/l2c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/smp
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
sources/hci/common/hci_core.c
|
||||
|
||||
sources/hci/dual_chip/hci_cmd.c
|
||||
sources/hci/dual_chip/hci_cmd_ae.c
|
||||
sources/hci/dual_chip/hci_cmd_bis.c
|
||||
sources/hci/dual_chip/hci_cmd_cis.c
|
||||
sources/hci/dual_chip/hci_cmd_cte.c
|
||||
sources/hci/dual_chip/hci_cmd_iso.c
|
||||
sources/hci/dual_chip/hci_cmd_past.c
|
||||
sources/hci/dual_chip/hci_cmd_phy.c
|
||||
sources/hci/dual_chip/hci_core_ps.c
|
||||
|
@ -15,16 +31,18 @@ target_sources(mbed-os
|
|||
sources/hci/dual_chip/hci_vs_ae.c
|
||||
|
||||
sources/sec/common/sec_aes.c
|
||||
sources/sec/common/sec_aes_rev.c
|
||||
sources/sec/common/sec_ccm_hci.c
|
||||
sources/sec/common/sec_cmac_hci.c
|
||||
sources/sec/common/sec_ecc_debug.c
|
||||
sources/sec/common/sec_ecc_hci.c
|
||||
sources/sec/common/sec_main.c
|
||||
|
||||
sources/sec/pal/sec_ccm.c
|
||||
|
||||
sources/stack/att/att_eatt.c
|
||||
sources/stack/att/att_main.c
|
||||
sources/stack/att/att_uuid.c
|
||||
sources/stack/att/attc_disc.c
|
||||
sources/stack/att/attc_eatt.c
|
||||
sources/stack/att/attc_main.c
|
||||
sources/stack/att/attc_proc.c
|
||||
sources/stack/att/attc_read.c
|
||||
|
@ -33,6 +51,7 @@ target_sources(mbed-os
|
|||
sources/stack/att/atts_ccc.c
|
||||
sources/stack/att/atts_csf.c
|
||||
sources/stack/att/atts_dyn.c
|
||||
sources/stack/att/atts_eatt.c
|
||||
sources/stack/att/atts_ind.c
|
||||
sources/stack/att/atts_main.c
|
||||
sources/stack/att/atts_proc.c
|
||||
|
@ -45,6 +64,12 @@ target_sources(mbed-os
|
|||
sources/stack/dm/dm_adv.c
|
||||
sources/stack/dm/dm_adv_ae.c
|
||||
sources/stack/dm/dm_adv_leg.c
|
||||
sources/stack/dm/dm_bis_master.c
|
||||
sources/stack/dm/dm_bis_slave.c
|
||||
sources/stack/dm/dm_cis.c
|
||||
sources/stack/dm/dm_cis_master.c
|
||||
sources/stack/dm/dm_cis_slave.c
|
||||
sources/stack/dm/dm_cis_sm.c
|
||||
sources/stack/dm/dm_conn.c
|
||||
sources/stack/dm/dm_conn_cte.c
|
||||
sources/stack/dm/dm_conn_master.c
|
||||
|
@ -56,6 +81,7 @@ target_sources(mbed-os
|
|||
sources/stack/dm/dm_conn_sm.c
|
||||
sources/stack/dm/dm_dev.c
|
||||
sources/stack/dm/dm_dev_priv.c
|
||||
sources/stack/dm/dm_iso.c
|
||||
sources/stack/dm/dm_main.c
|
||||
sources/stack/dm/dm_past.c
|
||||
sources/stack/dm/dm_phy.c
|
||||
|
@ -91,16 +117,3 @@ target_sources(mbed-os
|
|||
sources/stack/smp/smpr_sc_sm.c
|
||||
sources/stack/smp/smpr_sm.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/hci/dual_chip
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/sec/common
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/att
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/cfg
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/dm
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/hci
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/l2c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/stack/smp
|
||||
)
|
|
@ -1,6 +1,12 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/util
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
sources/port/baremetal/wsf_assert.c
|
||||
|
@ -10,7 +16,6 @@ target_sources(mbed-os
|
|||
sources/port/baremetal/wsf_efs.c
|
||||
sources/port/baremetal/wsf_heap.c
|
||||
sources/port/baremetal/wsf_msg.c
|
||||
sources/port/baremetal/wsf_nvm.c
|
||||
sources/port/baremetal/wsf_queue.c
|
||||
sources/port/baremetal/wsf_timer.c
|
||||
sources/port/baremetal/wsf_trace.c
|
||||
|
@ -25,10 +30,3 @@ target_sources(mbed-os
|
|||
sources/util/terminal.c
|
||||
sources/util/wstr.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/util
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sources/port/baremetal
|
||||
)
|
|
@ -28,14 +28,20 @@ target_sources(mbed-os
|
|||
stack/controller/sources/ble/bb/bb_ble_adv_master_ae.c
|
||||
stack/controller/sources/ble/bb/bb_ble_adv_slave.c
|
||||
stack/controller/sources/ble/bb/bb_ble_adv_slave_ae.c
|
||||
stack/controller/sources/ble/bb/bb_ble_bis_master.c
|
||||
stack/controller/sources/ble/bb/bb_ble_bis_slave.c
|
||||
stack/controller/sources/ble/bb/bb_ble_cis.c
|
||||
stack/controller/sources/ble/bb/bb_ble_cis_master.c
|
||||
stack/controller/sources/ble/bb/bb_ble_cis_slave.c
|
||||
stack/controller/sources/ble/bb/bb_ble_conn.c
|
||||
stack/controller/sources/ble/bb/bb_ble_conn_master.c
|
||||
stack/controller/sources/ble/bb/bb_ble_conn_slave.c
|
||||
stack/controller/sources/ble/bb/bb_ble_dtm.c
|
||||
stack/controller/sources/ble/bb/bb_ble_main.c
|
||||
stack/controller/sources/ble/bb/bb_ble_pdufilt.c
|
||||
stack/controller/sources/ble/bb/bb_ble_periodiclist.c
|
||||
stack/controller/sources/ble/bb/bb_ble_reslist.c
|
||||
stack/controller/sources/ble/bb/bb_ble_test.c
|
||||
stack/controller/sources/ble/bb/bb_ble_sniffer.c
|
||||
stack/controller/sources/ble/bb/bb_ble_whitelist.c
|
||||
)
|
||||
|
||||
|
@ -118,13 +124,19 @@ target_sources(mbed-os
|
|||
stack/controller/sources/ble/lhci/lhci_cmd_adv_priv.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_adv_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_adv_slave_ae.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_bis_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_bis_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_cis_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_cis_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_conn.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_conn_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_conn_master_ae.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_conn_priv.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_enc_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_enc_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_iso.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_past.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_pc.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_phy.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_sc.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_vs.c
|
||||
|
@ -135,19 +147,25 @@ target_sources(mbed-os
|
|||
stack/controller/sources/ble/lhci/lhci_cmd_vs_conn.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_vs_conn_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_vs_enc_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_vs_ext.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_vs_iso.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_vs_sc.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_adv_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_adv_master_ae.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_adv_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_adv_slave_ae.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_bis_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_bis_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_cis_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_cis_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_conn.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_conn_cs2.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_conn_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_conn_priv.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_enc_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_enc_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_iso.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_pc.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_phy.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_sc.c
|
||||
stack/controller/sources/ble/lhci/lhci_evt_vs.c
|
||||
|
@ -157,6 +175,10 @@ target_sources(mbed-os
|
|||
stack/controller/sources/ble/lhci/lhci_init_adv_priv.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_adv_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_adv_slave_ae.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_bis_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_bis_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_cis_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_cis_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_conn.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_conn_cs2.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_conn_master.c
|
||||
|
@ -164,10 +186,13 @@ target_sources(mbed-os
|
|||
stack/controller/sources/ble/lhci/lhci_init_conn_priv.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_enc_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_enc_slave.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_iso.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_past.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_pc.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_phy.c
|
||||
stack/controller/sources/ble/lhci/lhci_init_sc.c
|
||||
stack/controller/sources/ble/lhci/lhci_main.c
|
||||
stack/controller/sources/ble/lhci/lhci_main_iso.c
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
|
@ -249,5 +274,5 @@ target_sources(mbed-os
|
|||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
stack_adaptation/fake_lhci_drv.cpp
|
||||
stack_adaptation/custom_chci_tr.cpp
|
||||
)
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/ble/internal
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
source/GapImpl.cpp
|
||||
source/GattClientImpl.cpp
|
||||
source/GattServerImpl.cpp
|
||||
source/SecurityManagerImpl.cpp
|
||||
)
|
|
@ -2,6 +2,7 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_subdirectory(802.15.4_RF)
|
||||
add_subdirectory(ble)
|
||||
add_subdirectory(cellular)
|
||||
add_subdirectory(emac)
|
||||
add_subdirectory(wifi)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
mbed_add_cmake_directory_if_labels("FEATURE")
|
|
@ -17,11 +17,5 @@ target_sources(mbed-os
|
|||
stack/sources/pal_bb_ble_rf.c
|
||||
stack/sources/pal_cfg.c
|
||||
stack/sources/pal_crypto.c
|
||||
stack/sources/pal_led.c
|
||||
stack/sources/pal_nvm.c
|
||||
stack/sources/pal_rtc.c
|
||||
stack/sources/pal_sys.c
|
||||
stack/sources/pal_timer.c
|
||||
stack/sources/pal_twi.c
|
||||
stack/sources/pal_uart.c
|
||||
)
|
|
@ -1,11 +0,0 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_subdirectory(ble)
|
||||
add_subdirectory(source)
|
||||
add_subdirectory(targets)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
|
@ -1,12 +0,0 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/common
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/gap
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/generic
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pal
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/services
|
||||
)
|
|
@ -1,22 +0,0 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
BLE.cpp
|
||||
BLEInstanceBase.cpp
|
||||
DiscoveredCharacteristic.cpp
|
||||
GattClient.tpp
|
||||
GattServer.tpp
|
||||
SecurityManager.tpp
|
||||
|
||||
gap/AdvertisingDataBuilder.cpp
|
||||
gap/AdvertisingParameters.cpp
|
||||
gap/ConnectionParameters.cpp
|
||||
gap/Gap.tpp
|
||||
|
||||
generic/FileSecurityDb.cpp
|
||||
generic/GenericGap.tpp
|
||||
generic/GenericGattClient.tpp
|
||||
generic/GenericSecurityManager.tpp
|
||||
)
|
|
@ -1,7 +0,0 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
HCIDriver.cpp
|
||||
)
|
Loading…
Reference in New Issue