2022-11-22 06:30:27 +01:00
|
|
|
#!/usr/bin/env bash
|
2022-05-19 23:15:40 +02:00
|
|
|
|
|
|
|
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-10-28 07:49:55 +02:00
|
|
|
|
|
|
|
echo "assembling bootloader"
|
|
|
|
../fox32asm/target/release/fox32asm bootloader/main.asm bootloader/bootloader.bin
|
|
|
|
|
|
|
|
meta/ryfs/ryfs.py -s 16777216 -l fox32os -b bootloader/bootloader.bin create fox32os.img
|
|
|
|
|
|
|
|
rm bootloader/bootloader.bin
|
2022-05-19 23:15:40 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "assembling kernel"
|
2022-10-28 07:49:55 +02:00
|
|
|
../fox32asm/target/release/fox32asm kernel/main.asm base_image/kernel.fxf
|
2022-05-19 23:15:40 +02:00
|
|
|
|
2022-09-10 01:39:08 +02:00
|
|
|
echo "assembling barclock"
|
2022-12-27 04:05:27 +01:00
|
|
|
../fox32asm/target/release/fox32asm applications/barclock/main.asm base_image/barclock.fxf
|
2022-09-10 01:39:08 +02:00
|
|
|
|
2022-10-15 01:53:41 +02:00
|
|
|
echo "assembling terminal"
|
2022-12-27 04:05:27 +01:00
|
|
|
../fox32asm/target/release/fox32asm applications/terminal/main.asm base_image/terminal.fxf
|
2022-10-15 01:53:41 +02:00
|
|
|
|
2022-12-26 07:00:17 +01:00
|
|
|
echo "assembling bg"
|
2022-12-27 04:05:27 +01:00
|
|
|
../fox32asm/target/release/fox32asm applications/bg/main.asm base_image/bg.fxf
|
2022-12-26 07:00:17 +01:00
|
|
|
|
|
|
|
echo "creating bg.raw"
|
2022-12-27 04:05:27 +01:00
|
|
|
../tools/gfx2inc/target/release/gfx2inc 640 480 applications/bg/bg.png applications/bg/bg.inc
|
|
|
|
../fox32asm/target/release/fox32asm applications/bg/bg.inc base_image/bg.raw
|
2022-08-29 07:21:45 +02:00
|
|
|
|
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
|