Skip to content

Commit

Permalink
arch: arm, arm64: Remove zephyr prefix from linker includes
Browse files Browse the repository at this point in the history
This fix removes the zephyr/ prefix from linker included files.
With this prefix the build works only for Ninja and does not
work propery for other build tools.

Signed-off-by: Radoslaw Koppel <[email protected]>
  • Loading branch information
rakons committed Feb 5, 2024
1 parent 6597f77 commit 66dc7a6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/arm/core/swi_tables.ld
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
* SPDX-License-Identifier: Apache-2.0
*/
#if LINKER_ZEPHYR_FINAL && defined (CONFIG_ISR_TABLES_LOCAL_DECLARATION)
INCLUDE zephyr/isr_tables_swi.ld
INCLUDE isr_tables_swi.ld
#endif
2 changes: 1 addition & 1 deletion arch/arm/core/vector_table.ld
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ KEEP(*(.exc_vector_table))
KEEP(*(".exc_vector_table.*"))

#if LINKER_ZEPHYR_FINAL && defined(CONFIG_ISR_TABLES_LOCAL_DECLARATION)
INCLUDE zephyr/isr_tables_vt.ld
INCLUDE isr_tables_vt.ld
#else
KEEP(*(.vectors))
#endif
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/core/swi_tables.ld
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
* SPDX-License-Identifier: Apache-2.0
*/
#if LINKER_ZEPHYR_FINAL && defined (CONFIG_ISR_TABLES_LOCAL_DECLARATION)
INCLUDE zephyr/isr_tables_swi.ld
INCLUDE isr_tables_swi.ld
#endif
2 changes: 1 addition & 1 deletion include/zephyr/arch/arm64/scripts/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ SECTIONS
KEEP(*(".exc_vector_table.*"))

#if LINKER_ZEPHYR_FINAL && defined (CONFIG_ISR_TABLES_LOCAL_DECLARATION)
INCLUDE zephyr/isr_tables_vt.ld
INCLUDE isr_tables_vt.ld
#else
KEEP(*(.vectors))
#endif
Expand Down

0 comments on commit 66dc7a6

Please sign in to comment.