Skip to content

Commit ae74aa6

Browse files
committed
Merge branch 'hk_cmake_wiced_suppport' of https://github.com/hugueskamba/mbed-os into hugueskamba-hk_cmake_wiced_suppport
2 parents be295e4 + b4bc521 commit ae74aa6

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

targets/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ elseif("Silicon_Labs" IN_LIST MBED_TARGET_LABELS)
2121
add_subdirectory(TARGET_Silicon_Labs)
2222
elseif("STM" IN_LIST MBED_TARGET_LABELS)
2323
add_subdirectory(TARGET_STM)
24+
elseif("WICED" IN_LIST MBED_TARGET_LABELS)
25+
add_subdirectory(TARGET_WICED)
2426
endif()

targets/TARGET_WICED/CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if("WIO_EMW3166" IN_LIST MBED_TARGET_LABELS)
5+
if(${MBED_TOOLCHAIN} STREQUAL "ARM")
6+
set(LIB_WICED_DRIVERS TOOLCHAIN_ARMC6/TARGET_WIO_EMW3166/libwiced_drivers.ar)
7+
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
8+
set(LIB_WICED_DRIVERS TOOLCHAIN_GCC_ARM/TARGET_WIO_EMW3166/libwiced_drivers.a)
9+
endif()
10+
endif()
11+
12+
target_link_libraries(mbed-core INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/${LIB_WICED_DRIVERS})
13+
14+
target_include_directories(mbed-core
15+
INTERFACE
16+
wiced_interface
17+
)
18+
19+
target_sources(mbed-core
20+
INTERFACE
21+
wiced_interface/default_wifi_interface.cpp
22+
)

tools/cmake/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ The following targets are supported:
2828
- NXP targets
2929
- Silicon Labs targets
3030
- STM targets
31+
- WICED
3132

3233
### Supported toolchains
3334

0 commit comments

Comments
 (0)