mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 22:16:32 +01:00
gnu: linux-libre: Avoid introducing timestamps into the build.
* gnu/packages/linux.scm (linux-libre)[build-phase]: Set the KCONFIG_NOTIMESTAMP and KBUILD_BUILD_TIMESTAMP environment variables to avoid introducing timestamps into the build outputs.
This commit is contained in:
parent
aa2a0d4bb8
commit
96e9f097ee
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
|
||||
;;; Copyright © 2016 Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>
|
||||
;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
|
||||
;;; Copyright © 2016 Raymond Nicholson <rain1@openmailbox.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -223,6 +224,10 @@ (define-public linux-libre
|
|||
(let* ((version "4.5")
|
||||
(build-phase
|
||||
'(lambda* (#:key system inputs #:allow-other-keys #:rest args)
|
||||
;; Avoid introducing timestamps
|
||||
(setenv "KCONFIG_NOTIMESTAMP" "1")
|
||||
(setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))
|
||||
|
||||
;; Apply the neat patch.
|
||||
(system* "patch" "-p1" "--force"
|
||||
"-i" (assoc-ref inputs "patch/freedo+gnu"))
|
||||
|
|
Loading…
Reference in a new issue