File tree Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
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 ()
4
+ add_subdirectory (TARGET_SIDK_S1SBP6A EXCLUDE_FROM_ALL )
5
+ add_subdirectory (TARGET_SIDK_S5JS100 EXCLUDE_FROM_ALL )
6
+
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
9
9
set (STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_s1sbp6a.S )
10
10
endif ()
11
11
12
- set_property ( GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
12
+ add_library ( mbed-s1sbp6a INTERFACE )
13
13
14
- target_include_directories (mbed-core
14
+ target_include_directories (mbed-s1sbp6a
15
15
INTERFACE
16
16
.
17
17
device
18
18
)
19
19
20
- target_sources (mbed-core
20
+ target_sources (mbed-s1sbp6a
21
21
INTERFACE
22
22
PeripheralPins.c
23
23
flash_api.c
@@ -42,3 +42,5 @@ target_sources(mbed-core
42
42
43
43
${STARTUP_FILE}
44
44
)
45
+
46
+ mbed_set_linker_script (mbed-s1sbp6a ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
9
9
set (STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_sidk_s5js100.S )
10
10
endif ()
11
11
12
- set_property ( GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
12
+ add_library ( mbed-s5js100 INTERFACE )
13
13
14
- target_include_directories (mbed-core
14
+ target_include_directories (mbed-s5js100
15
15
INTERFACE
16
16
.
17
17
device
@@ -20,7 +20,7 @@ target_include_directories(mbed-core
20
20
security_subsystem/drivers
21
21
)
22
22
23
- target_sources (mbed-core
23
+ target_sources (mbed-s5js100
24
24
INTERFACE
25
25
gpio_api.c
26
26
gpio_irq_api.c
@@ -61,3 +61,7 @@ target_sources(mbed-core
61
61
62
62
${STARTUP_FILE}
63
63
)
64
+
65
+ mbed_set_linker_script (mbed-s5js100 ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
66
+
67
+ target_link_libraries (mbed-s5js100 )
You can’t perform that action at this time.
0 commit comments