build: Implement build pipeline

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-21 23:29:51 +00:00
parent 994847a73e
commit 71de0c20b8
13 changed files with 361 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
#
# Copyright (c) 2026, Chloe M.
# Provided under the BSD-3 clause
#
if [ ! -d stand/limine ]; then
git clone https://codeberg.org/Limine/Limine.git --branch=v10.x-binary --depth=1 stand/limine
make -C stand/limine
fi
+30
View File
@@ -0,0 +1,30 @@
#!/bin/bash
#
# Copyright (c) 2026, Chloe M.
# Provided under the BSD-3 clause
#
set -e
ISO=$ST_PROJECT_ROOT/artifacts/sp3.iso
CONFIG=$ST_PROJECT_ROOT/paw/base/boot/limine.conf
KERNEL=$ST_PROJECT_ROOT/artifacts/stoskrnl.sys
mkdir -p iso_root/boot/
# Copy the kernel to the ISO root
cp $KERNEL iso_root/boot
# Copy boot files
cp $CONFIG stand/limine/limine-bios.sys \
stand/limine/limine-bios-cd.bin \
stand/limine/limine-uefi-cd.bin \
iso_root/
# Generate the ISO
xorriso -as mkisofs -b limine-bios-cd.bin -no-emul-boot -boot-load-size 4 \
-boot-info-table --efi-boot limine-uefi-cd.bin -efi-boot-part \
--efi-boot-image --protective-msdos-label iso_root/ -o $ISO 2>/dev/null
stand/limine/limine bios-install $ISO 2>/dev/null
rm -rf iso_root