Skip to content

Commit 29cfcd6

Browse files
authored
Merge pull request #14307 from hugueskamba/hk_cmake_fix_nuvoton_targets
CMake: Fix some NUVOTON build
2 parents 2660621 + a3a36cc commit 29cfcd6

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

targets/TARGET_NUVOTON/TARGET_M251/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
55
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/M251.ld)
66
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
7-
set(LINKER_FILE device/TOOLCHAIN_ARM_STD/M251.sct)
7+
set(LINKER_FILE device/TOOLCHAIN_ARMC6/M251.sct)
88
endif()
99

1010
add_library(mbed-m251 INTERFACE)

targets/TARGET_NUVOTON/TARGET_M261/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
55
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/M261.ld)
66
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
7-
set(LINKER_FILE device/TOOLCHAIN_ARM_STD/M261.sct)
7+
set(LINKER_FILE device/TOOLCHAIN_ARMC6/M261.sct)
88
endif()
99

1010
add_library(mbed-m261 INTERFACE)
@@ -14,7 +14,7 @@ target_sources(mbed-m261
1414
analogin_api.c
1515
analogout_api.c
1616
device/startup_M261.c
17-
device/system_M251.c
17+
device/system_M261.c
1818

1919
device/StdDriver/m261_acmp.c
2020
device/StdDriver/m261_bpwm.c
@@ -78,6 +78,7 @@ target_include_directories(mbed-m261
7878
crypto
7979
device
8080
device/Reg
81+
device/StdDriver
8182
device/StdDriver/inc
8283
)
8384

targets/TARGET_NUVOTON/TARGET_M480/TARGET_NUMAKER_IOT_M487/CMakeLists.txt

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

targets/TARGET_NUVOTON/TARGET_M480/TARGET_NUMAKER_PFM_M487/CMakeLists.txt

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

0 commit comments

Comments
 (0)