Fix BlueNRG undefined reference to ble_cordio_get_hci_driver() (#145)

pull/15437/head
Jamie Smith 2023-03-01 09:12:00 -08:00 committed by GitHub
parent 4124a9a67d
commit 1c00ec562f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 8 deletions

View File

@ -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)

View File

@ -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)