]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/x86/Makefile
Merge git://git.denx.de/u-boot-mmc
[people/ms/u-boot.git] / arch / x86 / Makefile
index 36a601822a204c476be6f129e2c810498763c765..4be1c353cc9e2bcb1a396938a28f355136a1caaf 100644 (file)
@@ -2,11 +2,16 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
+ifeq ($(CONFIG_EFI_APP),)
+ifdef CONFIG_$(SPL_)X86_64
+head-y := arch/x86/cpu/start64.o
+else
 head-y := arch/x86/cpu/start.o
-ifeq ($(CONFIG_SPL_BUILD),y)
-head-y += arch/x86/cpu/start16.o
-head-y += arch/x86/cpu/resetvec.o
 endif
+endif
+
+head-$(CONFIG_$(SPL_)X86_16BIT_INIT) += arch/x86/cpu/start16.o
+head-$(CONFIG_$(SPL_)X86_16BIT_INIT) += arch/x86/cpu/resetvec.o
 
 libs-y += arch/x86/cpu/
 libs-y += arch/x86/lib/