Skip to contentSkip to conversation

x86: Fix rom version build with CONFIG_X86_RESET_VECTOR

PATCH New Bin Meng 2 participants 3 messages Oct 16, 2014 – Oct 22, 2014 x86

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH v2 1/2 x86: Fix rom version build with CONFIG_X86_RESET_VECTOR

When building U-Boot with CONFIG_X86_RESET_VECTOR, the linking process misses the resetvec.o and start16.o so it cannot generate the rom version of U-Boot. The arch/x86/cpu/Makefile is updated to pull them into the final linking process.

---
 arch/x86/cpu/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/cpu/Makefile +2 -2
index 415bc24..e7bb3e3 100644
@@ -9,5 +9,5 @@
 #
 
 extra-y	= start.o
-extra-$(CONFIG_X86_RESET_VECTOR) += resetvec.o start16.o
-obj-y	= interrupts.o cpu.o
+obj-$(CONFIG_X86_RESET_VECTOR) += resetvec.o start16.o
+obj-y	+= interrupts.o cpu.o
Signature · 1 line
1.8.2.1
#1 lore raw

PATCH v2 1/2 x86: Fix rom version build with CONFIG_X86_RESET_VECTOR

Quoted 6 lines · Bin Meng

When building U-Boot with CONFIG_X86_RESET_VECTOR, the linking process misses the resetvec.o and start16.o so it cannot generate the rom version of U-Boot. The arch/x86/cpu/Makefile is updated to pull them into the final linking process.

#2 lore raw

PATCH v2 1/2 x86: Fix rom version build with CONFIG_X86_RESET_VECTOR

Quoted 9 lines · Simon Glass
Quoted 6 lines · Bin Meng

When building U-Boot with CONFIG_X86_RESET_VECTOR, the linking process misses the resetvec.o and start16.o so it cannot generate the rom version of U-Boot. The arch/x86/cpu/Makefile is updated to pull them into the final linking process.

Applied to u-boot-x86/master, thanks!