x86: Fix rom version build with CONFIG_X86_RESET_VECTOR
authorBin Meng <bmeng.cn@gmail.com>
Thu, 16 Oct 2014 14:58:20 +0000 (22:58 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 15:03:07 +0000 (09:03 -0600)
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.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/Makefile

index 415bc2498935222afea91cbaee0e51011d69346f..e7bb3e33d5bdd999f246e56e02a2a06775553035 100644 (file)
@@ -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