forked from mirror/uv-k5-firmware
Switched from xxd to .incbin for the overlay.
This commit is contained in:
parent
26af598092
commit
93c3273e3f
8
Makefile
8
Makefile
@ -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
10
blob-overlay.S
Normal file
@ -0,0 +1,10 @@
|
||||
.cpu cortex-m0
|
||||
.fpu softvfp
|
||||
.thumb
|
||||
|
||||
.global sram_overlay_bin
|
||||
.text
|
||||
|
||||
sram_overlay_bin:
|
||||
.incbin "sram-overlay.bin"
|
||||
|
Loading…
Reference in New Issue
Block a user