67650e
From 5fa13d4609ae6187f68928c6e0834cdf716442f9 Mon Sep 17 00:00:00 2001
aad209
From: Peter Jones <pjones@redhat.com>
67650e
Date: Tue, 13 Mar 2018 15:20:22 -0400
67650e
Subject: [PATCH 12/25] Fix arm build paths in the makefile
aad209
aad209
Previous work was apparently done with arm-linux-gnueabi-gcc as a
aad209
cross-builder, but our armv7 builders have native gcc with the target as
aad209
armv7hl-linux-gnueabi, so we need to munge the arch there to get our arm
aad209
path.
aad209
aad209
Signed-off-by: Peter Jones <pjones@redhat.com>
67650e
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
aad209
---
aad209
 Make.defaults | 4 ++--
aad209
 1 file changed, 2 insertions(+), 2 deletions(-)
aad209
aad209
diff --git a/Make.defaults b/Make.defaults
67650e
index 446e676dc14..6d300fb0f24 100755
aad209
--- a/Make.defaults
aad209
+++ b/Make.defaults
aad209
@@ -62,12 +62,12 @@ OBJCOPY      := $(prefix)$(CROSS_COMPILE)objcopy
aad209
 
aad209
 # Host/target identification
aad209
 OS           := $(shell uname -s)
aad209
-HOSTARCH     := $(shell $(HOSTCC) -dumpmachine | cut -f1 -d- | sed s,i[3456789]86,ia32,)
aad209
+HOSTARCH     := $(shell $(HOSTCC) -dumpmachine | cut -f1 -d- | sed -e s,i[3456789]86,ia32, -e 's,armv7.*,arm,' )
aad209
 ARCH         := $(HOSTARCH)
aad209
 
aad209
 # Get ARCH from the compiler if cross compiling 
aad209
 ifneq ($(CROSS_COMPILE),)
aad209
-  override ARCH := $(shell $(CC) -dumpmachine | cut -f1 -d-| sed s,i[3456789]86,ia32,)
aad209
+  override ARCH := $(shell $(CC) -dumpmachine | cut -f1 -d-| sed -e s,i[3456789]86,ia32, -e 's,armv7.*,arm,' )
aad209
 endif
aad209
 
aad209
 # FreeBSD (and possibly others) reports amd64 instead of x86_64
aad209
-- 
67650e
2.15.0
aad209