Remove build date from banner for releases
In support for reproducible builds, see https://wiki.debian.org/ReproducibleBuilds Fixes Debian bug #834316. Change-Id: Id81ec72a87bf6dd99abfd2a0ae074658111bc9a3 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/3866 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
This commit is contained in:
parent
fff81c3baa
commit
3a4af87487
|
@ -38,7 +38,7 @@ noinst_HEADERS = \
|
||||||
hello.h \
|
hello.h \
|
||||||
openocd.h
|
openocd.h
|
||||||
|
|
||||||
libopenocd_la_CPPFLAGS = -DPKGBLDDATE=\"`date +%F-%R`\"
|
libopenocd_la_CPPFLAGS =
|
||||||
|
|
||||||
# banner output includes RELSTR appended to $VERSION from the configure script
|
# banner output includes RELSTR appended to $VERSION from the configure script
|
||||||
# guess-rev.sh returns either a repository version ID or "-snapshot"
|
# guess-rev.sh returns either a repository version ID or "-snapshot"
|
||||||
|
@ -48,6 +48,7 @@ libopenocd_la_CPPFLAGS += -DGITVERSION=\"\"
|
||||||
else
|
else
|
||||||
libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
|
libopenocd_la_CPPFLAGS += -DRELSTR=\"`$(top_srcdir)/guess-rev.sh $(top_srcdir)`\"
|
||||||
libopenocd_la_CPPFLAGS += -DGITVERSION=\"`cd $(top_srcdir) && git describe`\"
|
libopenocd_la_CPPFLAGS += -DGITVERSION=\"`cd $(top_srcdir) && git describe`\"
|
||||||
|
libopenocd_la_CPPFLAGS += -DPKGBLDDATE=\"`date +%F-%R`\"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# add default CPPFLAGS
|
# add default CPPFLAGS
|
||||||
|
|
|
@ -45,8 +45,13 @@
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef PKGBLDDATE
|
||||||
#define OPENOCD_VERSION \
|
#define OPENOCD_VERSION \
|
||||||
"Open On-Chip Debugger " VERSION RELSTR " (" PKGBLDDATE ")"
|
"Open On-Chip Debugger " VERSION RELSTR " (" PKGBLDDATE ")"
|
||||||
|
#else
|
||||||
|
#define OPENOCD_VERSION \
|
||||||
|
"Open On-Chip Debugger " VERSION RELSTR
|
||||||
|
#endif
|
||||||
|
|
||||||
static const char openocd_startup_tcl[] = {
|
static const char openocd_startup_tcl[] = {
|
||||||
#include "startup_tcl.inc"
|
#include "startup_tcl.inc"
|
||||||
|
|
Loading…
Reference in New Issue