linux: Use $SOURCE_DATE_EPOCH as the build timestamp

This commit is contained in:
Eelco Dolstra 2016-02-01 15:36:05 +01:00
parent 0a7cd3c110
commit 72a30ae66f
2 changed files with 2 additions and 5 deletions

View file

@ -57,10 +57,6 @@ let
autoModules = stdenv.platform.kernelAutoModules;
arch = stdenv.platform.kernelArch;
preConfigure = ''
buildFlagsArray+=("KBUILD_BUILD_TIMESTAMP=Thu Jan 1 00:00:01 UTC 1970")
'';
crossAttrs = let
cp = stdenv.cross.platform;
in {

View file

@ -102,7 +102,8 @@ let
make $makeFlags "''${makeFlagsArray[@]}" oldconfig
runHook postConfigure
buildFlagsArray+=("KBUILD_BUILD_TIMESTAMP=Thu Jan 1 00:00:01 UTC 1970")
# Note: we can get rid of this once http://permalink.gmane.org/gmane.linux.kbuild.devel/13800 is merged.
buildFlagsArray+=("KBUILD_BUILD_TIMESTAMP=$(date -u -d @$SOURCE_DATE_EPOCH)")
'';
buildFlags = [