f458757d86
Signed-off-by: Peter Jones <pjones@redhat.com>
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From 290e12e22869d3041816f8938b97a4fa849cdc3c Mon Sep 17 00:00:00 2001
|
|
From: Peter Jones <pjones@redhat.com>
|
|
Date: Fri, 22 Sep 2017 12:57:23 -0400
|
|
Subject: [PATCH 17/22] Make ARCH overrideable on the command line
|
|
|
|
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
|
|
index a457190aa3a..4aa57ac5f7c 100755
|
|
--- a/Make.defaults
|
|
+++ b/Make.defaults
|
|
@@ -62,8 +62,8 @@ OBJCOPY := $(prefix)$(CROSS_COMPILE)objcopy
|
|
|
|
# Host/target identification
|
|
OS := $(shell uname -s)
|
|
-HOSTARCH := $(shell $(HOSTCC) -dumpmachine | cut -f1 -d- | sed -e s,i[3456789]86,ia32, -e 's,armv7.*,arm,' )
|
|
-ARCH := $(HOSTARCH)
|
|
+HOSTARCH ?= $(shell $(HOSTCC) -dumpmachine | cut -f1 -d- | sed -e s,i[3456789]86,ia32, -e 's,armv7.*,arm,' )
|
|
+ARCH ?= $(shell $(HOSTCC) -dumpmachine | cut -f1 -d- | sed -e s,i[3456789]86,ia32, -e 's,armv7.*,arm,' )
|
|
|
|
# Get ARCH from the compiler if cross compiling
|
|
ifneq ($(CROSS_COMPILE),)
|
|
--
|
|
2.14.3
|
|
|