paw: boot: Generate pre-boot image
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -11,3 +11,4 @@ randomize_hhdm_base: yes
|
|||||||
/SystemPaw 3
|
/SystemPaw 3
|
||||||
protocol: limine
|
protocol: limine
|
||||||
kernel_path: boot():/boot/stoskrnl.sys
|
kernel_path: boot():/boot/stoskrnl.sys
|
||||||
|
module_path: boot():/boot/pbi.hole
|
||||||
|
|||||||
@@ -9,10 +9,16 @@ set -e
|
|||||||
ISO=$ST_PROJECT_ROOT/artifacts/sp3.iso
|
ISO=$ST_PROJECT_ROOT/artifacts/sp3.iso
|
||||||
CONFIG=$ST_PROJECT_ROOT/paw/base/boot/limine.conf
|
CONFIG=$ST_PROJECT_ROOT/paw/base/boot/limine.conf
|
||||||
WALLPAPER=$ST_PROJECT_ROOT/paw/base/boot/*.jpg
|
WALLPAPER=$ST_PROJECT_ROOT/paw/base/boot/*.jpg
|
||||||
|
HOLE=$ST_PROJECT_ROOT/paw/host/bin/hole
|
||||||
KERNEL=$ST_PROJECT_ROOT/artifacts/stoskrnl.sys
|
KERNEL=$ST_PROJECT_ROOT/artifacts/stoskrnl.sys
|
||||||
|
|
||||||
mkdir -p iso_root/boot/
|
mkdir -p iso_root/boot/
|
||||||
|
|
||||||
|
# Create the pre-boot image (PBI)
|
||||||
|
pushd ../base
|
||||||
|
$HOLE -f . -o ../boot/iso_root/boot/pbi.hole
|
||||||
|
popd
|
||||||
|
|
||||||
# Copy the kernel to the ISO root
|
# Copy the kernel to the ISO root
|
||||||
cp $KERNEL iso_root/boot
|
cp $KERNEL iso_root/boot
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user