-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't ship qemu binary in rootfs cache + armhf image/rootfs building …
…on non-armhf-capable-arm64 hosts (Apple M1+) - refactor `prepare_host_binfmt_qemu()` out of `prepare_host_noninteractive()` and into `rootfs/qemu-static.sh` - further split into more functions and return early to avoid deep nesting - implement force import and load of qemu-arm for non-armhf capable arm64 hosts (incl magic numbers) - enhance `deploy_qemu_binary_to_chroot()` & `undeploy_qemu_binary_from_chroot()`; - add 2nd param "caller" for better logging/tracking - does sanity-check and preserve existing binary if it exists - explicitly deploy/undeploy for the 3 cases: - image: moved undeploy from `post_debootstrap_tweaks()` into image build proper for consistency - rootfs: was leaving trash behind (since post_debootstrap_tweaks never ran for rootfs), now properly undeploys - initrd: was already fine, just added caller info - added `arch-test` host dependency - ensure `arch-test ${ARCH}` works during prepare-host - > tl,dr: "can build 32-bit armv7 armhf using Apple silicon; can use rootfs cache cross-arch reliably"
- Loading branch information
Showing
6 changed files
with
186 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters