arch: common: use zephyr_library for all source files
The zephyr_library() used to only be called if CONFIG_GEN_ISR_TABLES is enabled. Which means that any zephyr_library_*() calls are putting things into another library if CONFIG_GEN_ISR_TABLES is disabled. So pull the call to zephyr_library() to outside. Also moves semihost.c into the library. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
905652fc15
commit
d59944465a
|
@ -1,13 +1,14 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if(CONFIG_GEN_ISR_TABLES)
|
||||
zephyr_library()
|
||||
zephyr_library()
|
||||
|
||||
zephyr_library_sources_ifdef(
|
||||
CONFIG_GEN_ISR_TABLES
|
||||
sw_isr_common.c
|
||||
)
|
||||
endif()
|
||||
# Library may be empty due to kconfigs
|
||||
zephyr_library_property(ALLOW_EMPTY TRUE)
|
||||
|
||||
zephyr_library_sources_ifdef(
|
||||
CONFIG_GEN_ISR_TABLES
|
||||
sw_isr_common.c
|
||||
)
|
||||
|
||||
if(NOT CONFIG_ARCH_HAS_TIMING_FUNCTIONS AND
|
||||
NOT CONFIG_SOC_HAS_TIMING_FUNCTIONS AND
|
||||
|
@ -77,4 +78,4 @@ if(CONFIG_COVERAGE)
|
|||
zephyr_link_libraries_ifndef(CONFIG_NATIVE_LIBRARY $<TARGET_PROPERTY:linker,coverage>)
|
||||
endif()
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_SEMIHOST semihost.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_SEMIHOST semihost.c)
|
||||
|
|
Loading…
Reference in New Issue