Initial AeroOS source

This commit is contained in:
Joe committed 2026-06-19 10:02:12 -04:00
commit b27732ad89
42 files changed
+3775

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# scripts/06-desktop.sh — copy compositor source into the tree, build the
# Wayland/wlroots desktop stack + aerowm inside the chroot.
source "$(dirname "${BASH_SOURCE[0]}")/lib/common.sh"
require_root
LFS="$AEROS_ROOT"
trap 'mountpoint -q "$LFS/sources" && umount -l "$LFS/sources"; umount_vkfs 2>/dev/null || true' EXIT
step "Wayland desktop + aerowm compositor"
mount_vkfs
mkdir -p "$LFS/sources"
mountpoint -q "$LFS/sources" || mount --bind "$AEROS_SOURCES" "$LFS/sources"
# stage compositor source into /usr/src/aerowm inside the new system
log "installing aerowm source into /usr/src/aerowm"
rm -rf "$LFS/usr/src/aerowm"
mkdir -p "$LFS/usr/src/aerowm"
cp -a "$AEROS_TOP/desktop/aerowm/." "$LFS/usr/src/aerowm/"
install -m755 "$AEROS_TOP/packages/chroot-buildtools.sh" "$LFS/root/build-tools.sh"
install -m755 "$AEROS_TOP/packages/chroot-desktop.sh" "$LFS/root/build-desktop.sh"
ENVS="MAKEFLAGS='-j${AEROS_JOBS}'"
in_chroot "$ENVS /root/build-tools.sh" # ensure ninja/meson exist
in_chroot "$ENVS /root/build-desktop.sh"
mountpoint -q "$LFS/sources" && umount -l "$LFS/sources" || true
umount_vkfs
ok "desktop stack + compositor built"