do not copy hidden files to ROMFS

This commit is contained in:
Thomas Gubler
2014-05-02 14:26:30 +02:00
parent 047dfc7714
commit de87d6df69
+4 -2
View File
@@ -113,7 +113,7 @@ endif
$(info % GIT_DESC = $(GIT_DESC)) $(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. # cause confusion.
# #
# XXX We could do something cute here with $(DEFAULT_GOAL) if it's not one # 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 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) $(ROMFS_SCRATCH): $(ROMFS_DEPS) $(GLOBAL_DEPS)
$(Q) $(MKDIR) -p $(ROMFS_SCRATCH) $(Q) $(MKDIR) -p $(ROMFS_SCRATCH)
$(Q) $(COPYDIR) $(ROMFS_ROOT)/* $(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),) ifneq ($(ROMFS_EXTRA_FILES),)
$(Q) $(MKDIR) -p $(ROMFS_SCRATCH)/extras $(Q) $(MKDIR) -p $(ROMFS_SCRATCH)/extras
$(Q) $(COPY) $(ROMFS_EXTRA_FILES) $(ROMFS_SCRATCH)/extras $(Q) $(COPY) $(ROMFS_EXTRA_FILES) $(ROMFS_SCRATCH)/extras