Skip to content

Commit

Permalink
Mostly automated the build of a bootable Cleese disk image.
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Nov 4, 2008
1 parent 24b3552 commit fa451c3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ OBJS = kstart.o main.o video.o ports.o

all: KERNEL.BIN

image: cleese.img

clean:
-rm -f *.o KERNEL.BIN kernel.lst
-rm -f *.o KERNEL.BIN kernel.lst cleese.img

.asm.o:
$(NASM) -o $@ $<
Expand All @@ -24,7 +26,13 @@ KERNEL.BIN: $(OBJS) $(LDSCRIPT)
$(NM) $@ | sort > kernel.lst
$(STRIP) $@



cleese.img: KERNEL.BIN
hdiutil create -size 5M -fs "MS-DOS" -layout NONE cleese
mv cleese.dmg cleese.img
mkdir -p mnt
mount_msdos -o nosync `hdid -nomount cleese.img` ./mnt
cp -r boot KERNEL.BIN ./mnt
umount -f ./mnt
rm -r ./mnt


0 comments on commit fa451c3

Please sign in to comment.