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