aboutsummaryrefslogtreecommitdiff
path: root/makefiles/firmware.mk
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2014-02-17 00:25:30 +0100
committerJulian Oes <julian@oes.ch>2014-02-17 00:25:30 +0100
commita61a89f339394dd87de5c48951fb12d118b14e7c (patch)
tree17a2f73fee058ee21c54a9ddfee50b5c16c77a94 /makefiles/firmware.mk
parent978cac499207c08398d195d68934262aa43057f0 (diff)
downloadpx4-firmware-a61a89f339394dd87de5c48951fb12d118b14e7c.tar.gz
px4-firmware-a61a89f339394dd87de5c48951fb12d118b14e7c.tar.bz2
px4-firmware-a61a89f339394dd87de5c48951fb12d118b14e7c.zip
ROMFS: ignore comments and newlines in startup files, text in mixer files
Diffstat (limited to 'makefiles/firmware.mk')
-rw-r--r--makefiles/firmware.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/makefiles/firmware.mk b/makefiles/firmware.mk
index cb20d9cd1..1b646d9e0 100644
--- a/makefiles/firmware.mk
+++ b/makefiles/firmware.mk
@@ -355,6 +355,9 @@ ROMFS_OBJ = $(ROMFS_CSRC:.c=.o)
LIBS += $(ROMFS_OBJ)
LINK_DEPS += $(ROMFS_OBJ)
+# Remove all comments from startup and mixer files
+ROMFS_PRUNER = $(PX4_BASE)/Tools/px_romfs_pruner.py
+
# Turn the ROMFS image into an object file
$(ROMFS_OBJ): $(ROMFS_IMG) $(GLOBAL_DEPS)
$(call BIN_TO_OBJ,$<,$@,romfs_img)
@@ -372,6 +375,7 @@ ifneq ($(ROMFS_EXTRA_FILES),)
$(Q) $(MKDIR) -p $(ROMFS_SCRATCH)/extras
$(Q) $(COPY) $(ROMFS_EXTRA_FILES) $(ROMFS_SCRATCH)/extras
endif
+ $(Q) $(PYTHON) -u $(ROMFS_PRUNER) --folder $(ROMFS_SCRATCH)
EXTRA_CLEANS += $(ROMGS_OBJ) $(ROMFS_IMG)