diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -13,14 +13,14 @@ ############ some constants ############ -USB_STICK=/dev/sdf +USB_STICK=/dev/sdf #take care! -#ap bin : MP_IMG_START=26112 #code for the other processors intialllly at 0x6600 -#font data starts here: FONT_DATA_START=26624 #fool font initially at 0x6800 +DATA_START=32768 #0x8000 here we put some "files" later a fs. + #here our kernel will be loaded by the bootloader. KERNEL_START=0x10000 @@ -93,12 +93,16 @@ binfont.bin: data/binfont.src # master boot record, kernel binary and fool-font -FoolOS.img: $(MBR) kernel.bin $(MP_BIN) binfont.img $(FILLUP) +FoolOS.img: $(MBR) kernel.bin $(MP_BIN) binfont.img $(FILLUP) data.img cp $(FILLUP) $@ dd if=$(MBR) of=$@ bs=1 seek=0 conv=notrunc dd if=kernel.bin of=$@ bs=1 seek=512 conv=notrunc dd if=$(MP_BIN) of=$@ bs=1 seek=$(MP_IMG_START) conv=notrunc dd if=binfont.img of=$@ bs=1 seek=$(FONT_DATA_START) conv=notrunc + dd if=data.img of=$@ bs=1 seek=$(DATA_START) conv=notrunc + +data.img: data/testdata + cp $^ $@ binfont.img: binfont.bin |
