-
Notifications
You must be signed in to change notification settings - Fork 3k
CMake: Add support for all Samsung Mbed targets #13977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
af5782b
CMake: Add support for Samsung SIDK_S1SBP6A target
hugueskamba 7c3cfab
CMake: Fix Cortex M7 flag passed to assembler
hugueskamba 747dca9
Samsung: Correct ARM toolchain identifier
hugueskamba 742782d
CMake: Add support for Samsung S5JS100 target
hugueskamba 87e8c0b
CMake: Add Samsung to the list of supported targets
hugueskamba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2020 ARM Limited. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if("SIDK_S1SBP6A" IN_LIST MBED_TARGET_LABELS) | ||
add_subdirectory(TARGET_SIDK_S1SBP6A) | ||
elseif("SIDK_S5JS100" IN_LIST MBED_TARGET_LABELS) | ||
add_subdirectory(TARGET_SIDK_S5JS100) | ||
endif() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright (c) 2020 ARM Limited. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if(${MBED_TOOLCHAIN} STREQUAL "ARM") | ||
set(LINKER_FILE device/TOOLCHAIN_ARM_STD/s1sbp6a.sct) | ||
set(STARTUP_FILE device/TOOLCHAIN_ARM_STD/startup_s1sbp6a.S) | ||
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM") | ||
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/s1sbp6a.ld) | ||
set(STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_s1sbp6a.S) | ||
endif() | ||
|
||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE}) | ||
|
||
target_include_directories(mbed-core | ||
INTERFACE | ||
. | ||
device | ||
) | ||
|
||
target_sources(mbed-core | ||
INTERFACE | ||
PeripheralPins.c | ||
flash_api.c | ||
gpio_api.c | ||
gpio_irq_api.c | ||
i2c_api.c | ||
pinmap.c | ||
rtc_api.c | ||
serial_api.c | ||
sleep_api.c | ||
spi_api.c | ||
us_ticker.c | ||
watchdog_api.c | ||
|
||
device/s1sbp6a_cmu.c | ||
device/s1sbp6a_gpio.c | ||
device/s1sbp6a_i2c.c | ||
device/s1sbp6a_pmu.c | ||
device/s1sbp6a_rtc.c | ||
device/s1sbp6a_wdog.c | ||
device/system_s1sbp6a.c | ||
|
||
${STARTUP_FILE} | ||
) |
2 changes: 1 addition & 1 deletion
2
targets/TARGET_Samsung/TARGET_SIDK_S1SBP6A/device/TOOLCHAIN_ARM_STD/s1sbp6a.sct
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Copyright (c) 2020 ARM Limited. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if(${MBED_TOOLCHAIN} STREQUAL "ARM") | ||
set(LINKER_FILE device/TOOLCHAIN_ARM_STD/sidk_s5js100.sct) | ||
set(STARTUP_FILE device/TOOLCHAIN_ARM_STD/startup_sidk_s5js100.S) | ||
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM") | ||
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/sidk_s5js100.ld) | ||
set(STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_sidk_s5js100.S) | ||
endif() | ||
|
||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE}) | ||
|
||
target_include_directories(mbed-core | ||
INTERFACE | ||
. | ||
device | ||
modem | ||
security_subsystem | ||
security_subsystem/drivers | ||
) | ||
|
||
target_sources(mbed-core | ||
INTERFACE | ||
# TODO CMAKE: The files commented below trigger a dependency on other libraries | ||
# they should be moved somewhere in the connectivity directory. | ||
# dcxo_update.cpp | ||
# mbed_main_init.cpp | ||
# modem/modem_io_device.cpp | ||
# modem/modem_link_device_shmem.cpp | ||
# modem/s5js100_mbox_ipc.cpp | ||
# modem/shmem_save.cpp | ||
gpio_api.c | ||
gpio_irq_api.c | ||
i2c_api.c | ||
|
||
mbed_sdk_init.c | ||
pinmap.c | ||
rtc_api.c | ||
s5js100_dcxo.cpp | ||
s5js100_pmip.c | ||
s5js100_pwr.c | ||
s5js100_watchdog.c | ||
security_subsystem | ||
serial_api.c | ||
serial_dummy_api.c | ||
serial_pl011_api.c | ||
serial_usi_api.c | ||
sleep.c | ||
spi_api.c | ||
us_ticker.c | ||
watchdog_api.c | ||
|
||
device/s5js100_pwrcal.c | ||
device/s5js100_systemreset.c | ||
device/sflash_api.cpp | ||
device/system_core_s5js100.c | ||
device/system_core_version.c | ||
device/system_s5js100.c | ||
|
||
security_subsystem/api/trng_api.c | ||
|
||
security_subsystem/drivers/mb_cmd_hash.c | ||
security_subsystem/drivers/mb_cmd_rng.c | ||
security_subsystem/drivers/mb_cmd_system.c | ||
security_subsystem/drivers/sss_driver_rng.c | ||
security_subsystem/drivers/sss_driver_sha2.c | ||
security_subsystem/drivers/sss_driver_util.c | ||
|
||
${STARTUP_FILE} | ||
) |
2 changes: 1 addition & 1 deletion
2
targets/TARGET_Samsung/TARGET_SIDK_S5JS100/device/TOOLCHAIN_ARM_STD/sidk_s5js100.sct
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've missed this one. I created #14025 to track this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pan- is aware of this and has raised the issue with @ARMmbed/team-samsung.