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

+17 -48
View File
@@ -1,19 +1,13 @@
SHELL := /usr/bin/env bash
export ARCH ?= x86_64
export ARCH ?= arm64
export KERNEL_VERSION ?= 7.1
export BUSYBOX_VERSION ?= 1.38.0
export SYSTEMD_VERSION ?= 260
export DBUS_VERSION ?= 1.16.2
export PAM_VERSION ?= 1.7.2
export NIX_VERSION ?= 2.34.0
export NIX_SYSTEM ?= x86_64-linux
export NIX_SYSTEM ?= aarch64-linux
export DESKTOP ?= console
export ENABLE_DESKTOP ?= 0
export ROOT_LABEL ?= FORGE_ROOT
export EFI_LABEL ?= FORGE_EFI
desktop_enabled := $(filter 1 true TRUE yes YES on ON,$(ENABLE_DESKTOP))
export IMAGE_SIZE_MIB ?= $(if $(filter gnome,$(DESKTOP)),12288,$(if $(desktop_enabled),6144,4096))
export IMAGE_SIZE_MIB ?= $(if $(filter gnome,$(DESKTOP)),12288,4096)
export ESP_SIZE_MIB ?= 256
export JOBS ?= $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
export SECURE_BOOT ?= 0
@@ -22,32 +16,25 @@ export SECURE_BOOT_CERT ?=
export GNOME_SUITE ?= trixie
export GNOME_MIRROR ?= http://deb.debian.org/debian
.PHONY: help deps image-deps fetch kernel busybox pam systemd dbus rootfs gnome-rootfs image gnome-image secure-boot-keys run run-image run-desktop run-gnome list-disks install clean distclean
.PHONY: help deps image-deps fetch kernel rootfs gnome-rootfs image gnome-image secure-boot-keys run run-image run-gnome list-disks install clean distclean
help:
@printf '%s\n' \
'ForgeOS targets:' \
' make deps - install Debian/Ubuntu host deps for rootfs + run' \
' make image-deps - install Debian/Ubuntu host deps for image + run-image' \
' make fetch - download upstream source tarballs' \
' make kernel - build the Linux kernel and stage modules' \
' make pam - build Linux-PAM for login/session tracking' \
' make busybox - build BusyBox rescue utilities' \
' make systemd - build systemd PID 1' \
' make dbus - build the D-Bus system bus daemon' \
' make rootfs - assemble the systemd rootfs and initramfs' \
' make rootfs includes Nix as the core package manager' \
' ENABLE_DESKTOP=1 make rootfs - add Openbox/tint2/PCManFM desktop' \
' make gnome-rootfs - assemble a Debian GNOME desktop rootfs' \
' make image - build a bootable GPT/UEFI disk image' \
' make gnome-image - build a bootable GPT/UEFI GNOME disk image' \
'ForgeOS ARM64 targets:' \
' make deps - install Debian/Ubuntu host deps for ARM64 builds' \
' make image-deps - install ARM64 image + QEMU deps' \
' make fetch - download Linux and ARM64 Nix payloads' \
' make kernel - build the ARM64 Linux kernel and modules' \
' make rootfs - assemble the ARM64 console rootfs and initramfs' \
' make gnome-rootfs - assemble an ARM64 Debian GNOME rootfs' \
' make image - build a bootable ARM64 GPT/UEFI disk image' \
' make gnome-image - build a bootable ARM64 GNOME disk image' \
' make secure-boot-keys - generate a local Secure Boot signing keypair' \
' make run - boot kernel + initramfs in QEMU' \
' make run-image - boot the UEFI disk image in QEMU' \
' ENABLE_DESKTOP=1 make run-desktop - boot the Openbox desktop image' \
' make run-gnome - boot the GNOME image in graphical QEMU' \
' make run - boot kernel + initramfs in qemu-system-aarch64' \
' make run-image - boot the ARM64 UEFI disk image in QEMU' \
' make run-gnome - boot the ARM64 GNOME image in graphical QEMU' \
' make list-disks - list candidate installation disks' \
' sudo make install DISK=/dev/sdX - install ForgeOS to a real disk' \
' sudo make install DISK=/dev/sdX - install ForgeOS ARM64 to a real disk' \
' make clean - remove build, staging, and output artifacts' \
' make distclean - also remove downloaded and extracted sources'
@@ -63,18 +50,6 @@ fetch:
kernel: fetch
@./scripts/build-kernel.sh
busybox: fetch
@./scripts/build-busybox.sh
pam: fetch
@./scripts/build-pam.sh
systemd: fetch
@./scripts/build-systemd.sh
dbus: fetch
@./scripts/build-dbus.sh
rootfs:
@./scripts/build-rootfs.sh
@@ -100,12 +75,6 @@ run:
run-image:
@./scripts/run-qemu.sh image
run-desktop: ENABLE_DESKTOP = 1
run-desktop: IMAGE_SIZE_MIB = 4096
run-desktop: MEMORY_MB = 3072
run-desktop: image
@./scripts/run-qemu.sh image-gui
run-gnome: DESKTOP = gnome
run-gnome: IMAGE_SIZE_MIB = 12288
run-gnome: MEMORY_MB = 4096