mirror of https://github.com/ARMmbed/mbed-os.git
CMake: Add support for WICED target
* Add CMakeLists.txt file * Update the list of supported targetpull/13972/head
parent
e77b1d8a17
commit
b4bc521f13
|
@ -7,8 +7,10 @@ elseif("Freescale" IN_LIST MBED_TARGET_LABELS)
|
||||||
add_subdirectory(TARGET_Freescale)
|
add_subdirectory(TARGET_Freescale)
|
||||||
elseif("NORDIC" IN_LIST MBED_TARGET_LABELS)
|
elseif("NORDIC" IN_LIST MBED_TARGET_LABELS)
|
||||||
add_subdirectory(TARGET_NORDIC)
|
add_subdirectory(TARGET_NORDIC)
|
||||||
elseif("STM" IN_LIST MBED_TARGET_LABELS)
|
|
||||||
add_subdirectory(TARGET_STM)
|
|
||||||
elseif("NUVOTON" IN_LIST MBED_TARGET_LABELS)
|
elseif("NUVOTON" IN_LIST MBED_TARGET_LABELS)
|
||||||
add_subdirectory(TARGET_NUVOTON)
|
add_subdirectory(TARGET_NUVOTON)
|
||||||
|
elseif("STM" IN_LIST MBED_TARGET_LABELS)
|
||||||
|
add_subdirectory(TARGET_STM)
|
||||||
|
elseif("WICED" IN_LIST MBED_TARGET_LABELS)
|
||||||
|
add_subdirectory(TARGET_WICED)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
if("WIO_EMW3166" IN_LIST MBED_TARGET_LABELS)
|
||||||
|
if(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
||||||
|
set(LIB_WICED_DRIVERS TOOLCHAIN_ARMC6/TARGET_WIO_EMW3166/libwiced_drivers.ar)
|
||||||
|
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||||
|
set(LIB_WICED_DRIVERS TOOLCHAIN_GCC_ARM/TARGET_WIO_EMW3166/libwiced_drivers.a)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
target_link_libraries(mbed-core INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/${LIB_WICED_DRIVERS})
|
||||||
|
|
||||||
|
target_include_directories(mbed-core
|
||||||
|
INTERFACE
|
||||||
|
wiced_interface
|
||||||
|
)
|
||||||
|
|
||||||
|
target_sources(mbed-core
|
||||||
|
INTERFACE
|
||||||
|
wiced_interface/default_wifi_interface.cpp
|
||||||
|
)
|
|
@ -19,12 +19,11 @@ The full profile with the selected printf and C libraries.
|
||||||
Only a limited set of targets is supported at the moment.
|
Only a limited set of targets is supported at the moment.
|
||||||
|
|
||||||
The following targets are supported:
|
The following targets are supported:
|
||||||
- K64F
|
|
||||||
- K66F
|
|
||||||
- NRF52840_DK
|
- NRF52840_DK
|
||||||
- ARM FM targets
|
- ARM FM targets
|
||||||
- Freescale targets
|
- Freescale targets
|
||||||
- STM targets
|
- STM targets
|
||||||
|
- WICED
|
||||||
|
|
||||||
### Supported toolchains
|
### Supported toolchains
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue