arch: arm, arm64: Disable swi_tables.ld file when not required
This commit removes the need of swi_tables.ld file if the ISR table generator is not configured to use it. Signed-off-by: Radosław Koppel <radoslaw.koppel@nordicsemi.no>
This commit is contained in:
parent
e90613efb2
commit
adaacefc20
|
@ -3,6 +3,6 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#if LINKER_ZEPHYR_FINAL
|
||||
#if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION)
|
||||
INCLUDE zephyr/isr_tables_swi.ld
|
||||
#endif
|
||||
|
|
|
@ -51,7 +51,7 @@ _vector_start = .;
|
|||
KEEP(*(.exc_vector_table))
|
||||
KEEP(*(".exc_vector_table.*"))
|
||||
|
||||
#if LINKER_ZEPHYR_FINAL && CONFIG_ISR_TABLES_LOCAL_DECLARATION
|
||||
#if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION)
|
||||
INCLUDE zephyr/isr_tables_vt.ld
|
||||
#else
|
||||
KEEP(*(.vectors))
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#if LINKER_ZEPHYR_FINAL
|
||||
#if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION)
|
||||
INCLUDE zephyr/isr_tables_swi.ld
|
||||
#endif
|
||||
|
|
|
@ -111,7 +111,7 @@ SECTIONS
|
|||
KEEP(*(.exc_vector_table))
|
||||
KEEP(*(".exc_vector_table.*"))
|
||||
|
||||
#if LINKER_ZEPHYR_FINAL && CONFIG_ISR_TABLES_LOCAL_DECLARATION
|
||||
#if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION)
|
||||
INCLUDE zephyr/isr_tables_vt.ld
|
||||
#else
|
||||
KEEP(*(.vectors))
|
||||
|
|
Loading…
Reference in a new issue