gnu: linux-libre: Move kernel configuration to configure phase.
* gnu/packages/linux.scm (linux-libre)[arguments]: Add configure phase.
This commit is contained in:
parent
499fb7e0ba
commit
9416459b72
|
@ -290,9 +290,8 @@ for SYSTEM and optionally VARIANT, or #f if there is no such configuration."
|
||||||
(ice-9 match))
|
(ice-9 match))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(replace 'configure
|
||||||
(replace 'build
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(lambda* (#:key inputs #:allow-other-keys #:rest args)
|
|
||||||
;; Avoid introducing timestamps
|
;; Avoid introducing timestamps
|
||||||
(setenv "KCONFIG_NOTIMESTAMP" "1")
|
(setenv "KCONFIG_NOTIMESTAMP" "1")
|
||||||
(setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))
|
(setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))
|
||||||
|
@ -333,11 +332,7 @@ for SYSTEM and optionally VARIANT, or #f if there is no such configuration."
|
||||||
port)
|
port)
|
||||||
(close-port port))
|
(close-port port))
|
||||||
|
|
||||||
(zero? (system* "make" "oldconfig"))
|
(zero? (system* "make" "oldconfig")))))
|
||||||
|
|
||||||
;; Call the default `build' phase so `-j' is correctly
|
|
||||||
;; passed.
|
|
||||||
(apply build #:make-flags "all" args))))
|
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
|
Loading…
Reference in New Issue