linux kernel determinism: unify timestamp style
Testing showed the linux build is sensitive to /usr/include/ncursesw unless chrooted (on non-nixos). On a single chrooted nixos machine, -A linux is binary reproducible. CC #2281 & @alexanderkjeldaas.
This commit is contained in:
parent
c510f3da49
commit
6671aff83e
|
@ -57,7 +57,10 @@ let
|
||||||
autoModules = stdenv.platform.kernelAutoModules;
|
autoModules = stdenv.platform.kernelAutoModules;
|
||||||
arch = stdenv.platform.kernelArch;
|
arch = stdenv.platform.kernelArch;
|
||||||
|
|
||||||
KBUILD_BUILD_TIMESTAMP = 1; # (time_t)1
|
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 {
|
||||||
|
|
|
@ -105,7 +105,6 @@ let
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildFlags = [
|
buildFlags = [
|
||||||
"KBUILD_BUILD_TIMESTAMP=1" # (time_t)1
|
|
||||||
"KBUILD_BUILD_VERSION=1-NixOS"
|
"KBUILD_BUILD_VERSION=1-NixOS"
|
||||||
platform.kernelTarget
|
platform.kernelTarget
|
||||||
] ++ optional isModular "modules";
|
] ++ optional isModular "modules";
|
||||||
|
|
Loading…
Reference in a new issue