-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce cmake-based rewrite of KBuild
Introducing CMake is an important step in a larger effort to make Zephyr easy to use for application developers working on different platforms with different development environment needs. Simplified, this change retains Kconfig as-is, and replaces all Makefiles with CMakeLists.txt. The DSL-like Make language that KBuild offers is replaced by a set of CMake extentions. These extentions have either provided simple one-to-one translations of KBuild features or introduced new concepts that replace KBuild concepts. This is a breaking change for existing test infrastructure and build scripts that are maintained out-of-tree. But for FW itself, no porting should be necessary. For users that just want to continue their work with minimal disruption the following should suffice: Install CMake 3.8.2+ Port any out-of-tree Makefiles to CMake. Learn the absolute minimum about the new command line interface: $ cd samples/hello_world $ mkdir build && cd build $ cmake -DBOARD=nrf52_pca10040 .. $ cd build $ make PR: #4692 docs: http://docs.zephyrproject.org/getting_started/getting_started.html Signed-off-by: Sebastian Boe <sebastian.boe@nordicsemi.no>
- Loading branch information
1 parent
8bffcda
commit 12f8f76
Showing
644 changed files
with
7,815 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,2 @@ | ||
add_subdirectory(common) | ||
add_subdirectory(${ARCH}) |
This file contains 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,14 @@ | ||
# Enable debug support in mdb | ||
# Dwarf version 2 can be recognized by mdb | ||
# The default dwarf version in gdb is not recognized by mdb | ||
zephyr_cc_option(-g3 -gdwarf-2) | ||
|
||
# Without this (poorly named) option, compiler may generate undefined | ||
# references to abort(). | ||
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63691 | ||
zephyr_cc_option(-fno-delete-null-pointer-checks) | ||
|
||
zephyr_cc_option_ifdef (CONFIG_LTO -flto) | ||
|
||
add_subdirectory(soc/${SOC_PATH}) | ||
add_subdirectory(core) |
This file contains 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,23 @@ | ||
zephyr_sources( | ||
thread.c | ||
thread_entry_wrapper.S | ||
cpu_idle.S | ||
fast_irq.S | ||
fatal.c | ||
fault.c | ||
fault_s.S | ||
irq_manage.c | ||
cache.c | ||
timestamp.c | ||
isr_wrapper.S | ||
regular_irq.S | ||
swap.S | ||
sys_fatal_error_handler.c | ||
prep_c.c | ||
reset.S | ||
vector_table.c | ||
) | ||
|
||
zephyr_sources_if_kconfig(irq_offload.c) | ||
zephyr_sources_ifdef(CONFIG_ATOMIC_OPERATIONS_CUSTOM atomic.c) | ||
add_subdirectory_ifdef(CONFIG_CPU_HAS_MPU mpu) |
This file contains 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,2 @@ | ||
zephyr_sources_if_kconfig(arc_core_mpu.c) | ||
zephyr_sources_if_kconfig(arc_mpu.c) |
This file contains 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,14 @@ | ||
zephyr_library_include_directories(${PROJECT_SOURCE_DIR}/drivers) | ||
|
||
zephyr_cc_option(-mcpu=em4_fpuda -mno-sdata -mdiv-rem -mswap -mnorm) | ||
zephyr_cc_option(-mmpy-option=6 -mbarrel-shifter) | ||
zephyr_cc_option(--param l1-cache-size=16384) | ||
zephyr_cc_option(--param l1-cache-line-size=32) | ||
zephyr_cc_option_ifdef(CONFIG_CODE_DENSITY -mcode-density) | ||
zephyr_cc_option_ifdef(CONFIG_FLOAT -mfpu=fpuda_all) | ||
|
||
|
||
zephyr_sources( | ||
soc.c | ||
soc_config.c | ||
) |
This file contains 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,21 @@ | ||
zephyr_library_include_directories(${PROJECT_SOURCE_DIR}/drivers) | ||
|
||
zephyr_cc_option(-mcpu=-mcpu=em4_dmips -mno-sdata) | ||
zephyr_cc_option(-mdiv-rem -mswap -mnorm) | ||
zephyr_cc_option(-mmpy-option=6 -mbarrel-shifter) | ||
zephyr_cc_option(--param l1-cache-size=16384) | ||
zephyr_cc_option(--param l1-cache-line-size=32) | ||
|
||
zephyr_cc_option_ifdef(CONFIG_CODE_DENSITY -mcode-density) | ||
|
||
if(CONFIG_BOARD_EM_STARTERKIT_R23) | ||
message(FATAL "em7d from em starterkit 2.3 is not supported") | ||
endif() | ||
|
||
|
||
zephyr_sources( | ||
soc.c | ||
soc_config.c | ||
) | ||
|
||
zephyr_source_ifdef(CONFIG_ARC_MPU_ENABLE arc_mpu_regions.c) |
This file contains 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,14 @@ | ||
zephyr_library_include_directories(${PROJECT_SOURCE_DIR}/drivers) | ||
|
||
zephyr_cc_option(-mcpu=em4_fpus -mno-sdata -mdiv-rem -mswap -mnorm) | ||
zephyr_cc_option(-mdiv-rem -mswap -mnorm) | ||
zephyr_cc_option(-mmpy-option=6 -mbarrel-shifter) | ||
|
||
zephyr_cc_option_ifdef(CONFIG_CODE_DENSITY -mcode-density) | ||
zephyr_cc_option_ifdef(CONFIG_FLOAT -mfpu=fpuda_all) | ||
|
||
|
||
zephyr_sources( | ||
soc.c | ||
soc_config.c | ||
) |
This file contains 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,17 @@ | ||
zephyr_library_include_directories(${PROJECT_SOURCE_DIR}/drivers) | ||
zephyr_include_directories(${PROJECT_SOURCE_DIR}/arch/x86/soc/intel_quark) | ||
|
||
zephyr_cc_option(-mcpu=quarkse_em -mno-sdata) | ||
|
||
zephyr_compile_definitions_ifdef( | ||
CONFIG_SOC_QUARK_SE_C1000_SS | ||
QM_SENSOR=1 | ||
SOC_SERIES=quark_se | ||
) | ||
|
||
zephyr_sources( | ||
soc.c | ||
soc_config.c | ||
power.c | ||
soc_power.S | ||
) |
This file contains 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,21 @@ | ||
zephyr_cc_option_ifdef(CONFIG_LTO -flto) | ||
|
||
set(ARCH_FOR_cortex-m0 armv6-m ) | ||
set(ARCH_FOR_cortex-m0plus armv6-m ) | ||
set(ARCH_FOR_cortex-m3 armv7-m ) | ||
set(ARCH_FOR_cortex-m4 armv7e-m ) | ||
set(ARCH_FOR_cortex-m23 armv8-m.base) | ||
set(ARCH_FOR_cortex-m33 armv8-m.main) | ||
|
||
if(${ARCH_FOR_${GCC_M_CPU}}) | ||
set(ARCH_FLAG -march=${ARCH_FOR_${GCC_M_CPU}}) | ||
endif() | ||
|
||
zephyr_compile_options( | ||
-mabi=aapcs | ||
${TOOLCHAIN_C_FLAGS} | ||
${ARCH_FLAG} | ||
) | ||
|
||
add_subdirectory(soc) | ||
add_subdirectory(core) |
This file contains 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,20 @@ | ||
zephyr_sources( | ||
exc_exit.S | ||
irq_init.c | ||
swap.S | ||
fault.c | ||
irq_manage.c | ||
thread.c | ||
cpu_idle.S | ||
fault_s.S | ||
fatal.c | ||
sys_fatal_error_handler.c | ||
thread_abort.c | ||
) | ||
|
||
zephyr_sources_ifdef(CONFIG_GEN_SW_ISR_TABLE isr_wrapper.S) | ||
zephyr_sources_ifdef(CONFIG_CPLUSPLUS __aeabi_atexit.c) | ||
zephyr_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c) | ||
|
||
add_subdirectory_ifdef(CONFIG_CPU_CORTEX_M cortex_m) | ||
add_subdirectory_ifdef(CONFIG_CPU_HAS_MPU cortex_m/mpu) |
This file contains 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,9 @@ | ||
zephyr_sources( | ||
vector_table.S | ||
reset.S | ||
nmi_on_reset.S | ||
prep_c.c | ||
scb.c | ||
nmi.c | ||
exc_manage.c | ||
) |
This file contains 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,3 @@ | ||
zephyr_sources_ifdef(CONFIG_ARM_CORE_MPU arm_core_mpu.c) | ||
zephyr_sources_if_kconfig( arm_mpu.c) | ||
zephyr_sources_if_kconfig( nxp_mpu.c) |
This file contains 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,6 @@ | ||
if(SOC_FAMILY) | ||
add_subdirectory(${SOC_FAMILY}) | ||
else() | ||
add_subdirectory(${SOC_NAME}) | ||
endif() | ||
|
This file contains 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 @@ | ||
add_subdirectory(${SOC_SERIES}) |
This file contains 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,5 @@ | ||
zephyr_sources( | ||
soc.c | ||
power.c | ||
) | ||
zephyr_sources_ifdef(CONFIG_ARM_MPU_ENABLE arm_mpu_regions.c) |
This file contains 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,3 @@ | ||
zephyr_sources( | ||
soc.c | ||
) |
This file contains 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 @@ | ||
# Makefile - Atmel SAM MCU family | ||
# | ||
# Copyright (c) 2016 Piotr Mienkowski | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
add_subdirectory(${SOC_SERIES}) | ||
add_subdirectory_ifdef(CONFIG_ASF common) |
This file contains 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,5 @@ | ||
zephyr_include_directories(.) | ||
zephyr_sources( | ||
soc_pmc.c | ||
soc_gpio.c | ||
) |
This file contains 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,3 @@ | ||
zephyr_sources( | ||
soc.c | ||
) |
This file contains 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,3 @@ | ||
zephyr_sources( | ||
soc.c | ||
) |
This file contains 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,4 @@ | ||
zephyr_sources( | ||
soc.c | ||
soc_config.c | ||
) |
This file contains 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,5 @@ | ||
zephyr_include_directories( | ||
include | ||
) | ||
|
||
add_subdirectory(${SOC_SERIES}) |
This file contains 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,9 @@ | ||
zephyr_compile_definitions_ifdef( | ||
CONFIG_SOC_SERIES_NRF51X | ||
NRF51 | ||
NRF51822 | ||
) | ||
|
||
zephyr_sources( | ||
soc.c | ||
) |
This file contains 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 @@ | ||
zephyr_compile_definitions_ifdef(CONFIG_SOC_NRF52832 NRF52832_XXAA) | ||
zephyr_compile_definitions_ifdef(CONFIG_SOC_NRF52840 NRF52840_XXAA) | ||
|
||
zephyr_sources( | ||
mpu_regions.c | ||
power.c | ||
soc.c | ||
) |
This file contains 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 @@ | ||
add_subdirectory(${SOC_SERIES}) |
This file contains 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 @@ | ||
zephyr_sources( | ||
soc.c | ||
wdog.S | ||
) | ||
zephyr_sources_ifdef( | ||
CONFIG_HAS_SYSMPU | ||
nxp_mpu_regions.c | ||
) |
This file contains 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 @@ | ||
zephyr_sources(soc.c) |
This file contains 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,4 @@ | ||
zephyr_sources_ifdef(CONFIG_SOC_MKW24D5 wdog.S soc_kw2xd.c) | ||
zephyr_sources_ifdef(CONFIG_SOC_MKW22D5 wdog.S soc_kw2xd.c) | ||
zephyr_sources_ifdef(CONFIG_SOC_MKW41Z4 soc_kw4xz.c) | ||
zephyr_sources_ifdef(CONFIG_SOC_MKW40Z4 soc_kw4xz.c) |
This file contains 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,2 @@ | ||
add_subdirectory(${SOC_SERIES}) | ||
add_subdirectory(common) |
This file contains 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 @@ | ||
zephyr_sources(soc_gpio.c) |
This file contains 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 @@ | ||
zephyr_sources(soc.c) |
This file contains 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,2 @@ | ||
add_subdirectory(${SOC_SERIES}) | ||
add_subdirectory(common) |
This file contains 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 @@ | ||
zephyr_sources_ifdef(CONFIG_STM32_ARM_MPU_ENABLE arm_mpu_regions.c) |
This file contains 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,3 @@ | ||
zephyr_include_directories($ENV{ZEPHYR_BASE}/drivers) | ||
zephyr_sources(soc.c) | ||
zephyr_sources_ifdef(CONFIG_GPIO soc_gpio.c) |
This file contains 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,5 @@ | ||
zephyr_include_directories($ENV{ZEPHYR_BASE}/drivers) | ||
zephyr_sources( | ||
soc.c | ||
) | ||
zephyr_sources_ifdef(CONFIG_GPIO soc_gpio.c) |
This file contains 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,5 @@ | ||
zephyr_include_directories($ENV{ZEPHYR_BASE}/drivers) | ||
zephyr_sources( | ||
soc.c | ||
) | ||
zephyr_sources_ifdef(CONFIG_GPIO soc_gpio.c) |
This file contains 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,5 @@ | ||
zephyr_include_directories($ENV{ZEPHYR_BASE}/drivers) | ||
zephyr_sources( | ||
soc.c | ||
) | ||
zephyr_sources_ifdef(CONFIG_GPIO soc_gpio.c) |
This file contains 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,5 @@ | ||
zephyr_include_directories($ENV{ZEPHYR_BASE}/drivers) | ||
zephyr_sources( | ||
soc.c | ||
) | ||
zephyr_sources_ifdef(CONFIG_GPIO soc_gpio.c) |
This file contains 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,4 @@ | ||
zephyr_sources( | ||
soc.c | ||
soc_config.c | ||
) |
This file contains 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 @@ | ||
add_subdirectory(${SOC_SERIES}) |
This file contains 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 @@ | ||
zephyr_sources(soc.c) |
This file contains 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 @@ | ||
zephyr_sources(soc.c) |
This file contains 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,2 @@ | ||
zephyr_compile_definitions(-D__MSP432P401R__) | ||
zephyr_sources(soc.c) |
This file contains 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,13 @@ | ||
# Put functions and data in their own binary sections so that ld can | ||
# garbage collect them | ||
zephyr_cc_option(-ffunction-sections -fdata-sections) | ||
|
||
zephyr_sources_ifdef( | ||
CONFIG_GEN_ISR_TABLES | ||
isr_tables.c | ||
) | ||
|
||
zephyr_sources_ifdef( | ||
CONFIG_EXECUTION_BENCHMARKING | ||
timing_info_bench.c | ||
) |
This file contains 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,37 @@ | ||
if(CONFIG_GP_NONE) | ||
set(gpopt none) | ||
elseif(CONFIG_GP_LOCAL) | ||
set(gpopt local) | ||
elseif(CONFIG_GP_GLOBAL) | ||
set(gpopt global) | ||
elseif(CONFIG_GP_ALL_DATA) | ||
set(gpopt data) | ||
endif() | ||
|
||
# Set Global Pointer option based on Kconfig. | ||
zephyr_cc_option(-mgpopt=${gpopt}) | ||
|
||
# TODO Find a way to pull this out of system.h somehow | ||
# instead of having Kconfig for it | ||
|
||
if(CONFIG_HAS_MUL_INSTRUCTION) | ||
zephyr_cc_option(-mhw-mul) | ||
else() | ||
zephyr_cc_option(-mno-hw-mul) | ||
endif() | ||
|
||
if(CONFIG_HAS_MULX_INSTRUCTION) | ||
zephyr_cc_option(-mhw-mulx) | ||
else() | ||
zephyr_cc_option(-mno-hw-mulx) | ||
endif() | ||
|
||
if(CONFIG_HAS_DIV_INSTRUCTION) | ||
zephyr_cc_option(-mhw-div) | ||
else() | ||
zephyr_cc_option(-mno-hw-div) | ||
endif() | ||
|
||
|
||
add_subdirectory(soc/${SOC_PATH}) | ||
add_subdirectory(core) |
This file contains 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,14 @@ | ||
zephyr_sources( | ||
thread.c | ||
cpu_idle.c | ||
fatal.c | ||
irq_manage.c | ||
swap.S | ||
prep_c.c | ||
reset.S | ||
cache.c | ||
exception.S | ||
crt0.S | ||
) | ||
|
||
zephyr_sources_if_kconfig(irq_offload.c) |
Empty file.
This file contains 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,2 @@ | ||
|
||
set($ENV{NIOS2_CPU_SOF} $ENV{ZEPHYR_BASE}/arch/nios2/soc/nios2f-zephyr/cpu/ghrd_10m50da.sof) |
This file contains 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,4 @@ | ||
add_subdirectory(soc) | ||
add_subdirectory(core) | ||
|
||
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-littleriscv) |
Oops, something went wrong.