Skip to content
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

CMake: add Samsungs, Analog devices and WICED targets #14024

Merged
merged 15 commits into from
Dec 11, 2020
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions targets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

if("ARM_FM" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_ARM_FM)
elseif("Analog_Devices" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_Analog_Devices)
elseif("Cypress" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_Cypress)
elseif("Freescale" IN_LIST MBED_TARGET_LABELS)
Expand All @@ -17,8 +19,12 @@ elseif("NUVOTON" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NUVOTON)
elseif("NXP" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NXP)
elseif("Samsung" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_Samsung
elseif("Silicon_Labs" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_Silicon_Labs)
elseif("STM" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_STM)
elseif("WICED" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_WICED)
endif()
13 changes: 13 additions & 0 deletions targets/TARGET_Analog_Devices/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

if("ADUCM4X50" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_ADUCM4X50)
elseif("ADUCM302X" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_ADUCM302X)
endif()

target_include_directories(mbed-core
INTERFACE
.
)
6 changes: 6 additions & 0 deletions targets/TARGET_Analog_Devices/TARGET_ADUCM302X/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

if("ADUCM3029" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_ADUCM3029)
endif()
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

if(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LINKER_FILE TOOLCHAIN_ARM_STD/ADuCM3029.sct)
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(LINKER_FILE TOOLCHAIN_GCC_ARM/ADuCM3029.ld)
endif()

if ("EV_COG_AD3029LZ" IN_LIST MBED_TARGET_LABELS)
target_include_directories(mbed-core
INTERFACE
TARGET_EV_COG_AD3029LZ
TARGET_EV_COG_AD3029LZ/device
)

target_sources(mbed-core
INTERFACE
TARGET_EV_COG_AD3029LZ/device/system_ADuCM3029.c
TARGET_EV_COG_AD3029LZ/device/startup_ADuCM3029.c
)

set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})

target_include_directories(mbed-core
INTERFACE
api
bsp
bsp/adc
bsp/beep
bsp/config
bsp/crc
bsp/crypto
bsp/drivers/adc
bsp/drivers/beep
bsp/drivers/crc
bsp/drivers/crypto
bsp/drivers/dma
bsp/drivers/flash
bsp/drivers/general
bsp/drivers/gpio
bsp/drivers/i2c
bsp/drivers/pwr
bsp/drivers/rng
bsp/drivers/rtc
bsp/drivers/spi
bsp/drivers/sport
bsp/drivers/tmr
bsp/drivers/uart
bsp/drivers/wdt
bsp/drivers/xint
bsp/flash
bsp/gpio
bsp/i2c
bsp/pwr
bsp/rng
bsp/rtc
bsp/rtos_map
bsp/spi
bsp/sport
bsp/sys
bsp/uart
bsp/xint
)

target_sources(mbed-core
INTERFACE
bsp/crypto/adi_crypto.c
bsp/wdt/adi_wdt.c
bsp/crc/adi_crc.c
bsp/i2c/adi_i2c.c
bsp/i2c/adi_i2c_data.c
bsp/sport/adi_sport.c
bsp/tmr/adi_tmr_data.c
bsp/tmr/adi_tmr.c
bsp/flash/adi_flash.c
bsp/flash/adi_flash_data.c
bsp/spi/adi_spi_data.c
bsp/spi/adi_spi.c
bsp/xint/adi_xint.c
bsp/adc/adi_adc.c
bsp/adc/adi_adc_data.c
bsp/beep/adi_beep.c
bsp/rtc/adi_rtc_data.c
bsp/rtc/adi_rtc.c
bsp/pwr/adi_pwr.c
bsp/dma/adi_dma.c
bsp/gpio/adi_gpio.c
bsp/uart/adi_uart.c
bsp/rng/adi_rng.c
api/us_ticker.c
api/serial_api.c
api/gpio_dev_mem.c
api/gpio_api.c
api/flash_api.c
api/spi_api.c
api/i2c_api.c
api/gpio_irq_api.c
api/trng_api.c
api/sleep.c
api/PeripheralPins.c
api/analogin_api.c
api/rtc_api.c
api/pinmap.c
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! armcc -E
#! armclang -E --target=arm-arm-none-eabi -x c -mcpu=cortex-m3
;******************************************************************************
; File: ADuCM3029.sct
; Scatter loading file for Analog Devices ADuCM3029 processor
Expand Down
6 changes: 6 additions & 0 deletions targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

if ("ADUCM4050" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_ADUCM4050)
endif()
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(LINKER_FILE TOOLCHAIN_GCC_ARM/ADuCM4050.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LINKER_FILE TOOLCHAIN_ARM_STD/ADuCM4050.sct)
endif()

if("EV_COG_AD4050LZ" IN_LIST MBED_TARGET_LABELS)
target_include_directories(mbed-core
INTERFACE
TARGET_EV_COG_AD4050LZ
TARGET_EV_COG_AD4050LZ/device
)

target_sources(mbed-core
INTERFACE
TARGET_EV_COG_AD4050LZ/device/system_ADuCM4050.c
TARGET_EV_COG_AD4050LZ/device/startup_ADuCM4050.c
)
endif()

set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})

target_include_directories(mbed-core
INTERFACE
api
bsp
bsp/adc
bsp/beep
bsp/config
bsp/crc
bsp/crypto
bsp/drivers/adc
bsp/drivers/beep
bsp/drivers/crc
bsp/drivers/crypto
bsp/drivers/dma
bsp/drivers/flash
bsp/drivers/general
bsp/drivers/gpio
bsp/drivers/i2c
bsp/drivers/pwr
bsp/drivers/rng
bsp/drivers/rtc
bsp/drivers/spi
bsp/drivers/sport
bsp/drivers/tmr
bsp/drivers/uart
bsp/drivers/wdt
bsp/drivers/xint
bsp/flash
bsp/gpio
bsp/i2c
bsp/pwr
bsp/rng
bsp/rtc
bsp/rtos_map
bsp/spi
bsp/sport
bsp/sys
bsp/uart
bsp/xint
)

target_sources(mbed-core
INTERFACE
bsp/crypto/adi_crypto.c
bsp/wdt/adi_wdt.c
bsp/crc/adi_crc.c
bsp/i2c/adi_i2c.c
bsp/i2c/adi_i2c_data.c
bsp/sport/adi_sport.c
bsp/tmr/adi_tmr_data.c
bsp/tmr/adi_tmr.c
bsp/flash/adi_flash.c
bsp/flash/adi_flash_data.c
bsp/spi/adi_spi_data.c
bsp/spi/adi_spi.c
bsp/xint/adi_xint.c
bsp/adc/adi_adc.c
bsp/adc/adi_adc_data.c
bsp/beep/adi_beep.c
bsp/rtc/adi_rtc_data.c
bsp/rtc/adi_rtc.c
bsp/pwr/adi_pwr.c
bsp/dma/adi_dma.c
bsp/gpio/adi_gpio.c
bsp/uart/adi_uart.c
bsp/rng/adi_rng.c
api/us_ticker.c
api/serial_api.c
api/gpio_dev_mem.c
api/gpio_api.c
api/flash_api.c
api/spi_api.c
api/i2c_api.c
api/gpio_irq_api.c
api/trng_api.c
api/sleep.c
api/PeripheralPins.c
api/analogin_api.c
api/rtc_api.c
api/pinmap.c

)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! armcc -E
#! armclang -E --target=arm-arm-none-eabi -x c -mcpu=cortex-m4
;******************************************************************************
; File: ADuCM4050.sct
; Scatter loading file for Analog Devices ADuCM4050 processor
Expand Down
8 changes: 8 additions & 0 deletions targets/TARGET_Samsung/CMakeLists.txt
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()
44 changes: 44 additions & 0 deletions targets/TARGET_Samsung/TARGET_SIDK_S1SBP6A/CMakeLists.txt
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}
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! armcc -E
#! armclang -E --target=arm-arm-none-eabi -x c -mcpu=cortex-m4
;* Copyright (c) 2006-2019 ARM Limited
;* All rights reserved.
;* SPDX-License-Identifier: Apache-2.0
Expand Down
Loading