File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYSBSYSKIT_01 Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ if ("BSP_DESIGN_MODUS" IN_LIST MBED_TARGET_LABELS)
5+ target_include_directories (mbed-core
6+ INTERFACE
7+ COMPONENT_BSP_DESIGN_MODUS/GeneratedSource
8+ )
9+
10+ target_sources (mbed-core
11+ INTERFACE
12+ COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.c
13+ COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_pins.c
14+ COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_qspi_memslot.c
15+ COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_routing.c
16+ COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_system.c
17+ )
18+ endif ()
19+
20+ if ("CM4" IN_LIST MBED_TARGET_LABELS)
21+ set (SYSTEM_SOURCE device/COMPONENT_CM4/system_psoc6_cm4.c)
22+ if (${MBED_TOOLCHAIN} STREQUAL "ARM" )
23+ set (LINKER_FILE device/COMPONENT_CM4/TOOLCHAIN_ARM/cy8c6xxa_cm4_dual.sct)
24+ set (STARTUP_FILE device/COMPONENT_CM4/TOOLCHAIN_ARM/startup_psoc6_02_cm4.S)
25+ elseif (${MBED_TOOLCHAIN} STREQUAL "GCC_ARM" )
26+ set (LINKER_FILE device/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/cy8c6xxa_cm4_dual.ld)
27+ set (STARTUP_FILE device/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/startup_psoc6_02_cm4.S)
28+ endif ()
29+ endif ()
30+
31+ set_property (
32+ GLOBAL PROPERTY
33+ MBED_TARGET_LINKER_FILE
34+ ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE}
35+ )
36+
37+ target_include_directories (mbed-core
38+ INTERFACE
39+ .
40+ device
41+ )
42+
43+ target_sources (mbed-core
44+ INTERFACE
45+ PeripheralPins.c
46+ cybsp.c
47+ ${SYSTEM_SOURCE}
48+ ${STARTUP_FILE}
49+ )
You can’t perform that action at this time.
0 commit comments