Reduce `uname -m` down to what the build system
authorShawn Landden <shawnlandden@gmail.com>
Tue, 6 Feb 2018 15:29:11 +0000 (15:29 +0000)
committerRaphaël Hertzog <hertzog@debian.org>
Tue, 6 Feb 2018 15:29:11 +0000 (15:29 +0000)
Last-Update: 2013-01-28

expects
Last-Update: 2013-01-28
Gbp-Pq: Name 0002-reduce-uname-down.patch

Makefile

index 013c6d8a983562853c46edc460bd25873af13e40..efd349eb4966e37f7c873887fbec4ada34cd1332 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -93,6 +93,12 @@ endif
 
 # Architecture detection
 _machname := $(shell uname -m)
+ifneq (,$(findstring arm,${_machname}))
+       override _machname := arm
+endif
+ifneq (,$(findstring i686,${_machname}))
+       override _machname := x86
+endif
 HOST_ARCH ?= ${_machname}
 
 # ARCH and/or FIRMWARE_ARCH are defined by the Chromium OS ebuild.