Mark the ROMFS as const, saves ~25KiB of RAM.

This commit is contained in:
px4dev
2013-03-10 13:46:23 -07:00
parent c720a32380
commit 712a1df0ec
+1 -1
View File
@@ -81,7 +81,7 @@ all: $(ROMFS_HEADER)
$(ROMFS_HEADER): $(ROMFS_IMG) $(dir $(ROMFS_HEADER))
@echo Generating the ROMFS header...
@(cd $(dir $(ROMFS_IMG)) && xxd -i $(notdir $(ROMFS_IMG))) > $@
@(cd $(dir $(ROMFS_IMG)) && xxd -i $(notdir $(ROMFS_IMG))) | sed -e 's/char/const char/' > $@
$(ROMFS_IMG): $(ROMFS_WORKDIR)
@echo Generating the ROMFS image...