Merge pull request #3 from nicolasnoble/no-copy-paste-objcopy
Use a better copy/pasta rule for objcopying stuff.
This commit is contained in:
commit
3324dff042
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user