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