Initial commit: DarkForge Linux — Phases 0-12

Complete from-scratch Linux distribution targeting AMD Ryzen 9 9950X3D +
NVIDIA RTX 5090 on ASUS ROG CROSSHAIR X870E HERO.

Deliverables:
- dpack: custom package manager in Rust (3,800 lines)
  - TOML package parser, dependency resolver, build sandbox
  - CRUX Pkgfile and Gentoo ebuild converters
  - Shared library conflict detection
- 124 package definitions across 4 repos (core/extra/desktop/gaming)
- 34 toolchain bootstrap scripts (LFS 13.0 adapted for Zen 5)
- Linux 6.19.8 kernel config (hardware-specific, fully commented)
- SysVinit init system with rc.d service scripts
- Live ISO builder (UEFI-only, squashfs+xorriso)
- Interactive installer (GPT partitioning, EFISTUB boot)
- Integration test checklist (docs/TESTING.md)

No systemd. No bootloader. No display manager.
Kernel boots via EFISTUB → auto-login → dwl Wayland compositor.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 11:30:40 +01:00
commit 029642ae5b
206 changed files with 14696 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
#!/bin/bash
# ============================================================================
# DarkForge Linux — Phase 0, Chapter 6: Coreutils
# ============================================================================
# Purpose: Cross-compile GNU coreutils (ls, cp, mv, cat, chmod, etc.)
# for the temporary tools environment.
# Inputs: ${LFS}/sources/coreutils-9.6.tar.xz
# Outputs: Core utilities in ${LFS}/usr/bin/
# Assumes: Cross-toolchain complete
# Ref: LFS 13.0 §6.5
# ============================================================================
set -euo pipefail
source "${LFS}/sources/darkforge-env.sh"
PACKAGE="coreutils"
VERSION="9.6"
SRCDIR="${LFS}/sources"
echo "=== Building ${PACKAGE}-${VERSION} (Temporary Tool) ==="
cd "${SRCDIR}"
tar -xf "${PACKAGE}-${VERSION}.tar.xz"
cd "${PACKAGE}-${VERSION}"
./configure \
--prefix=/usr \
--host="${LFS_TGT}" \
--build="$(build-aux/config.guess)" \
--enable-install-program=hostname \
gl_cv_macro_MB_CUR_MAX_good=y
make
make DESTDIR="${LFS}" install
# Move some programs to where they're expected
mv -v "${LFS}/usr/bin/chroot" "${LFS}/usr/sbin"
cd "${SRCDIR}"
rm -rf "${PACKAGE}-${VERSION}"
echo "=== ${PACKAGE}-${VERSION} complete ==="