Skip to contentSkip to conversation

barebox: fix compilation on x86-64 architecture

PATCH New Fabien Lahoudere 2 participants 2 messages Mar 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 barebox: fix compilation on x86-64 architecture

Barebox uses KERNEL_ARCH to derive BAREBOX_ARCH, but doesn't currently handle the case of the x86-64 architecture. In this case KERNEL_ARCH is x86_64, but BAREBOX_ARCH should be x86 nonetheless.

---
 boot/barebox/barebox.mk | 2 ++
 1 file changed, 2 insertions(+)
boot/barebox/barebox.mk +2 -0
index 0fb7cec..626ff9a 100644
@@ -41,6 +41,8 @@ endif
 
 ifeq ($(KERNEL_ARCH),i386)
 BAREBOX_ARCH = x86
+else ifeq ($(KERNEL_ARCH),x86_64)
+BAREBOX_ARCH = x86
 else ifeq ($(KERNEL_ARCH),powerpc)
 BAREBOX_ARCH = ppc
 else
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 barebox: fix compilation on x86-64 architecture

Dear Fabien Lahoudere,

Quoted 6 lines · Fabien Lahoudere

Barebox uses KERNEL_ARCH to derive BAREBOX_ARCH, but doesn't currently handle the case of the x86-64 architecture. In this case KERNEL_ARCH is x86_64, but BAREBOX_ARCH should be x86 nonetheless.

Applied, thanks!

Thomas

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