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)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 21 Jun 2022 09:42:25 +0000 (10:42 +0100)
Last-Update: 2013-01-28

expects
Last-Update: 2013-01-28

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

Makefile

index 4f0dee4145abfb6062f4c33db95e950c3e076ae3..218437f34e1a79717593b73f1b9afa8a0e9b08fa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -86,6 +86,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.