diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2015-01-03 12:29:52 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-01-03 13:54:32 +0100 |
commit | 6671aff83e4082f3a825c456cf259b9e30ae702c (patch) | |
tree | f8b491248f4df3469711d2d8ef522453d3aeaa41 /pkgs/os-specific | |
parent | c510f3da4980feab839b24a5f953a669358794a8 (diff) | |
download | nixpkgs-6671aff83e4082f3a825c456cf259b9e30ae702c.tar nixpkgs-6671aff83e4082f3a825c456cf259b9e30ae702c.tar.gz nixpkgs-6671aff83e4082f3a825c456cf259b9e30ae702c.tar.bz2 nixpkgs-6671aff83e4082f3a825c456cf259b9e30ae702c.tar.lz nixpkgs-6671aff83e4082f3a825c456cf259b9e30ae702c.tar.xz nixpkgs-6671aff83e4082f3a825c456cf259b9e30ae702c.tar.zst nixpkgs-6671aff83e4082f3a825c456cf259b9e30ae702c.zip |
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.
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/kernel/generic.nix | 5 | ||||
-rw-r--r-- | pkgs/os-specific/linux/kernel/manual-config.nix | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index af2ae3b54db..b42892f9f2d 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -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 { diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix index acc59303559..6d9baed7f2d 100644 --- a/pkgs/os-specific/linux/kernel/manual-config.nix +++ b/pkgs/os-specific/linux/kernel/manual-config.nix @@ -105,7 +105,6 @@ let ''; buildFlags = [ - "KBUILD_BUILD_TIMESTAMP=1" # (time_t)1 "KBUILD_BUILD_VERSION=1-NixOS" platform.kernelTarget ] ++ optional isModular "modules"; |