treat-i386-as-x86
authorVagrant Cascadian <vagrant@reproducible-builds.org>
Tue, 1 Dec 2020 08:55:46 +0000 (09:55 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 21 Jun 2022 09:42:25 +0000 (10:42 +0100)
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=974863

When building for i386 and running an amd64 kernel, the Makefile uses
"uname -m" to determine the architecture, but this introduces variations
depending on the kernel used to perform the build.

Gbp-Pq: Name treat-i386-as-x86.patch

Makefile

index c75c10f4c0fc326559661200721b4ce2e35372d2..8930eb08dbee5582b51c46d122e43d3551470fd6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -95,6 +95,9 @@ endif
 ifneq (,$(findstring i686,${_machname}))
        override _machname := x86
 endif
+ifneq (,$(findstring i386,${_machname}))
+       override _machname := x86
+endif
 HOST_ARCH ?= ${_machname}
 
 # ARCH and/or FIRMWARE_ARCH are defined by the Chromium OS ebuild.