forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: Merged n times arch_xtensa_Y libs into soc_xtensa and arch_xtensa
Fixes: zephyrproject-rtos#8441 This commit merges the multiple sub libraries under soc_xtense and arch_xtensa, e.g. arch_xtensa_Y_Z into a single arch_xtensa libraries. It also moves arch related stray files from libzephyr.a and places them inside the arch_${ARCH} library, see zephyrproject-rtos#8826. Signed-off-by: Torsten Rasmussen <torsten.rasmussen@nordicsemi.no>
- Loading branch information
Showing
9 changed files
with
80 additions
and
43 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-xtensa-le) | ||
add_subdirectory(core) | ||
include_relative(core/CMakeLists.txt) |
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 |
---|---|---|
@@ -1,31 +1,25 @@ | ||
zephyr_cc_option(-mlongcalls) | ||
zephyr_sources( | ||
cpu_idle.c | ||
fatal.c | ||
window_vectors.S | ||
) | ||
|
||
zephyr_sources_ifdef(CONFIG_XTENSA_ASM2 | ||
xtensa-asm2-util.S | ||
xtensa-asm2.c | ||
) | ||
zephyr_list(SOURCES | ||
OUTPUT PRIVATE_SOURCES | ||
cpu_idle.c | ||
fatal.c | ||
window_vectors.S | ||
IFDEF:${CONFIG_XTENSA_ASM2} xtensa-asm2-util.S | ||
xtensa-asm2.c | ||
IFDEF:${CONFIG_XTENSA_USE_CORE_CRT1} crt1.S | ||
IFDEF:${CONFIG_IRQ_OFFLOAD} irq_offload.c | ||
IFNDEF:${CONFIG_XTENSA_ASM2} xtensa_intr.c | ||
irq_manage.c | ||
swap.S | ||
thread.c | ||
xtensa_context.S | ||
xtensa_intr_asm.S | ||
xtensa_vectors.S | ||
xt_zephyr.S | ||
IFNDEF:${CONFIG_ATOMIC_OPERATIONS_C} atomic.S | ||
) | ||
|
||
zephyr_sources_ifndef(CONFIG_XTENSA_ASM2 | ||
xtensa_intr.c | ||
irq_manage.c | ||
swap.S | ||
thread.c | ||
xtensa_context.S | ||
xtensa_intr_asm.S | ||
xtensa_vectors.S | ||
xt_zephyr.S | ||
) | ||
target_sources(arch_xtensa PRIVATE ${PRIVATE_SOURCES}) | ||
|
||
zephyr_sources_ifndef(CONFIG_ATOMIC_OPERATIONS_C atomic.S) | ||
zephyr_sources_ifdef(CONFIG_XTENSA_USE_CORE_CRT1 | ||
crt1.S | ||
) | ||
zephyr_sources_ifdef(CONFIG_IRQ_OFFLOAD | ||
irq_offload.c | ||
) | ||
add_subdirectory(startup) | ||
include_relative(startup/CMakeLists.txt) |
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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
if(CONFIG_XTENSA_RESET_VECTOR) | ||
zephyr_library() | ||
zephyr_list(SOURCES | ||
OUTPUT PRIVATE_SOURCES | ||
reset-vector.S | ||
memerror-vector.S | ||
memctl_default.S | ||
) | ||
zephyr_sources_cc_option( SOURCES ${PRIVATE_SOURCES} | ||
OPTIONS -c -mtext-section-literals -mlongcalls | ||
) | ||
|
||
zephyr_library_cc_option( | ||
-c | ||
-mtext-section-literals | ||
-mlongcalls | ||
) | ||
|
||
zephyr_library_sources( | ||
reset-vector.S | ||
memerror-vector.S | ||
memctl_default.S | ||
) | ||
target_sources(arch_xtensa PRIVATE ${PRIVATE_SOURCES}) | ||
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,7 @@ | ||
zephyr_list(SOURCES | ||
OUTPUT PRIVATE_SOURCES | ||
soc.c | ||
esp32-mp.c | ||
) | ||
|
||
target_sources(arch_xtensa PRIVATE ${PRIVATE_SOURCES}) |
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
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
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
zephyr_library() | ||
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers) | ||
zephyr_library_sources(soc.c) | ||
target_sources(soc_xtensa PRIVATE ${CMAKE_CURRENT_LIST_DIR}/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 |
---|---|---|
@@ -1 +1,2 @@ | ||
# intentionally left empty | ||
target_sources(soc_xtensa PRIVATE ${ZEPHYR_BASE}/misc/empty_file.c) |