Call TESTANDREPLACEFILE instead of mv
To avoid the timestamp change even the content is same
This commit is contained in:
parent
7caef179a2
commit
6e3a9a2eda
@ -140,7 +140,7 @@ $(DIRLIST_HDR) : populate
|
||||
|
||||
$(SYMTAB_SRC): populate
|
||||
$(Q) $(TESTS_DIR)/mksymtab.sh $(FSIMG_DIR) >$@.tmp
|
||||
$(Q) mv $@.tmp $@
|
||||
$(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@)
|
||||
|
||||
# Clean each subdirectory
|
||||
|
||||
|
@ -94,16 +94,12 @@ ifeq ($(CONFIG_EXAMPLES_MODULE_ROMFS),y)
|
||||
# Create the romfs.img file from the populated fsroot directory
|
||||
|
||||
$(ROMFS_IMG): populate
|
||||
ifeq ($(CONFIG_EXAMPLES_MODULE_BUILTINFS),y)
|
||||
$(Q) genromfs -f $@ -d $(FSROOT_DIR) -V "MODULETEST"
|
||||
endif
|
||||
|
||||
# Create the romfs.h header file from the romfs.img file
|
||||
|
||||
$(FSIMG_HDR) : $(ROMFS_IMG)
|
||||
ifeq ($(CONFIG_EXAMPLES_MODULE_BUILTINFS),y)
|
||||
$(Q) (cd $(DRIVER_DIR); xxd -i romfs.img | sed -e "s/^unsigned/static const unsigned/g" >$@)
|
||||
endif
|
||||
|
||||
else ifeq ($(CONFIG_EXAMPLES_MODULE_CROMFS),y)
|
||||
# Make sure that the NuttX gencromfs tool has been built
|
||||
@ -117,23 +113,14 @@ $(FSIMG_HDR) : populate $(NXTOOLDIR)/$(GENCROMFSEXE)
|
||||
$(Q) $(NXTOOLDIR)/$(GENCROMFSEXE) $(FSIMG_DIR) $(FSIMG_HDR)
|
||||
|
||||
endif
|
||||
|
||||
# Create the exported symbol table
|
||||
|
||||
$(SYMTAB_SRC): populate
|
||||
$(Q) $(DRIVER_DIR)/mksymtab.sh $(FSROOT_DIR) >$@.tmp
|
||||
$(Q) mv $@.tmp $@
|
||||
|
||||
else
|
||||
|
||||
# Create the exported symbol table
|
||||
|
||||
$(SYMTAB_SRC): populate
|
||||
$(Q) $(DRIVER_DIR)/mksymtab.sh $(FSROOT_DIR) >$@.tmp
|
||||
$(Q) mv $@.tmp $@
|
||||
|
||||
endif
|
||||
|
||||
# Create the exported symbol table
|
||||
|
||||
$(SYMTAB_SRC): populate
|
||||
$(Q) $(DRIVER_DIR)/mksymtab.sh $(FSROOT_DIR) >$@.tmp
|
||||
$(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@)
|
||||
|
||||
# Copy the symbol table into the kernel pass1/ build directory
|
||||
|
||||
$(PASS1_SYMTAB): $(SYMTAB_SRC)
|
||||
|
@ -79,7 +79,7 @@ $(ROMFS_HDR) : $(ROMFS_IMG)
|
||||
|
||||
$(SYMTAB_SRC): $(ROMFS_IMG)
|
||||
$(Q) $(FILESYSTEM_DIR)$(DELIM)mksymtab.sh $(ROMFS_DIR) >$@.tmp
|
||||
$(Q) mv $@.tmp $@
|
||||
$(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@)
|
||||
|
||||
# Clean each subdirectory
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user