Switched from xxd to .incbin for the overlay.

This commit is contained in:
Dual Tachyon 2023-08-09 17:28:21 +01:00
parent 26af598092
commit 93c3273e3f
2 changed files with 12 additions and 6 deletions

View File

@ -79,11 +79,7 @@ $(LINK_OVERLAY).o: $(LINK_OVERLAY).S
$(LINK_OVERLAY).S: $(OVERLAY)
./gen-overlay-symbols.sh $< $@
$(BLOB_OVERLAY).o: $(BLOB_OVERLAY).c
$(BLOB_OVERLAY).c: $(OVERLAY).bin
echo "const " > $@
xxd -i $< >> $@
$(BLOB_OVERLAY).S: $(OVERLAY).bin
$(TARGET): $(OBJS)
$(LD) $(LDFLAGS) $^ -o $@ $(LIBS)
@ -100,5 +96,5 @@ bsp/dp32g030/%.h: hardware/dp32g030/%.def
-include $(DEPS)
clean:
rm -f $(TARGET).bin $(TARGET) $(OBJS) $(DEPS) $(OVERLAY).bin $(OVERLAY) $(OVERLAY).o $(OVERLAY).d $(LINK_OVERLAY).o $(LINK_OVERLAY).S $(BLOB_OVERLAY).o $(BLOB_OVERLAY).c
rm -f $(TARGET).bin $(TARGET) $(OBJS) $(DEPS) $(OVERLAY).bin $(OVERLAY) $(OVERLAY).o $(OVERLAY).d $(LINK_OVERLAY).o $(LINK_OVERLAY).S $(BLOB_OVERLAY).o

10
blob-overlay.S Normal file
View File

@ -0,0 +1,10 @@
.cpu cortex-m0
.fpu softvfp
.thumb
.global sram_overlay_bin
.text
sram_overlay_bin:
.incbin "sram-overlay.bin"