CMake: Fix some NUVOTON build

Correct source file listings for M251, M261.
Also remove unused input source files.
pull/14307/head
Hugues Kamba 2021-02-19 16:48:32 +00:00
parent 26606218ad
commit a3a36ccb92
4 changed files with 4 additions and 17 deletions

View File

@ -4,7 +4,7 @@
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/M251.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LINKER_FILE device/TOOLCHAIN_ARM_STD/M251.sct)
set(LINKER_FILE device/TOOLCHAIN_ARMC6/M251.sct)
endif()
add_library(mbed-m251 INTERFACE)

View File

@ -4,7 +4,7 @@
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/M261.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LINKER_FILE device/TOOLCHAIN_ARM_STD/M261.sct)
set(LINKER_FILE device/TOOLCHAIN_ARMC6/M261.sct)
endif()
add_library(mbed-m261 INTERFACE)
@ -14,7 +14,7 @@ target_sources(mbed-m261
analogin_api.c
analogout_api.c
device/startup_M261.c
device/system_M251.c
device/system_M261.c
device/StdDriver/m261_acmp.c
device/StdDriver/m261_bpwm.c
@ -78,6 +78,7 @@ target_include_directories(mbed-m261
crypto
device
device/Reg
device/StdDriver
device/StdDriver/inc
)

View File

@ -1,7 +0,0 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -1,7 +0,0 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-core
INTERFACE
.
)