[U-Boot-Users] Bug in dependency checking
Stefano Babic
sbabic at denx.de
Mon Feb 18 08:03:51 CET 2008
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
=====================================================================
More information about the U-Boot
mailing list