Skip to contentSkip to conversation

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

CHERRY-PICK 4.9 Adam Borowski 2 participants 2 messages Dec 18, 2016 – Jan 4, 2017 Stable branch

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 18 lines · Adam Borowski

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
[...]

(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