diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-05-02 14:23:22 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-05-02 14:26:30 +0200 |
commit | de87d6df69fd797fd3dfb8ac41d2c75e468dffc0 (patch) | |
tree | 3a03ad96a91f431267427f9950c3eba35d011963 | |
parent | 047dfc77141e3eb07b9e392e75879ebc0b4bcd6c (diff) | |
download | px4-firmware-de87d6df69fd797fd3dfb8ac41d2c75e468dffc0.tar.gz px4-firmware-de87d6df69fd797fd3dfb8ac41d2c75e468dffc0.tar.bz2 px4-firmware-de87d6df69fd797fd3dfb8ac41d2c75e468dffc0.zip |
do not copy hidden files to ROMFS
-rw-r--r-- | makefiles/firmware.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/makefiles/firmware.mk b/makefiles/firmware.mk index 1b646d9e0..69c975acd 100644 --- a/makefiles/firmware.mk +++ b/makefiles/firmware.mk @@ -113,7 +113,7 @@ endif $(info % GIT_DESC = $(GIT_DESC)) # -# Set a default target so that included makefiles or errors here don't +# Set a default target so that included makefiles or errors here don't # cause confusion. # # XXX We could do something cute here with $(DEFAULT_GOAL) if it's not one @@ -177,7 +177,7 @@ GLOBAL_DEPS += $(MAKEFILE_LIST) # # Extra things we should clean # -EXTRA_CLEANS = +EXTRA_CLEANS = # @@ -371,6 +371,8 @@ $(ROMFS_IMG): $(ROMFS_SCRATCH) $(ROMFS_DEPS) $(GLOBAL_DEPS) $(ROMFS_SCRATCH): $(ROMFS_DEPS) $(GLOBAL_DEPS) $(Q) $(MKDIR) -p $(ROMFS_SCRATCH) $(Q) $(COPYDIR) $(ROMFS_ROOT)/* $(ROMFS_SCRATCH) +# delete all files in ROMFS_SCRATCH which start with a . + $(Q) $(RM) $(ROMFS_SCRATCH)/*/.[!.]* $(ROMFS_SCRATCH)/*/*~ ifneq ($(ROMFS_EXTRA_FILES),) $(Q) $(MKDIR) -p $(ROMFS_SCRATCH)/extras $(Q) $(COPY) $(ROMFS_EXTRA_FILES) $(ROMFS_SCRATCH)/extras |