lol

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.

+4 -2
+4 -1
pkgs/os-specific/linux/kernel/generic.nix
··· 57 57 autoModules = stdenv.platform.kernelAutoModules; 58 58 arch = stdenv.platform.kernelArch; 59 59 60 - KBUILD_BUILD_TIMESTAMP = 1; # (time_t)1 60 + preConfigure = '' 61 + buildFlagsArray+=("KBUILD_BUILD_TIMESTAMP=Thu Jan 1 00:00:01 UTC 1970") 62 + ''; 63 + 61 64 crossAttrs = let 62 65 cp = stdenv.cross.platform; 63 66 in {
-1
pkgs/os-specific/linux/kernel/manual-config.nix
··· 105 105 ''; 106 106 107 107 buildFlags = [ 108 - "KBUILD_BUILD_TIMESTAMP=1" # (time_t)1 109 108 "KBUILD_BUILD_VERSION=1-NixOS" 110 109 platform.kernelTarget 111 110 ] ++ optional isModular "modules";