From 2b194b83286424408694bd9b230b816736fd6c5f Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Wed, 27 Aug 2014 11:41:40 +0200 Subject: added simple binary font data --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6f193e9..659d86d 100644 --- a/Makefile +++ b/Makefile @@ -9,14 +9,25 @@ #lets use the size of a 1.44 floppy for a start for our boot img IMAGE_SIZE=1474560 +#data starts at 0x8000 +DATA_START=32768 #final image all: FoolOS.img #assembling of final image -FoolOS.img: mbr.bin kernel.bin fill.bin +FoolOS.img: Fool.img FoolData.img fill.bin cat $^ | head -c $(IMAGE_SIZE) > $@ +Fool.img: mbr.bin kernel.bin fill.bin + cat $^ | head -c $(DATA_START) > $@ + +FoolData.img: binfont.bin + cat $^ > $@ + +binfont.bin: binfont.src + python makefont.py + #some data just to fill up to the target image_size fill.bin: boot/fill.asm nasm -f bin $^ -o $@ -- cgit v1.2.3