feat: add systemd Nix rootfs

This commit is contained in:
blazblue547-afk committed 2026-06-17 12:55:11 -04:00
1 parent 9e86817361
commit 1c3099dbac
38 files changed
+735 -1190

No files matched your search

+7 -26
View File
@@ -2,37 +2,34 @@ SHELL := /usr/bin/env bash
export ARCH ?= arm64
export KERNEL_VERSION ?= 7.1
export BUSYBOX_VERSION ?= 1.36.1
export SYSTEMD_VERSION ?= 256
export NIX_VERSION ?= 2.34.0
export NIX_SYSTEM ?= aarch64-linux
export DESKTOP ?= console
export ROOT_LABEL ?= FORGE_ROOT
export EFI_LABEL ?= FORGE_EFI
export IMAGE_SIZE_MIB ?= $(if $(filter gnome,$(DESKTOP)),12288,4096)
export IMAGE_SIZE_MIB ?= 4096
export ESP_SIZE_MIB ?= 256
export JOBS ?= $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
export SECURE_BOOT ?= 0
export SECURE_BOOT_KEY ?=
export SECURE_BOOT_CERT ?=
export GNOME_SUITE ?= trixie
export GNOME_MIRROR ?= http://deb.debian.org/debian
.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
.PHONY: help deps image-deps fetch kernel rootfs image secure-boot-keys run run-image list-disks install clean distclean
help:
@printf '%s\n' \
'ForgeOS ARM64 targets:' \
' make deps - install Debian/Ubuntu host deps for ARM64 builds' \
' make deps - install host deps for ARM64 systemd/Nix builds' \
' make image-deps - install ARM64 image + QEMU deps' \
' make fetch - download Linux and ARM64 Nix payloads' \
' make fetch - download Linux, BusyBox, systemd, and 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 rootfs - build systemd rootfs, stage Nix, and make initramfs' \
' 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-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 ARM64 to a real disk' \
' make clean - remove build, staging, and output artifacts' \
@@ -53,19 +50,9 @@ kernel: fetch
rootfs:
@./scripts/build-rootfs.sh
gnome-rootfs: DESKTOP = gnome
gnome-rootfs: IMAGE_SIZE_MIB = 12288
gnome-rootfs:
@./scripts/build-gnome-rootfs.sh
image:
@./scripts/build-image.sh
gnome-image: DESKTOP = gnome
gnome-image: IMAGE_SIZE_MIB = 12288
gnome-image:
@./scripts/build-image.sh
secure-boot-keys:
@./scripts/generate-secure-boot-keys.sh
@@ -75,12 +62,6 @@ run:
run-image:
@./scripts/run-qemu.sh image
run-gnome: DESKTOP = gnome
run-gnome: IMAGE_SIZE_MIB = 12288
run-gnome: MEMORY_MB = 4096
run-gnome: gnome-image
@./scripts/run-qemu.sh image-gui
list-disks:
@./scripts/install-to-disk.sh --list