busybox/scripts/kconfig
Paul Spooren 947a22b332 build system: use SOURCE_DATE_EPOCH for timestamp if available
The SOURCE_DATE_EPOCH is an effort of the Reproducible Builds
organization to make timestamps/build dates in compiled tools
deterministic over several repetitive builds.

Busybox shows by default the build date timestamp which changes whenever
compiled. To have a reasonable accurate build date while staying
reproducible, it's possible to use the *date of last source
modification* rather than the current time and date.

Further information on SOURCE_DATE_EPOCH are available online [1].

This patch modifies `confdata.c` so that the content of the
SOURCE_DATE_EPOCH env variable is used as timestamp.

To be independent of different timezones between builds, whenever
SOURCE_DATE_EPOCH is defined the GMT time is used.

[1]: https://reproducible-builds.org/docs/source-date-epoch/

Signed-off-by: Paul Spooren <mail@aparcar.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-06-05 18:13:00 +02:00
..
lxdialog build system: fix compiler warnings 2019-01-06 20:12:16 +01:00
.gitignore add .gitignore files 2009-05-05 09:05:30 -04:00
check.sh *: trailing empty lines removed 2010-07-26 01:49:12 +02:00
conf.c fix "warning array subscript has type 'char'" 2021-04-14 19:12:43 +02:00
confdata.c build system: use SOURCE_DATE_EPOCH for timestamp if available 2021-06-05 18:13:00 +02:00
expr.c whitespace fixes 2007-05-30 00:29:55 +00:00
expr.h
gconf.c Remove 'busybox' word from configuration programs 2008-05-28 11:59:32 +00:00
gconf.glade
images.c
kconfig_load.c whitespace fixes 2007-05-30 00:29:55 +00:00
kxgettext.c
lex.zconf.c_shipped update _shipped file with hurd fix 2010-08-02 02:17:25 +02:00
lkc_proto.h
lkc.h
Makefile build system: fix make gconfig 2013-12-19 04:43:24 +01:00
mconf.c fix "warning array subscript has type 'char'" 2021-04-14 19:12:43 +02:00
menu.c *: trailing empty lines removed 2010-07-26 01:49:12 +02:00
POTFILES.in
qconf.cc Remove 'busybox' word from configuration programs 2008-05-28 11:59:32 +00:00
qconf.h
symbol.c
util.c fix if(p)/free(p) construct 2015-06-07 18:19:43 +02:00
zconf.gperf
zconf.hash.c_shipped randomconfig fixes 2016-06-19 18:15:33 +02:00
zconf.l Hurd compat fixes. Mostly dealing with absent PATH_MAX 2010-03-26 19:08:53 +01:00
zconf.tab.c_shipped *: trailing empty lines removed 2010-07-26 01:49:12 +02:00
zconf.y *: s/spaces/tabs/ 2010-07-26 12:47:36 +02:00