Skip to content

Commit 7b6c7cc

Browse files
authored
Merge pull request #14295 from 0xc0170/cmake-remove-iar
CMake remove IAR references in the tree
2 parents 7369b63 + 85c2d7a commit 7b6c7cc

File tree

9 files changed

+13
-53
lines changed

9 files changed

+13
-53
lines changed

cmsis/CMSIS_5/CMSIS/RTOS2/RTX/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
function(_mbed_get_cortex_m_exception_handlers toolchain_dir)
@@ -42,8 +42,6 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
4242
_mbed_get_cortex_m_exception_handlers(TOOLCHAIN_GCC)
4343
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
4444
_mbed_get_cortex_m_exception_handlers(TOOLCHAIN_ARM)
45-
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
46-
_mbed_get_cortex_m_exception_handlers(TOOLCHAIN_IAR)
4745
endif()
4846

4947
target_include_directories(mbed-rtos

cmsis/device/rtos/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
@@ -11,11 +11,6 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1111
INTERFACE
1212
TOOLCHAIN_ARM_STD/mbed_boot_arm_std.c
1313
)
14-
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
15-
target_sources(mbed-rtos
16-
INTERFACE
17-
TOOLCHAIN_IAR/mbed_boot_iar.c
18-
)
1914
endif()
2015

2116
target_include_directories(mbed-rtos

connectivity/drivers/emac/TARGET_RDA_EMAC/lwip-wifi/arch/TARGET_RDA/TARGET_UNO_91H/lib/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
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
function(_mbed_get_lib_file_uno_91h)
55
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
66
set(LIB_FILE TOOLCHAIN_GCC_ARM/libwifi_sta_ap.a)
77
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
88
set(LIB_FILE TOOLCHAIN_ARM_STD/libwifi_sta_ap.ar)
9-
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
10-
set(LIB_FILE TOOLCHAIN_IAR/libwifi_sta_ap.a)
119
endif()
1210
target_sources(mbed-emac PRIVATE ${LIB_FILE})
1311
endfunction()

connectivity/drivers/mbedtls/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
@@ -7,9 +7,6 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
77
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
88
set(LIBCC_310_EXT TOOLCHAIN_ARM/libcc_310_ext.ar)
99
set(LIBCC_310_TRNG TOOLCHAIN_ARM/libcc_310_trng.ar)
10-
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
11-
set(LIBCC_310_EXT TOOLCHAIN_IAR/lib_cc310_ext.a)
12-
set(LIBCC_310_TRNG TOOLCHAIN_IAR/lib_cc310_trng.a)
1310
endif()
1411

1512
target_include_directories(mbed-mbedtls-cryptocell310

connectivity/drivers/mbedtls/FEATURE_CRYPTOCELL310/binaries/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
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(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
55
set(LIBCC_310_CORE TOOLCHAIN_GCC_ARM/libcc_310_core.a)
66
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
77
set(LIBCC_310_CORE TOOLCHAIN_ARM/libcc_310_core.ar)
8-
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
9-
set(LIBCC_310_CORE TOOLCHAIN_IAR/lib_cc310_ext.a)
108
endif()
119

1210
target_link_libraries(mbed-mbedtls-cryptocell310

platform/source/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
if("CORTEX_A" IN_LIST MBED_TARGET_LABELS)
5-
add_subdirectory(TARGET_CORTEX_A)
6-
elseif("CORTEX_M" IN_LIST MBED_TARGET_LABELS)
4+
if("CORTEX_M" IN_LIST MBED_TARGET_LABELS)
75
add_subdirectory(TARGET_CORTEX_M)
86
endif()
97

platform/source/TARGET_CORTEX_A/CMakeLists.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

platform/source/TARGET_CORTEX_M/CMakeLists.txt

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
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

4-
5-
function(_mbed_set_assembly_source)
6-
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
7-
target_sources(mbed-core INTERFACE TOOLCHAIN_GCC/except.S)
8-
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
9-
target_sources(mbed-core INTERFACE TOOLCHAIN_ARM/except.S)
10-
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
11-
target_sources(mbed-core
12-
INTERFACE
13-
TOOLCHAIN_IAR/except.S
14-
TOOLCHAIN_IAR/cmain.S
15-
)
16-
endif()
17-
endfunction()
18-
19-
_mbed_set_assembly_source()
4+
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
5+
target_sources(mbed-core INTERFACE TOOLCHAIN_GCC/except.S)
6+
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
7+
target_sources(mbed-core INTERFACE TOOLCHAIN_ARM/except.S)
8+
endif()
209

2110
target_sources(mbed-core
2211
INTERFACE

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
add_subdirectory(TARGET_DISCO_L475VG_IOT01A EXCLUDE_FROM_ALL)
@@ -9,9 +9,6 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
99
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1010
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32l475xx.S)
1111
set(LINKER_FILE TOOLCHAIN_ARM/stm32l475xg.sct)
12-
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
13-
set(STARTUP_FILE TOOLCHAIN_IAR/startup_stm32l475xx.S)
14-
set(LINKER_FILE TOOLCHAIN_IAR/stm32l475xg.icf)
1512
endif()
1613

1714
add_library(mbed-stm32l475xg INTERFACE)

0 commit comments

Comments
 (0)