Reduce `uname -m` down to what the build system
authorShawn Landden <shawnlandden@gmail.com>
Fri, 2 Sep 2016 13:09:03 +0000 (14:09 +0100)
committerSophie Brun <sophie@freexian.com>
Fri, 2 Sep 2016 13:09:03 +0000 (14:09 +0100)
Last-Update: 2013-01-28

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

Makefile

index 8989147f9a5a0eb38b8dc1abcab6118969cd7811..f254536f397b497348b45e970ba8380e66b4e3ba 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.