Created
March 21, 2015 13:44
-
-
Save good5dog5/f3f5495d5f7e1c60fc60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ROMDIR = $(DATDIR)/test-romfs | |
DAT += $(OUTDIR)/$(DATDIR)/test-romfs.o | |
$(OUTDIR)/$(ROMDIR).o: $(OUTDIR)/$(ROMDIR).bin | |
@mkdir -p $(dir $@) | |
@echo " OBJCOPY "$@ | |
@$(CROSS_COMPILE)objcopy -I binary -O elf32-littlearm -B arm \ | |
--prefix-sections '.romfs' $< $@ | |
$(OUTDIR)/$(ROMDIR).bin: $(ROMDIR) $(OUTDIR)/$(TOOLDIR)/mkromfs | |
@mkdir -p $(dir $@) | |
@echo " MKROMFS "$@ | |
@$(OUTDIR)/$(TOOLDIR)/mkromfs -d $< $@ | |
$(ROMDIR): | |
@mkdir -p $@ | |
$(OUTDIR)/%/mkromfs: %/mkromfs.c | |
@mkdir -p $(dir $@) | |
@echo " CC "$@ | |
@gcc -Wall -o $@ $^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment