only update version header as needed

Constantly rebuilding the version header will force useless relinking, so we
simply need to compare the new header with the existing one before updating
it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2008-02-04 17:44:23 -05:00 committed by Wolfgang Denk
parent 208447f8e9
commit 0ec7a061fb

View File

@ -343,7 +343,8 @@ $(VERSION_FILE):
echo -n "$(U_BOOT_VERSION)" ; \ echo -n "$(U_BOOT_VERSION)" ; \
echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \ echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
$(TOPDIR)) ; \ $(TOPDIR)) ; \
echo "\"" ) > $(VERSION_FILE) echo "\"" ) > $@.tmp
@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
gdbtools: gdbtools:
$(MAKE) -C tools/gdb all || exit 1 $(MAKE) -C tools/gdb all || exit 1