Skip to contentSkip to conversation

uboot: fix ARCH for i386 and x86_64

PATCH New Arnout Vandecappelle (Essensium/Mind) 2 participants 2 messages Nov 15, 2015 – Nov 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uboot: fix ARCH for i386 and x86_64

---
This could perhaps be refactored with similar handling of KERNEL_ARCH_PATH in linux.mk. But that's for someone else :-)

---
 boot/uboot/uboot.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
boot/uboot/uboot.mk +3 -1
index 66e728f..0e3f808 100644
@@ -72,9 +72,11 @@ UBOOT_BIN_IFT = $(UBOOT_BIN).ift
 endif
 
 # The kernel calls AArch64 'arm64', but U-Boot calls it just 'arm', so
-# we have to special case it.
+# we have to special case it. Similar for i386/x86_64 -> x86
 ifeq ($(KERNEL_ARCH),arm64)
 UBOOT_ARCH = arm
+else ifneq ($(filter $(KERNEL_ARCH),i386 x86_64),)
+UBOOT_ARCH = x86
 else
 UBOOT_ARCH = $(KERNEL_ARCH)
 endif
Signature · 1 line
2.6.2
#1 lore raw

PATCH 1/1 uboot: fix ARCH for i386 and x86_64

Arnout,

Quoted 7 lines · Arnout Vandecappelle (Essensium/Mind)

---
This could perhaps be refactored with similar handling of KERNEL_ARCH_PATH in linux.mk. But that's for someone else :-)

---
 boot/uboot/uboot.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Applied to master, after testing that a x86-64 configuration can build the galileo_defconfig of U-Boot.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com