From b7aa6b7bd07f72d611ac48deaa63778582e725a1 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Thu, 11 May 2017 09:46:08 -0700 Subject: [PATCH] xtensa: optionally build reset vector code In real-world use-cases this isn't always needed. Signed-off-by: Andrew Boie --- arch/xtensa/Kconfig | 9 +++++++++ arch/xtensa/core/startup/Makefile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index ad21416be93..b1fab9107f7 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig @@ -68,6 +68,15 @@ config SW_ISR_TABLE_DYNAMIC SRAM so that it is writable. This has the side-effect of removing write-protection on the ISR table. +config XTENSA_RESET_VECTOR + bool + prompt "Build reset vector code" + default y + help + This option controls whether the initial reset vector code is built. + This is always needed for the simulator. Real boards may already + implement this in boot ROM. + menu "Specific core configuration" config IRQ_OFFLOAD_INTNUM diff --git a/arch/xtensa/core/startup/Makefile b/arch/xtensa/core/startup/Makefile index 4db6f94d34f..2e0c1df2df4 100644 --- a/arch/xtensa/core/startup/Makefile +++ b/arch/xtensa/core/startup/Makefile @@ -1,2 +1,2 @@ asflags-y := -c -xassembler-with-cpp $(XTENSA_INCLUDE) $(flagBoardType) -mtext-section-literals -mlongcalls -obj-y = reset-vector.o +obj-$(CONFIG_XTENSA_RESET_VECTOR) = reset-vector.o