feat: add ARM64 OS flavor

Use an ARM64 Debian rootfs bootstrap because the original source-built userspace path depends on native x86_64 host runtime libraries.
This commit is contained in:
blazblue547-afk committed 2026-06-17 12:16:09 -04:00
1 parent eb8038ef4c
commit 9e86817361
28 files changed
+631 -1411

No files matched your search

+13 -19
View File
@@ -10,6 +10,7 @@ CHECK_ONLY=0
packages=(
build-essential
gcc-aarch64-linux-gnu
bc
bison
flex
@@ -31,22 +32,18 @@ packages=(
perl
kmod
openssl
libcrypt-dev
libcap-dev
libmount-dev
libblkid-dev
libexpat1-dev
zlib1g-dev
libzstd-dev
libssl-dev
libelf-dev
qemu-system-x86
mmdebstrap
debootstrap
qemu-user-static
binfmt-support
qemu-system-arm
)
required_commands=(
bash
make
gcc
aarch64-linux-gnu-gcc
curl
git
tar
@@ -64,11 +61,8 @@ required_commands=(
perl
depmod
openssl
ldd
ldconfig
install
dpkg-deb
qemu-system-x86_64
qemu-system-aarch64
)
usage() {
@@ -85,9 +79,9 @@ Options:
--no-update Skip apt-get update before installing.
--help Show this help.
This does not install desktop, GNOME, disk-image, installer, or Secure Boot
extras. It includes the host tools needed to enable optional rootfs layers, but
it does not install those target packages on the host.
This does not install disk-image, installer, or Secure Boot signing extras.
It installs the AArch64 cross compiler, ARM64 bootstrap helpers, and
qemu-system-aarch64 for the default ARM64 console build.
EOF
}
@@ -122,8 +116,8 @@ while [[ $# -gt 0 ]]; do
shift
done
if [[ "$(uname -m)" != "x86_64" ]]; then
printf 'warning: ForgeOS currently expects a native x86_64 build host; this host is %s\n' "$(uname -m)" >&2
if [[ "$(uname -m)" != "x86_64" && "$(uname -m)" != "aarch64" ]]; then
printf 'warning: ForgeOS ARM64 is tested from x86_64 or aarch64 hosts; this host is %s\n' "$(uname -m)" >&2
fi
if ! command -v apt-get >/dev/null 2>&1; then