diff --git a/.gitignore b/.gitignore index c5a13eb..dfb5e29 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ **/icons.inc **/fox32os.img **/fox32os.img.tmp +**/startup.cfg diff --git a/Makefile b/Makefile index c163847..4fc8774 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,11 @@ applications/launcher/icons.inc: applications/launcher/icons.png bootloader/bootloader.bin: bootloader/main.asm $(wildcard bootloader/*.asm) $(FOX32ASM) $< $@ +base_image/startup.cfg: base_image/startup.cfg.default + cp $< $@ + FILES = \ + base_image/startup.cfg \ base_image/kernel.fxf \ base_image/sh.fxf \ base_image/barclock.fxf \ @@ -55,6 +59,6 @@ FILES = \ base_image/launcher.fxf fox32os.img: $(BOOTLOADER) $(FILES) - $(RYFS) -s $(IMAGE_SIZE) -l fox32os -b $(BOOTLOADER) create fox32os.img.tmp - cd base_image; for file in *; do $(RYFS) add ../fox32os.img.tmp $$file; done - cp fox32os.img.tmp fox32os.img + $(RYFS) -s $(IMAGE_SIZE) -l fox32os -b $(BOOTLOADER) create $@.tmp + for file in $(FILES); do $(RYFS) add $@.tmp $$file; done + mv $@.tmp $@ diff --git a/base_image/startup.cfg b/base_image/startup.cfg.default similarity index 100% rename from base_image/startup.cfg rename to base_image/startup.cfg.default diff --git a/fox32os b/fox32os new file mode 100755 index 0000000..339a766 --- /dev/null +++ b/fox32os @@ -0,0 +1,3 @@ +#!/bin/sh +FOXBASE="$(dirname "$(realpath "$0")" )"/.. +"$FOXBASE"/fox32/fox32 --disk "$FOXBASE"/fox32os/fox32os.img "$@"