Skip to content

Commit 707c5a3

Browse files
committed
CMake: Move EP_ATLAS TELIT ME310 driver to cellular dir
This allows us to remove the cellular library as a requirement to build applications that do not require it (i.e Blinky).
1 parent 8a19e3e commit 707c5a3

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

connectivity/drivers/cellular/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
# Copyright (c) 2020 ARM Limited. All rights reserved.
1+
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
if("STMOD_CELLULAR" IN_LIST MBED_TARGET_LABELS)
55
add_subdirectory(COMPONENT_STMOD_CELLULAR)
66
endif()
77

8+
if("EP_ATLAS" IN_LIST MBED_TARGET_LABELS)
9+
add_subdirectory(TARGET_EP_ATLAS/TELIT/ME310)
10+
endif()
11+
812
add_subdirectory(Altair)
913
add_subdirectory(GEMALTO)
1014
add_subdirectory(GENERIC)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2021 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
target_include_directories(mbed-cellular
5+
INTERFACE
6+
.
7+
)
8+
9+
target_sources(mbed-cellular
10+
INTERFACE
11+
ONBOARD_TELIT_ME310.cpp
12+
)

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ target_include_directories(mbed-ep-atlas
2727

2828
target_sources(mbed-ep-atlas
2929
INTERFACE
30-
TARGET_EP_ATLAS/ONBOARD_TELIT_ME310.cpp
3130
TARGET_EP_ATLAS/usb_stdio.cpp
3231
TARGET_EP_ATLAS/atlas_init.c
3332
)

0 commit comments

Comments
 (0)