diff options
author | Thomas Albers Raviola <thomas@thomaslabs.org> | 2024-12-02 21:43:04 +0100 |
---|---|---|
committer | Thomas Albers Raviola <thomas@thomaslabs.org> | 2024-12-02 21:43:59 +0100 |
commit | 9cd14efb76a4ddbcd013f44d50dc1ff93d56c4ca (patch) | |
tree | 6784edf3de941c8f7200a133d2f086bcfc08e9f2 /Makefile | |
parent | 37bc2b32d3492a86d87e3642ce48c753264c795a (diff) |
Move bootloader to payload
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -7,9 +7,7 @@ CPP=sdcpp ASM=crt0.asm\ isr.asm\ delay.asm -SRC=crc16.c\ - bootloader.c\ - font.c\ +SRC=font.c\ i2c.c\ input.c\ main.c\ @@ -22,6 +20,7 @@ OBJ=$(ASM:%.asm=build/%.rel)\ IHX=build/$(PROJECT).ihx TARGET=build/$(PROJECT).hex +BOOTLOADER=build/boot/bootloader.hex INCLUDE=include CFLAGS=-mz80 -I$(INCLUDE) --Werror @@ -53,8 +52,12 @@ $(IHX) : $(OBJ) @echo ' (LD)' $(OBJ) @$(CC) $(LDFLAGS) -o $@ $(OBJ) -$(TARGET) : $(IHX) - @hex2bin.py $< $@ +$(TARGET) : $(IHX) $(BOOTLOADER) + @hex2bin.py -l 32768 $< $@ + @dd if=$(BOOTLOADER) of=$@ obs=1024 seek=28 conv=notrunc + +$(BOOTLOADER) : + make -C boot .PHONE : flash flash : |