2022-05-19 23:15:40 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
mkdir -p base_image
|
|
|
|
|
|
|
|
# if fox32os.img doesn't exist, then create it
|
|
|
|
if [ ! -f fox32os.img ]; then
|
|
|
|
echo "fox32os.img not found, creating it"
|
2022-05-22 02:23:10 +02:00
|
|
|
meta/ryfs/ryfs.py -s 16777216 -l fox32os create fox32os.img
|
2022-05-19 23:15:40 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "assembling kernel"
|
|
|
|
../fox32asm/target/release/fox32asm kernel/main.asm base_image/system.bin
|
|
|
|
|
2022-08-29 07:21:45 +02:00
|
|
|
echo "assembling launcher"
|
|
|
|
../fox32asm/target/release/fox32asm launcher/main.asm base_image/launcher.fxf
|
|
|
|
|
|
|
|
echo "creating wallpapr.raw"
|
|
|
|
../tools/gfx2inc/target/release/gfx2inc 640 480 launcher/wallpaper.png launcher/wallpaper.inc
|
|
|
|
../fox32asm/target/release/fox32asm launcher/wallpaper.inc base_image/wallpapr.raw
|
|
|
|
|
2022-05-19 23:15:40 +02:00
|
|
|
echo "adding files to fox32os.img"
|
|
|
|
cd base_image
|
2022-05-19 23:55:20 +02:00
|
|
|
for file in ./*; do
|
2022-05-22 02:23:10 +02:00
|
|
|
../meta/ryfs/ryfs.py add ../fox32os.img $file
|
2022-05-19 23:15:40 +02:00
|
|
|
done
|