armbian-build/lib/functions/host
Ricardo Pardini 6755e9190a 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"
2024-12-31 11:52:12 +01:00
..
apt-cacher-ng.sh Add / modify (c) in bash scripts (#4922) 2023-03-09 18:30:40 +01:00
basic-deps.sh Revert "Fix armbian-firmware-full package build." 2023-12-17 13:24:45 +01:00
docker.sh Run docker via run_host_command_logged 2024-08-18 10:40:32 +02:00
external-toolchains.sh Remove old torrents which aren't referenced anywhere 2024-06-30 10:12:04 +00:00
host-release.sh Add Linux Mint Virginia and Wilma to supported hosts 2024-08-05 09:39:01 +02:00
host-utils.sh Add doas support to is_root_or_sudo_prefix 2024-05-21 20:27:03 +02:00
mktemp-utils.sh prepare_host: handle PRE_PREPARED_HOST inside prepare_host_init() so WORKDIR etc is always available 2023-08-12 09:58:32 +02:00
mountpoints.sh config/lib/exts: run shellfmt 2023-08-22 14:28:14 +02:00
prepare-host.sh don't ship qemu binary in rootfs cache + armhf image/rootfs building on non-armhf-capable-arm64 hosts (Apple M1+) 2024-12-31 11:52:12 +01:00
tmpfs-utils.sh tmpfs: introduce USE_TMPFS=no to disable tmpfs usage for WORKDIR and package-specific working dirs; actually use $temp_dir_id for mktemp; see #5502 2023-07-24 23:19:15 +02:00
wsl2.sh wsl2: fix: don't pester user for UTF-8 terminal if stdin is not a terminal 2024-03-02 20:48:57 +01:00