mirror of https://github.com/ARMmbed/mbed-os.git
Fix BlueNRG undefined reference to ble_cordio_get_hci_driver() (#145)
parent
4124a9a67d
commit
1c00ec562f
|
@ -1,9 +1,15 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(mbed-bluenrg-2 STATIC EXCLUDE_FROM_ALL
|
||||
BlueNrg2HCIDriver.cpp)
|
||||
add_library(mbed-bluenrg2 STATIC EXCLUDE_FROM_ALL
|
||||
BlueNrg2HCIDriver.cpp)
|
||||
|
||||
target_link_libraries(mbed-bluenrg-2 PUBLIC
|
||||
mbed-os
|
||||
mbed-ble)
|
||||
target_link_libraries(mbed-bluenrg2
|
||||
PUBLIC
|
||||
mbed-core-flags
|
||||
mbed-ble
|
||||
PRIVATE
|
||||
mbed-rtos-flags)
|
||||
|
||||
# circular dependency between mbed-ble and the BlueNRG driver, because of the ble_cordio_get_hci_driver() implementation
|
||||
target_link_libraries(mbed-ble PUBLIC mbed-bluenrg2)
|
|
@ -4,6 +4,13 @@
|
|||
add_library(mbed-bluenrg-ms STATIC EXCLUDE_FROM_ALL
|
||||
BlueNrgMsHCIDriver.cpp)
|
||||
|
||||
target_link_libraries(mbed-bluenrg-ms PUBLIC
|
||||
mbed-os
|
||||
mbed-ble)
|
||||
target_link_libraries(mbed-bluenrg-ms
|
||||
PUBLIC
|
||||
mbed-core-flags
|
||||
mbed-ble
|
||||
PRIVATE
|
||||
mbed-rtos-flags)
|
||||
|
||||
|
||||
# circular dependency between mbed-ble and the BlueNRG driver, because of the ble_cordio_get_hci_driver() implementation
|
||||
target_link_libraries(mbed-ble PUBLIC mbed-bluenrg-ms)
|
Loading…
Reference in New Issue