mirror of https://github.com/ARMmbed/mbed-os.git
CMake: Componentize Mbed OS into multiple CMake targets (#13732)
Aside from the core mbed-os CMake target, a number of targets have been created so they can optionally be included by application executables that require them using `target_link_libraries()`. Co-authored-by: Martin Kojtal <martin.kojtal@arm.com> Co-authored-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@arm.com>pull/13566/head
parent
d84baa8fa1
commit
fa98689639
|
@ -25,7 +25,6 @@ include(${MBED_ROOT}/tools/cmake/core.cmake)
|
|||
include(${MBED_ROOT}/tools/cmake/util.cmake)
|
||||
include(${MBED_ROOT}/tools/cmake/profile.cmake)
|
||||
|
||||
# Create Mbed OS library
|
||||
add_library(mbed-os OBJECT)
|
||||
|
||||
# Validate selected C library type
|
||||
|
@ -80,19 +79,26 @@ target_include_directories(mbed-os
|
|||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
# Default build
|
||||
# TODO CMake: This component is made visible here so its source files in
|
||||
# drivers/ can be added and it can be linked against by libraries in storage/.
|
||||
# Should the source files be moved from drivers/ to storage/ ?
|
||||
add_library(mbed-os-device_key INTERFACE)
|
||||
|
||||
add_subdirectory(cmsis)
|
||||
add_subdirectory(components)
|
||||
add_subdirectory(connectivity)
|
||||
add_subdirectory(drivers)
|
||||
add_subdirectory(events)
|
||||
add_subdirectory(features)
|
||||
add_subdirectory(hal)
|
||||
add_subdirectory(platform)
|
||||
add_subdirectory(rtos)
|
||||
add_subdirectory(storage)
|
||||
add_subdirectory(targets)
|
||||
|
||||
# The directories below contain optional target libraries
|
||||
add_subdirectory(events EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(connectivity EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(storage EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(drivers/device_key EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(drivers/source/usb EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(features EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(platform/FEATURE_EXPERIMENTAL_API EXCLUDE_FROM_ALL)
|
||||
|
||||
#
|
||||
# Configures the application
|
||||
|
@ -134,7 +140,6 @@ function(mbed_set_mbed_target_linker_script target)
|
|||
)
|
||||
endfunction()
|
||||
|
||||
|
||||
#
|
||||
# Converts output file of `target` to binary file and to Intel HEX file.
|
||||
#
|
||||
|
|
|
@ -3,3 +3,4 @@
|
|||
|
||||
add_subdirectory(CMSIS_5)
|
||||
add_subdirectory(device)
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_subdirectory(testing)
|
|
@ -1,4 +0,0 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("COMPONENT")
|
|
@ -1,18 +0,0 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
DynamicPinList.cpp
|
||||
I2CTester.cpp
|
||||
MbedTester.cpp
|
||||
SPIMasterTester.cpp
|
||||
SPISlaveTester.cpp
|
||||
SPITester.cpp
|
||||
UARTTester.cpp
|
||||
)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
|
@ -1,8 +1,33 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("FEATURE")
|
||||
# List of all connectivity libraries available.
|
||||
add_library(mbed-os-802.15.4-rf INTERFACE)
|
||||
add_library(mbed-os-ble INTERFACE)
|
||||
add_library(mbed-os-ble-blue_nrg INTERFACE)
|
||||
add_library(mbed-os-ble-cordio INTERFACE)
|
||||
add_library(mbed-os-ble-cordio_ll INTERFACE)
|
||||
add_library(mbed-os-cellular INTERFACE)
|
||||
add_library(mbed-os-coap INTERFACE)
|
||||
add_library(mbed-os-emac INTERFACE)
|
||||
add_library(mbed-os-lorawan INTERFACE)
|
||||
add_library(mbed-os-lwipstack INTERFACE)
|
||||
add_library(mbed-os-mbedtls INTERFACE)
|
||||
add_library(mbed-os-mbedtls-cryptocell310 INTERFACE)
|
||||
add_library(mbed-os-nanostack INTERFACE)
|
||||
add_library(mbed-os-nanostack-coap_service INTERFACE)
|
||||
add_library(mbed-os-nanostack-mbed_mesh_api INTERFACE)
|
||||
add_library(mbed-os-nanostack-hal_mbed_cmsis_rtos INTERFACE)
|
||||
add_library(mbed-os-nanostack-sal_stack INTERFACE)
|
||||
add_library(mbed-os-nanostack-sal_stack-event_loop INTERFACE)
|
||||
add_library(mbed-os-nanostack-libservice INTERFACE)
|
||||
add_library(mbed-os-netsocket INTERFACE)
|
||||
add_library(mbed-os-nfc INTERFACE)
|
||||
add_library(mbed-os-ppp INTERFACE)
|
||||
add_library(mbed-os-wifi INTERFACE)
|
||||
|
||||
|
||||
add_subdirectory(FEATURE_BLE)
|
||||
add_subdirectory(cellular)
|
||||
add_subdirectory(drivers)
|
||||
add_subdirectory(libraries)
|
||||
|
@ -12,8 +37,3 @@ add_subdirectory(mbedtls)
|
|||
add_subdirectory(nanostack)
|
||||
add_subdirectory(netsocket)
|
||||
add_subdirectory(nfc)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
add_subdirectory(libraries)
|
||||
add_subdirectory(source)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-ble
|
||||
INTERFACE
|
||||
.
|
||||
include
|
||||
include/ble
|
||||
|
@ -20,3 +20,8 @@ target_include_directories(mbed-os
|
|||
include/ble/services
|
||||
source
|
||||
)
|
||||
|
||||
target_compile_definitions(mbed-os-ble
|
||||
INTERFACE
|
||||
MBED_CONF_BLE_PRESENT=1
|
||||
)
|
||||
|
|
|
@ -1,11 +1,18 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("CORDIO_LL" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_CORDIO_LL)
|
||||
endif()
|
||||
|
||||
add_subdirectory(cordio_stack)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-ble-cordio
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-os-ble-cordio
|
||||
INTERFACE
|
||||
mbed-os-ble
|
||||
)
|
||||
|
|
|
@ -1,29 +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}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/controller
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/controller/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/controller/include/ble
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/controller/include/common
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/controller/sources/ble/bb
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/controller/sources/ble/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/controller/sources/ble/lctr
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/controller/sources/ble/lhci
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/controller/sources/ble/sch
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/controller/sources/common/bb
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/controller/sources/common/sch
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/thirdparty
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/thirdparty/nordic-bsp/components/boards
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack/thirdparty/uecc
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/stack_adaptation
|
||||
target_include_directories(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
.
|
||||
./stack
|
||||
./stack/controller
|
||||
./stack/controller/include
|
||||
./stack/controller/include/ble
|
||||
./stack/controller/include/common
|
||||
./stack/controller/sources/ble/bb
|
||||
./stack/controller/sources/ble/include
|
||||
./stack/controller/sources/ble/lctr
|
||||
./stack/controller/sources/ble/lhci
|
||||
./stack/controller/sources/ble/sch
|
||||
./stack/controller/sources/common/bb
|
||||
./stack/controller/sources/common/sch
|
||||
./stack/thirdparty
|
||||
./stack/thirdparty/nordic-bsp/components/boards
|
||||
./stack/thirdparty/uecc
|
||||
./stack_adaptation
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
stack/controller/sources/ble/bb/bb_ble_adv_master.c
|
||||
stack/controller/sources/ble/bb/bb_ble_adv_master_ae.c
|
||||
stack/controller/sources/ble/bb/bb_ble_adv_slave.c
|
||||
|
@ -45,14 +45,14 @@ target_sources(mbed-os
|
|||
stack/controller/sources/ble/bb/bb_ble_whitelist.c
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
stack/controller/sources/ble/init/init.c
|
||||
stack/controller/sources/ble/init/init_ctr.c
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
stack/controller/sources/ble/lctr/lctr_act_adv_master.c
|
||||
stack/controller/sources/ble/lctr/lctr_act_adv_master_ae.c
|
||||
stack/controller/sources/ble/lctr/lctr_act_adv_slave.c
|
||||
|
@ -145,8 +145,8 @@ target_sources(mbed-os
|
|||
stack/controller/sources/ble/lctr/lctr_sm_llcp_slave_phy.c
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
stack/controller/sources/ble/lhci/lhci_cmd.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_adv_master.c
|
||||
stack/controller/sources/ble/lhci/lhci_cmd_adv_master_ae.c
|
||||
|
@ -224,8 +224,8 @@ target_sources(mbed-os
|
|||
stack/controller/sources/ble/lhci/lhci_main_iso.c
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
stack/controller/sources/ble/ll/ll_init.c
|
||||
stack/controller/sources/ble/ll/ll_init_adv_master.c
|
||||
stack/controller/sources/ble/ll/ll_init_adv_master_ae.c
|
||||
|
@ -275,8 +275,8 @@ target_sources(mbed-os
|
|||
stack/controller/sources/ble/ll/ll_math.c
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
stack/controller/sources/ble/lmgr/lmgr_events.c
|
||||
stack/controller/sources/ble/lmgr/lmgr_main.c
|
||||
stack/controller/sources/ble/lmgr/lmgr_main_adv_master_ae.c
|
||||
|
@ -290,15 +290,15 @@ target_sources(mbed-os
|
|||
stack/controller/sources/ble/lmgr/lmgr_main_slave.c
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
stack/controller/sources/ble/sch/sch_ble.c
|
||||
stack/controller/sources/ble/sch/sch_rm.c
|
||||
stack/controller/sources/ble/sch/sch_tm.c
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
stack/controller/sources/common/bb/bb_main.c
|
||||
|
||||
stack/controller/sources/common/chci/chci_tr.c
|
||||
|
@ -307,8 +307,8 @@ target_sources(mbed-os
|
|||
stack/controller/sources/common/sch/sch_main.c
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
stack/thirdparty/nordic-bsp/components/boards/boards.c
|
||||
|
||||
stack/thirdparty/uecc/asm_arm.inc
|
||||
|
@ -316,7 +316,12 @@ target_sources(mbed-os
|
|||
stack/thirdparty/uecc/uECC_ll.c
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
stack_adaptation/custom_chci_tr.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-os-ble-cordio_ll
|
||||
INTERFACE
|
||||
mbed-os-ble-cordio
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-ble-cordio
|
||||
INTERFACE
|
||||
include
|
||||
sources/hci/dual_chip
|
||||
sources/sec/common
|
||||
|
@ -14,8 +14,8 @@ target_include_directories(mbed-os
|
|||
sources/stack/smp
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio
|
||||
INTERFACE
|
||||
sources/hci/common/hci_core.c
|
||||
|
||||
sources/hci/dual_chip/hci_cmd.c
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-ble-cordio
|
||||
INTERFACE
|
||||
include
|
||||
)
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-ble-cordio
|
||||
INTERFACE
|
||||
include
|
||||
include/util
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio
|
||||
INTERFACE
|
||||
sources/port/baremetal/wsf_assert.c
|
||||
sources/port/baremetal/wsf_buf.c
|
||||
sources/port/baremetal/wsf_bufio.c
|
||||
|
|
|
@ -7,8 +7,8 @@ add_subdirectory(gatt)
|
|||
add_subdirectory(generic)
|
||||
add_subdirectory(pal)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
BLE.cpp
|
||||
Gap.cpp
|
||||
GattClient.cpp
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-ble-cordio
|
||||
INTERFACE
|
||||
.
|
||||
source
|
||||
stack_adaptation
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio
|
||||
INTERFACE
|
||||
driver/CordioHCIDriver.cpp
|
||||
driver/CordioHCITransportDriver.cpp
|
||||
driver/H4TransportDriver.cpp
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
AdvertisingDataBuilder.cpp
|
||||
AdvertisingParameters.cpp
|
||||
ConnectionParameters.cpp
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
DiscoveredCharacteristic.cpp
|
||||
)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-ble
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
FileSecurityDb.cpp
|
||||
GapImpl.cpp
|
||||
GattClientImpl.cpp
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-ble
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
PalAttClientToGattClient.cpp
|
||||
)
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
add_subdirectory(source/framework)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/cellular
|
||||
|
@ -14,3 +14,14 @@ target_include_directories(mbed-os
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework/common
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/cellular/framework/device
|
||||
)
|
||||
|
||||
target_compile_definitions(mbed-os-cellular
|
||||
INTERFACE
|
||||
MBED_CONF_CELLULAR_PRESENT=1
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-os-cellular
|
||||
INTERFACE
|
||||
mbed-os-netsocket
|
||||
mbed-os
|
||||
)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
AT_CellularContext.cpp
|
||||
AT_CellularDevice.cpp
|
||||
AT_CellularInformation.cpp
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
APN_db.cpp
|
||||
CellularLog.cpp
|
||||
CellularUtil.cpp
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
ATHandler.cpp
|
||||
CellularContext.cpp
|
||||
CellularDevice.cpp
|
||||
|
|
|
@ -1,8 +1,18 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("Freescale" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_Freescale)
|
||||
add_subdirectory(mcr20a-rf-driver)
|
||||
elseif("Silicon_Labs" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_Silicon_Labs)
|
||||
elseif("STM" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(stm-s2lp-rf-driver)
|
||||
endif()
|
||||
|
||||
add_subdirectory(atmel-rf-driver)
|
||||
add_subdirectory(mcr20a-rf-driver)
|
||||
add_subdirectory(stm-s2lp-rf-driver)
|
||||
|
||||
target_link_libraries(mbed-os-802.15.4-rf
|
||||
INTERFACE
|
||||
mbed-os-nanostack
|
||||
)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("KW41Z" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_KW41Z)
|
||||
endif()
|
||||
|
|
|
@ -1,12 +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}
|
||||
target_include_directories(mbed-os-802.15.4-rf
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-802.15.4-rf
|
||||
INTERFACE
|
||||
NanostackRfPhyKw41z.cpp
|
||||
)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("SL_RAIL" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_SL_RAIL)
|
||||
endif()
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-802.15.4-rf
|
||||
INTERFACE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-802.15.4-rf
|
||||
INTERFACE
|
||||
NanostackRfPhyEfr32.cpp
|
||||
)
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-802.15.4-rf
|
||||
INTERFACE
|
||||
atmel-rf-driver
|
||||
source
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-802.15.4-rf
|
||||
INTERFACE
|
||||
source/NanostackRfPhyAT86RF215.cpp
|
||||
source/NanostackRfPhyAtmel.cpp
|
||||
source/at24mac.cpp
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-802.15.4-rf
|
||||
INTERFACE
|
||||
mcr20a-rf-driver
|
||||
source
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-802.15.4-rf
|
||||
INTERFACE
|
||||
source/MCR20Drv.c
|
||||
source/NanostackRfPhyMcr20a.cpp
|
||||
)
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-802.15.4-rf
|
||||
INTERFACE
|
||||
stm-s2lp-rf-driver
|
||||
source
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-802.15.4-rf
|
||||
INTERFACE
|
||||
source/NanostackRfPhys2lp.cpp
|
||||
source/at24mac_s2lp.cpp
|
||||
source/rf_configuration.c
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("FEATURE")
|
||||
add_subdirectory(FEATURE_BLE)
|
||||
|
|
|
@ -1,5 +1,20 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("COMPONENT")
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("BlueNRG_MS" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(COMPONENT_BlueNRG_MS)
|
||||
endif()
|
||||
|
||||
if("CYW43XXX" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(COMPONENT_CYW43XXX)
|
||||
endif()
|
||||
|
||||
if("Ambiq_Micro" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_Ambiq_Micro)
|
||||
elseif("CY8C63XX" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_CY8C63XX)
|
||||
elseif("NORDIC" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NORDIC)
|
||||
elseif("STM32WB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32WB)
|
||||
endif()
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-blue_nrg
|
||||
INTERFACE
|
||||
BlueNrgMsHCIDriver.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-os-ble-blue_nrg
|
||||
INTERFACE
|
||||
mbed-os-ble
|
||||
)
|
||||
|
|
|
@ -1,16 +1,19 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("PSOC6" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_PSOC6)
|
||||
endif()
|
||||
|
||||
add_subdirectory(firmware)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-ble
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
CyH4TransportDriver.cpp
|
||||
HCIDriver.cpp
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
cy_bt_cordio_cfg.cpp
|
||||
)
|
||||
|
|
|
@ -1,5 +1,18 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("COMPONENT")
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("43012" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(COMPONENT_43012)
|
||||
endif()
|
||||
|
||||
if("43438" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(COMPONENT_43438)
|
||||
endif()
|
||||
|
||||
if("4343W" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(COMPONENT_4343W)
|
||||
endif()
|
||||
|
||||
if("CYW9P62S1_43012EVB_01" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_CYW9P62S1_43012EVB_01)
|
||||
endif()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
w_bt_firmware_controller.c
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
w_bt_firmware_controller.c
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
w_bt_firmware_controller.c
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
w_bt_firmware_controller.c
|
||||
)
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("Apollo3" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_Apollo3)
|
||||
endif()
|
||||
|
||||
target_include_directories(mbed-os-ble
|
||||
INTERFACE
|
||||
hal/apollo3
|
||||
)
|
||||
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
hal/hci_drv_apollo3.c
|
||||
)
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os-ble
|
||||
PUBLIC
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os-ble
|
||||
PRIVATE
|
||||
AP3CordioHCIDriver.cpp
|
||||
AP3CordioHCITransportDriver.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-os-ble
|
||||
mbed-os
|
||||
)
|
|
@ -1,14 +1,14 @@
|
|||
# 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}/drivers
|
||||
target_include_directories(mbed-os-ble
|
||||
INTERFACE
|
||||
.
|
||||
drivers
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
Psoc6BLE.cpp
|
||||
drivers/IPCPipeTransportDriver.cpp
|
||||
)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("NORDIC_CORDIO" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NORDIC_CORDIO)
|
||||
endif()
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("MCU_NRF52840" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_MCU_NRF52840)
|
||||
elseif("NRF5x" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NRF5x)
|
||||
endif()
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
# 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}/stack/include
|
||||
target_include_directories(mbed-os-ble-cordio
|
||||
INTERFACE
|
||||
.
|
||||
./stack/include
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble-cordio
|
||||
INTERFACE
|
||||
NRFCordioHCIDriver.cpp
|
||||
NRFCordioHCITransportDriver.cpp
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
# 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}/STM32Cube_FW
|
||||
target_include_directories(mbed-os-ble
|
||||
INTERFACE
|
||||
.
|
||||
./STM32Cube_FW
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-ble
|
||||
INTERFACE
|
||||
HCIDriver.cpp
|
||||
hw_ipcc.c
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
ALT1250_PPP.cpp
|
||||
ALT1250_PPP_CellularContext.cpp
|
||||
ALT1250_PPP_CellularNetwork.cpp
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("COMPONENT")
|
||||
if("STMOD_CELLULAR" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(COMPONENT_STMOD_CELLULAR)
|
||||
endif()
|
||||
|
||||
add_subdirectory(Altair)
|
||||
add_subdirectory(GEMALTO)
|
||||
|
@ -12,7 +14,7 @@ add_subdirectory(RiotMicro)
|
|||
add_subdirectory(TELIT)
|
||||
add_subdirectory(UBLOX)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
|
|
@ -1,12 +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}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
STModCellular.cpp
|
||||
)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
GEMALTO_CINTERION.cpp
|
||||
GEMALTO_CINTERION_CellularContext.cpp
|
||||
GEMALTO_CINTERION_CellularInformation.cpp
|
||||
|
|
|
@ -1,12 +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}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
GENERIC_AT3GPP.cpp
|
||||
)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
SARA4_PPP.cpp
|
||||
SARA4_PPP_CellularNetwork.cpp
|
||||
)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
QUECTEL_BC95.cpp
|
||||
QUECTEL_BC95_CellularContext.cpp
|
||||
QUECTEL_BC95_CellularInformation.cpp
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
QUECTEL_BG96.cpp
|
||||
QUECTEL_BG96_CellularContext.cpp
|
||||
QUECTEL_BG96_CellularInformation.cpp
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
QUECTEL_EC2X.cpp
|
||||
)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
QUECTEL_M26.cpp
|
||||
QUECTEL_M26_CellularContext.cpp
|
||||
QUECTEL_M26_CellularInformation.cpp
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
QUECTEL_UG96.cpp
|
||||
QUECTEL_UG96_CellularContext.cpp
|
||||
)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
RM1000_AT.cpp
|
||||
RM1000_AT_CellularContext.cpp
|
||||
RM1000_AT_CellularNetwork.cpp
|
||||
|
|
|
@ -1,12 +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}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
TELIT_HE910.cpp
|
||||
)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
TELIT_ME310.cpp
|
||||
TELIT_ME310_CellularContext.cpp
|
||||
TELIT_ME310_CellularNetwork.cpp
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
TELIT_ME910.cpp
|
||||
TELIT_ME910_CellularContext.cpp
|
||||
TELIT_ME910_CellularNetwork.cpp
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
UBLOX_AT.cpp
|
||||
UBLOX_AT_CellularContext.cpp
|
||||
UBLOX_AT_CellularNetwork.cpp
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
UBLOX_N2XX.cpp
|
||||
UBLOX_N2XX_CellularContext.cpp
|
||||
UBLOX_N2XX_CellularNetwork.cpp
|
||||
|
|
|
@ -1,12 +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}
|
||||
target_include_directories(mbed-os-cellular
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-cellular
|
||||
INTERFACE
|
||||
UBLOX_PPP.cpp
|
||||
)
|
||||
|
|
|
@ -1,4 +1,31 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("ARM_FM" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_ARM_FM)
|
||||
elseif("ARM_SSG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_ARM_SSG)
|
||||
elseif("Cypress" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_Cypress)
|
||||
elseif("Freescale_EMAC" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_Freescale_EMAC)
|
||||
elseif("GD_EMAC" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_GD_EMAC)
|
||||
elseif("NUVOTON_EMAC" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUVOTON_EMAC)
|
||||
elseif("NXP_EMAC" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NXP_EMAC)
|
||||
elseif("RDA_EMAC" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_RDA_EMAC)
|
||||
elseif("RENESAS_EMAC" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_RENESAS_EMAC)
|
||||
elseif("STM" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM)
|
||||
elseif("Silicon_Labs" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_Silicon_Labs)
|
||||
endif()
|
||||
|
||||
target_link_libraries(mbed-os-emac
|
||||
INTERFACE
|
||||
mbed-os-netsocket
|
||||
)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("COMPONENT")
|
||||
if("LAN91C111" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(COMPONENT_LAN91C111)
|
||||
endif()
|
||||
|
|
|
@ -1,12 +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}
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
fvp_emac.cpp
|
||||
)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("COMPONENT")
|
||||
if("SMSC9220" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(COMPONENT_SMSC9220)
|
||||
endif()
|
||||
|
|
|
@ -1,12 +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}
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
smsc9220_emac.cpp
|
||||
)
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("COMPONENT")
|
||||
if("SCL" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(COMPONENT_SCL)
|
||||
endif()
|
||||
|
||||
if("WHD" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(COMPONENT_WHD)
|
||||
endif()
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
# 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}/interface
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
./interface
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
interface/SclSTAInterface.cpp
|
||||
interface/default_wifi_interface.cpp
|
||||
interface/scl_emac.cpp
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
# 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}/interface
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/network
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/utils
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
./interface
|
||||
./network
|
||||
./utils
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
interface/CyDhcpServer.cpp
|
||||
interface/WhdAccessPoint.cpp
|
||||
interface/WhdSTAInterface.cpp
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("K64F" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_K64F)
|
||||
elseif("K66F" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_K66F)
|
||||
endif()
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
kinetis_emac.cpp
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
hardware_init_MK64F12.c
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
hardware_init_MK66F18.c
|
||||
)
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("GD32F30X" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_GD32F30X)
|
||||
elseif("GD32F4XX" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_GD32F4XX)
|
||||
endif()
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
gd32xx_emac.cpp
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
gd32f3_eth_init.c
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
gd32f4_eth_init.c
|
||||
)
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("M480" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_M480)
|
||||
elseif("NUC472" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUC472)
|
||||
endif()
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
numaker_emac.cpp
|
||||
)
|
||||
|
|
|
@ -1,12 +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}
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
m480_eth.c
|
||||
)
|
||||
|
|
|
@ -1,12 +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}
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
nuc472_eth.c
|
||||
)
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("IMX" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_IMX)
|
||||
elseif("LPCTarget" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_LPCTarget)
|
||||
elseif("MCU_LPC546XX" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_MCU_LPC546XX)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("MIMXRT1050_EVK" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_MIMXRT1050_EVK)
|
||||
endif()
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
imx_emac.cpp
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
target_sources(mbed-os-emac
|
||||
PRIVATE
|
||||
hardware_init.c
|
||||
)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
lpc17_emac.cpp
|
||||
lpc_phy_dp83848.cpp
|
||||
)
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("FF_LPC546XX" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_FF_LPC546XX)
|
||||
elseif("LPCXpresso" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_LPCXpresso)
|
||||
endif()
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
lpc546xx_emac.cpp
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
hardware_init_LPC546XX.c
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
hardware_init_LPC546XX.c
|
||||
)
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
|
||||
add_subdirectory(lwip-wifi)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
RdaWiFiInterface.cpp
|
||||
rda5981x_emac.cpp
|
||||
)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("RDA" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_RDA)
|
||||
endif()
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("UNO_91H" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_UNO_91H)
|
||||
endif()
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
|
||||
add_subdirectory(lib)
|
||||
|
||||
target_include_directories(mbed-os
|
||||
target_include_directories(mbed-os-emac
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/inc
|
||||
.
|
||||
./inc
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
target_sources(mbed-os-emac
|
||||
PRIVATE
|
||||
src/maclib_task.c
|
||||
src/rda5991h_wland.c
|
||||
|
|
|
@ -9,7 +9,7 @@ function(_mbed_get_lib_file_uno_91h)
|
|||
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
|
||||
set(LIB_FILE TOOLCHAIN_IAR/libwifi_sta_ap.a)
|
||||
endif()
|
||||
target_sources(mbed-os PRIVATE ${LIB_FILE})
|
||||
target_sources(mbed-os-emac PRIVATE ${LIB_FILE})
|
||||
endfunction()
|
||||
|
||||
_mbed_get_lib_file_uno_91h()
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("RZ_A1XX" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_RZ_A1XX)
|
||||
elseif("RZ_A2XX" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_RZ_A2XX)
|
||||
endif()
|
|
@ -0,0 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
rza1_emac.cpp
|
||||
rza1_eth.cpp
|
||||
)
|
|
@ -0,0 +1,20 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-os-emac
|
||||
PUBLIC
|
||||
.
|
||||
r_ether_rza2
|
||||
r_ether_rza2/src/phy
|
||||
r_ether_rza2/src/targets/TARGET_GR_MANGO
|
||||
PRIVATE
|
||||
r_ether_rza2/src
|
||||
)
|
||||
|
||||
target_sources(mbed-os-emac
|
||||
PRIVATE
|
||||
rza2_emac.cpp
|
||||
r_ether_rza2/src/r_ether_rza2.c
|
||||
r_ether_rza2/src/phy/phy.c
|
||||
r_ether_rza2/src/targets/TARGET_GR_MANGO/r_ether_setting_rza2m.c
|
||||
)
|
|
@ -1,13 +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}
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
rza1_emac.cpp
|
||||
rza1_eth.c
|
||||
)
|
|
@ -1,14 +1,22 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("STM32F2" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F2)
|
||||
elseif("STM32F4" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F4)
|
||||
elseif("STM32F7" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F7)
|
||||
elseif("STM32H7" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32H7)
|
||||
endif()
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
stm32xx_emac.cpp
|
||||
)
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
mbed_add_cmake_directory_if_labels("TARGET")
|
||||
if("NUCLEO_F207ZG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F207ZG)
|
||||
endif()
|
||||
|
||||
target_include_directories(mbed-os
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
target_include_directories(mbed-os-emac
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-os
|
||||
PRIVATE
|
||||
target_sources(mbed-os-emac
|
||||
INTERFACE
|
||||
stm32f2_eth_conf.c
|
||||
)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue