wut_rules: rpx/rpl: use unstripped ELF directly

This commit is contained in:
fincs
2020-12-13 16:21:33 +01:00
parent 2ae085d528
commit 7c67d8baa3

View File

@@ -25,18 +25,12 @@ MACHDEP = -DESPRESSO -mcpu=750 -meabi -mhard-float
#---------------------------------------------------------------------------------
%.rpx: %.elf
@cp $< $*.strip.elf
$(SILENTCMD)$(STRIP) -g $*.strip.elf $(ERROR_FILTER)
$(SILENTCMD)elf2rpl $*.strip.elf $@ $(ERROR_FILTER)
@rm $*.strip.elf
$(SILENTCMD)elf2rpl $< $@ $(ERROR_FILTER)
@echo built ... $(notdir $@)
#---------------------------------------------------------------------------------
%.rpl: %.elf
@cp $< $*.strip.elf
$(SILENTCMD)$(STRIP) -g $*.strip.elf $(ERROR_FILTER)
$(SILENTCMD)elf2rpl --rpl $*.strip.elf $@ $(ERROR_FILTER)
@rm $*.strip.elf
$(SILENTCMD)elf2rpl --rpl $< $@ $(ERROR_FILTER)
@echo built ... $(notdir $@)
#---------------------------------------------------------------------------------