linux: Use $SOURCE_DATE_EPOCH as the build timestamp
This commit is contained in:
parent
0a7cd3c110
commit
72a30ae66f
@ -57,10 +57,6 @@ let
|
|||||||
autoModules = stdenv.platform.kernelAutoModules;
|
autoModules = stdenv.platform.kernelAutoModules;
|
||||||
arch = stdenv.platform.kernelArch;
|
arch = stdenv.platform.kernelArch;
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
buildFlagsArray+=("KBUILD_BUILD_TIMESTAMP=Thu Jan 1 00:00:01 UTC 1970")
|
|
||||||
'';
|
|
||||||
|
|
||||||
crossAttrs = let
|
crossAttrs = let
|
||||||
cp = stdenv.cross.platform;
|
cp = stdenv.cross.platform;
|
||||||
in {
|
in {
|
||||||
|
@ -102,7 +102,8 @@ let
|
|||||||
make $makeFlags "''${makeFlagsArray[@]}" oldconfig
|
make $makeFlags "''${makeFlagsArray[@]}" oldconfig
|
||||||
runHook postConfigure
|
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 = [
|
buildFlags = [
|
||||||
|
Loading…
Reference in New Issue
Block a user