Reduce `uname -m` down to what the build system
authorShawn Landden <shawnlandden@gmail.com>
Mon, 10 Feb 2020 15:21:52 +0000 (16:21 +0100)
committerSophie Brun <sophie@offensive-security.com>
Tue, 1 Dec 2020 09:59:21 +0000 (09:59 +0000)
Last-Update: 2013-01-28

expects
Last-Update: 2013-01-28

Gbp-Pq: Name 0002-reduce-uname-down.patch

Makefile

index f508a38604c4a724a0b0d7cce68444ab66d7bb4f..fd91c1dcc3dfb8d7a4fc6b9950d8c7ae642ce601 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -84,6 +84,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.