Skip to content

Commit af5782b

Browse files
hugueskamba0xc0170
authored andcommitted
CMake: Add support for Samsung SIDK_S1SBP6A target
1 parent e4b03a1 commit af5782b

File tree

4 files changed

+55
-1
lines changed

4 files changed

+55
-1
lines changed

targets/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ elseif("NORDIC" IN_LIST MBED_TARGET_LABELS)
1515
add_subdirectory(TARGET_NORDIC)
1616
elseif("NUVOTON" IN_LIST MBED_TARGET_LABELS)
1717
add_subdirectory(TARGET_NUVOTON)
18+
elseif("Samsung" IN_LIST MBED_TARGET_LABELS)
19+
add_subdirectory(TARGET_Samsung)
1820
elseif("Silicon_Labs" IN_LIST MBED_TARGET_LABELS)
1921
add_subdirectory(TARGET_Silicon_Labs)
2022
elseif("STM" IN_LIST MBED_TARGET_LABELS)

targets/TARGET_Samsung/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if("SIDK_S1SBP6A" IN_LIST MBED_TARGET_LABELS)
5+
add_subdirectory(TARGET_SIDK_S1SBP6A)
6+
elseif("SIDK_S5JS100" IN_LIST MBED_TARGET_LABELS)
7+
add_subdirectory(TARGET_SIDK_S5JS100)
8+
endif()
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if(${MBED_TOOLCHAIN} STREQUAL "ARM")
5+
set(LINKER_FILE device/TOOLCHAIN_ARM_STD/s1sbp6a.sct)
6+
set(STARTUP_FILE device/TOOLCHAIN_ARM_STD/startup_s1sbp6a.S)
7+
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
8+
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/s1sbp6a.ld)
9+
set(STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_s1sbp6a.S)
10+
endif()
11+
12+
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
13+
14+
target_include_directories(mbed-core
15+
INTERFACE
16+
.
17+
device
18+
)
19+
20+
target_sources(mbed-core
21+
INTERFACE
22+
PeripheralPins.c
23+
flash_api.c
24+
gpio_api.c
25+
gpio_irq_api.c
26+
i2c_api.c
27+
pinmap.c
28+
rtc_api.c
29+
serial_api.c
30+
sleep_api.c
31+
spi_api.c
32+
us_ticker.c
33+
watchdog_api.c
34+
35+
device/s1sbp6a_cmu.c
36+
device/s1sbp6a_gpio.c
37+
device/s1sbp6a_i2c.c
38+
device/s1sbp6a_pmu.c
39+
device/s1sbp6a_rtc.c
40+
device/s1sbp6a_wdog.c
41+
device/system_s1sbp6a.c
42+
43+
${STARTUP_FILE}
44+
)

targets/TARGET_Samsung/TARGET_SIDK_S1SBP6A/device/TOOLCHAIN_ARM_STD/s1sbp6a.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c -mcpu=cortex-m4
22
;* Copyright (c) 2006-2019 ARM Limited
33
;* All rights reserved.
44
;* SPDX-License-Identifier: Apache-2.0

0 commit comments

Comments
 (0)