File tree 15 files changed +28
-73
lines changed
15 files changed +28
-73
lines changed Original file line number Diff line number Diff line change 2
2
3
3
add_definitions (-D__ZEPHYR_SUPERVISOR__)
4
4
5
+ include_directories (
6
+ ${ZEPHYR_BASE} /kernel/include
7
+ ${ZEPHYR_BASE} /arch/${ARCH} /include
8
+ )
9
+
5
10
add_subdirectory (common)
6
11
add_subdirectory (${ARCH_DIR} /${ARCH} arch/${ARCH} )
Original file line number Diff line number Diff line change @@ -28,10 +28,5 @@ zephyr_library_sources_ifdef(CONFIG_USERSPACE userspace.S)
28
28
zephyr_library_sources_ifdef(CONFIG_ARC_CONNECT arc_connect.c)
29
29
zephyr_library_sources_ifdef(CONFIG_SMP arc_smp.c)
30
30
31
- zephyr_library_include_directories(
32
- ${ZEPHYR_BASE} /kernel/include
33
- ${ZEPHYR_BASE} /arch/arc/include
34
- )
35
-
36
31
add_subdirectory_ifdef(CONFIG_ARC_CORE_MPU mpu)
37
32
add_subdirectory_ifdef(CONFIG_ARC_SECURE_FIRMWARE secureshield)
Original file line number Diff line number Diff line change @@ -4,8 +4,3 @@ zephyr_library()
4
4
5
5
zephyr_library_sources_if_kconfig(arc_core_mpu.c)
6
6
zephyr_library_sources_if_kconfig(arc_mpu.c)
7
-
8
- zephyr_library_include_directories(
9
- ${ZEPHYR_BASE} /kernel/include
10
- ${ZEPHYR_BASE} /arch/arc/include
11
- )
Original file line number Diff line number Diff line change @@ -10,8 +10,3 @@ zephyr_library_sources(
10
10
arc_secure.S
11
11
secure_sys_services.c
12
12
)
13
-
14
- zephyr_library_include_directories(
15
- ${ZEPHYR_BASE} /kernel/include
16
- ${ZEPHYR_BASE} /arch/arc/include
17
- )
Original file line number Diff line number Diff line change @@ -20,11 +20,6 @@ zephyr_library_sources(
20
20
prep_c.c
21
21
)
22
22
23
- zephyr_library_include_directories(
24
- ${ZEPHYR_BASE} /kernel/include
25
- ${ZEPHYR_BASE} /arch/arm/include
26
- )
27
-
28
23
zephyr_library_sources_ifdef(CONFIG_GEN_SW_ISR_TABLE isr_wrapper.S)
29
24
zephyr_library_sources_ifdef(CONFIG_CPLUSPLUS __aeabi_atexit.c)
30
25
zephyr_library_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c)
Original file line number Diff line number Diff line change @@ -15,8 +15,3 @@ zephyr_linker_sources_ifdef(CONFIG_SW_VECTOR_RELAY
15
15
RAM_SECTIONS
16
16
vt_pointer_section.ld
17
17
)
18
-
19
- zephyr_library_include_directories(
20
- ${ZEPHYR_BASE} /kernel/include
21
- ${ZEPHYR_BASE} /arch/arm/include
22
- )
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: Apache-2.0
2
2
3
- zephyr_sources(arm_core_cmse.c)
3
+ zephyr_library()
4
+
5
+ zephyr_library_sources(arm_core_cmse.c)
Original file line number Diff line number Diff line change @@ -32,4 +32,8 @@ zephyr_link_libraries_ifdef(CONFIG_ARM_FIRMWARE_USES_SECURE_ENTRY_FUNCS
32
32
${CMAKE_BINARY_DIR} /${CONFIG_ARM_ENTRY_VENEERS_LIB_NAME}
33
33
)
34
34
35
- zephyr_sources_ifdef(CONFIG_ARM_SECURE_FIRMWARE arm_core_tz.c)
35
+ if (CONFIG_ARM_SECURE_FIRMWARE)
36
+ zephyr_library()
37
+
38
+ zephyr_library_sources(arm_core_tz.c)
39
+ endif ()
Original file line number Diff line number Diff line change @@ -9,8 +9,3 @@ zephyr_library_sources(
9
9
reboot.c
10
10
stacks.c
11
11
)
12
-
13
- zephyr_library_include_directories(
14
- ${ZEPHYR_BASE} /kernel/include
15
- ${ZEPHYR_BASE} /arch/arm/include
16
- )
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: Apache-2.0
2
2
3
+ if (CONFIG_GEN_ISR_TABLES OR CONFIG_EXECUTION_BENCHMARKING)
4
+ zephyr_library()
5
+
6
+ zephyr_library_sources_ifdef(
7
+ CONFIG_GEN_ISR_TABLES
8
+ isr_tables.c
9
+ sw_isr_common.c
10
+ )
11
+
12
+ zephyr_library_sources_ifdef(
13
+ CONFIG_EXECUTION_BENCHMARKING
14
+ timing_info_bench.c
15
+ )
16
+ endif ()
17
+
3
18
# Put functions and data in their own binary sections so that ld can
4
19
# garbage collect them
5
20
zephyr_cc_option(-ffunction-sections -fdata-sections)
6
21
7
- zephyr_sources_ifdef(
8
- CONFIG_GEN_ISR_TABLES
9
- isr_tables.c
10
- sw_isr_common.c
11
- )
12
-
13
- zephyr_sources_ifdef(
14
- CONFIG_EXECUTION_BENCHMARKING
15
- timing_info_bench.c
16
- )
17
-
18
22
zephyr_linker_sources_ifdef(CONFIG_GEN_ISR_TABLES
19
23
SECTIONS
20
24
isr_tables.ld
@@ -29,8 +33,3 @@ zephyr_linker_sources_ifdef(CONFIG_NOCACHE_MEMORY
29
33
RAM_SECTIONS
30
34
nocache.ld
31
35
)
32
-
33
- zephyr_library_include_directories(
34
- ${ZEPHYR_BASE} /kernel/include
35
- ${ZEPHYR_BASE} /arch/${ARCH} /include
36
- )
Original file line number Diff line number Diff line change @@ -16,8 +16,3 @@ zephyr_library_sources(
16
16
)
17
17
18
18
zephyr_library_sources_if_kconfig(irq_offload.c)
19
-
20
- zephyr_library_include_directories(
21
- ${ZEPHYR_BASE} /kernel/include
22
- ${ZEPHYR_BASE} /arch/nios2/include
23
- )
Original file line number Diff line number Diff line change @@ -14,8 +14,3 @@ zephyr_library_sources(
14
14
)
15
15
16
16
zephyr_library_sources_if_kconfig(irq_offload.c)
17
-
18
- zephyr_library_include_directories(
19
- ${ZEPHYR_BASE} /kernel/include
20
- ${ZEPHYR_BASE} /arch/riscv/include
21
- )
Original file line number Diff line number Diff line change @@ -19,11 +19,6 @@ zephyr_library_sources_if_kconfig(x86_mmu.c)
19
19
20
20
zephyr_library_sources_ifdef(CONFIG_X86_VERY_EARLY_CONSOLE early_serial.c)
21
21
22
- zephyr_library_include_directories(
23
- ${ZEPHYR_BASE} /kernel/include
24
- ${ZEPHYR_BASE} /arch/x86/include
25
- )
26
-
27
22
if (CONFIG_X86_64)
28
23
include (intel64.cmake)
29
24
else ()
Original file line number Diff line number Diff line change @@ -16,9 +16,4 @@ zephyr_library_sources_ifndef(CONFIG_ATOMIC_OPERATIONS_C atomic.S)
16
16
zephyr_library_sources_ifdef(CONFIG_XTENSA_USE_CORE_CRT1 crt1.S)
17
17
zephyr_library_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c)
18
18
19
- zephyr_library_include_directories(
20
- ${ZEPHYR_BASE} /kernel/include
21
- ${ZEPHYR_BASE} /arch/xtensa/include
22
- )
23
-
24
19
add_subdirectory (startup)
Original file line number Diff line number Diff line change @@ -14,9 +14,4 @@ if(CONFIG_XTENSA_RESET_VECTOR)
14
14
memerror-vector.S
15
15
memctl_default.S
16
16
)
17
-
18
- zephyr_library_include_directories(
19
- ${ZEPHYR_BASE} /kernel/include
20
- ${ZEPHYR_BASE} /arch/xtensa/include
21
- )
22
17
endif ()
You can’t perform that action at this time.
0 commit comments