From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Mon, 18 Feb 2008 08:03:51 +0100 Subject: [U-Boot-Users] Bug in dependency checking In-Reply-To: <20080214220942.724592483C@gemini.denx.de> References: <20080214220942.724592483C@gemini.denx.de> Message-ID: <47B92DD7.5000506@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > Hi, > > there is a bug in the dependency checking. If we modify a source file, > and then rebuild U-Boot, it will not generate a new git commit ID in > the version string. > > Can somebody please help me with this? Thanks in advance. What about simply adding VERSION_FILE to the PHONY targets ? in this way the script /tools/setlocalversion is always called and version_autogenerated.h is replaced only if the script find a modified source file. --- a/Makefile +++ b/Makefile @@ -244,7 +244,7 @@ LIBS += libfdt/libfdt.a LIBS += api/libapi.a LIBS := $(addprefix $(obj),$(LIBS)) -.PHONY : $(LIBS) +.PHONY : $(LIBS) $(VERSION_FILE) Regards, stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================