mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
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;
|
||||
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
|
||||
cp = stdenv.cross.platform;
|
||||
in {
|
||||
|
@ -105,7 +105,6 @@ let
|
||||
'';
|
||||
|
||||
buildFlags = [
|
||||
"KBUILD_BUILD_TIMESTAMP=1" # (time_t)1
|
||||
"KBUILD_BUILD_VERSION=1-NixOS"
|
||||
platform.kernelTarget
|
||||
] ++ optional isModular "modules";
|
||||
|
Loading…
Reference in New Issue
Block a user