Merge pull request #3 from nicolasnoble/no-copy-paste-objcopy

Use a better copy/pasta rule for objcopying stuff.
This commit is contained in:
Schnappy 2021-07-18 11:02:47 +02:00 committed by GitHub
commit 3324dff042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,10 +38,14 @@ LDFLAGS += -Wl,--end-group
include $(THISDIR)thirdparty/nugget/common.mk
define OBJCOPYME
$(PREFIX)-objcopy -I binary --set-section-alignment .data=4 --rename-section .data=.rodata,alloc,load,readonly,data,contents -O $(FORMAT) -B mips $< $@
endef
# convert TIM file to bin
%.o: %.tim
$(PREFIX)-objcopy -I binary --set-section-alignment .data=4 --rename-section .data=.rodata,alloc,load,readonly,data,contents -O $(FORMAT) -B mips $< $@
$(call OBJCOPYME)
# convert VAG files to bin
%.o: %.vag
$(PREFIX)-objcopy -I binary --set-section-alignment .data=4 --rename-section .data=.rodata,alloc,load,readonly,data,contents -O $(FORMAT) -B mips $< $@
$(call OBJCOPYME)