All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH for-2015.11] uboot: fix ARCH for i386 and x86_64
@ 2015-11-15 19:55 Arnout Vandecappelle
  2015-11-16 20:19 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Arnout Vandecappelle @ 2015-11-15 19:55 UTC (permalink / raw
  To: buildroot

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
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(-)

diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 66e728f..0e3f808 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -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
-- 
2.6.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH for-2015.11] uboot: fix ARCH for i386 and x86_64
  2015-11-15 19:55 [Buildroot] [PATCH for-2015.11] uboot: fix ARCH for i386 and x86_64 Arnout Vandecappelle
@ 2015-11-16 20:19 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-11-16 20:19 UTC (permalink / raw
  To: buildroot

Arnout,

On Sun, 15 Nov 2015 20:55:32 +0100, Arnout Vandecappelle
(Essensium/Mind) wrote:
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> 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
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-16 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-15 19:55 [Buildroot] [PATCH for-2015.11] uboot: fix ARCH for i386 and x86_64 Arnout Vandecappelle
2015-11-16 20:19 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.