From b2228607be25ce5d6cd6c391c688a7d7314c26d1 Mon Sep 17 00:00:00 2001 From: parazyd Date: Mon, 15 Jun 2020 20:04:21 +0200 Subject: [PATCH] Support building armhf/armel on arm64 without QEMU. This uses the same logic like i386 on amd64. If an aarch64 kernel is running, it can execute armhf and armel binaries. --- scripts/build-and-provide-package | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/build-and-provide-package b/scripts/build-and-provide-package index 9fa2290..1df7fcf 100755 --- a/scripts/build-and-provide-package +++ b/scripts/build-and-provide-package @@ -43,6 +43,7 @@ set_debootstrap() { fi # we can compile i386 packages on amd64, so don't use qemu-debootstrap there + # and the same goes for armhf/armel on arm64 case "$HOST_ARCH" in amd64) if [ "${architecture:-}" = "i386" ] ; then @@ -50,6 +51,12 @@ set_debootstrap() { return 0 fi ;; + arm64) + if [ "${architecture:-}" = "armhf" ] || [ "${architecture:-}" = "armel" ] ; then + DEBOOTSTRAP="debootstrap" + return 0 + fi + ;; esac # otherwise assume we're building for a foreign architecture