builddeb: fix cross-building to arm64 producing host-arch debs
Hi!
Please pick 152b695d for 4.9 (only), it fixes cross-compilation to arm64.
It was reported on Nov 04, acked on Nov 10, accepted into kbuild/rc-fixes on Nov 24 but somehow not pushed to Linus; it got into mainline only during the merge window.
As 4.9 is to be used in Debian stretch, {bin,}deb-pkg is going to see quite a lot of use, especially that kernel-package is mostly kaputt.
Paraphrased diff:
+++ scripts/package/builddeb
case "$UTS_MACHINE" in
[...]
- arm64)
+ aarch64|arm64)
(Only "aarch64" being actually needed, "arm64" is left as defense in case this flips again.)
Meow!
Signature · 2 lines
Autotools hint: to do a zx-spectrum build on a pdp11 host, type: ./configure --host=zx-spectrum --build=pdp11
Quoted 18 lines · Adam Borowski
Hi!
Please pick152b695dfor 4.9 (only), it fixes cross-compilation to arm64.It was reported on Nov 04, acked on Nov 10, accepted into kbuild/rc-fixes on Nov 24 but somehow not pushed to Linus; it got into mainline only during the merge window.
As 4.9 is to be used in Debian stretch, {bin,}deb-pkg is going to see quite a lot of use, especially that kernel-package is mostly kaputt.
Paraphrased diff:
+++scripts/package/builddeb
case "$UTS_MACHINE" in
[...](quoted diff) +1
-1- arm64) + aarch64|arm64)
Quoted 2 lines
(Only "aarch64" being actually needed, "arm64" is left as defense in case this flips again.)
Now applied, thanks.
greg k-h