Commit 152b695d authored by Adam Borowski's avatar Adam Borowski Committed by Michal Marek

builddeb: fix cross-building to arm64 producing host-arch debs

Both Debian and kernel archs are "arm64" but UTS_MACHINE and gcc say
"aarch64".  Recognizing just the latter should be enough but let's
accept both in case something regresses again or an user sets
UTS_MACHINE=arm64.

Regressed in cfa88c79: arm64: Set UTS_MACHINE in the Makefile.
Signed-off-by: default avatarAdam Borowski <kilobyte@angband.pl>
Acked-by: default avatarRiku Voipio <riku.voipio@linaro.org>
Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
parent c6a38553
...@@ -51,7 +51,7 @@ set_debarch() { ...@@ -51,7 +51,7 @@ set_debarch() {
debarch=hppa ;; debarch=hppa ;;
mips*) mips*)
debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;; debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;;
arm64) aarch64|arm64)
debarch=arm64 ;; debarch=arm64 ;;
arm*) arm*)
if grep -q CONFIG_AEABI=y $KCONFIG_CONFIG; then if grep -q CONFIG_AEABI=y $KCONFIG_CONFIG; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment