Blame SOURCES/0012-Fix-arm-build-paths-in-the-makefile.patch

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