gnu: Add linux-libre-headers-bootstrap-tarball.
* gnu/packages/make-bootstrap.scm (%linux-libre-headers-stripped): New variable. (%linux-libre-headers-bootstrap-tarball): New variable.
This commit is contained in:
parent
4f3811f6bb
commit
5b8c6abcfc
|
@ -41,6 +41,7 @@
|
||||||
#:use-module (ice-9 match)
|
#:use-module (ice-9 match)
|
||||||
#:use-module (srfi srfi-1)
|
#:use-module (srfi srfi-1)
|
||||||
#:export (%bootstrap-binaries-tarball
|
#:export (%bootstrap-binaries-tarball
|
||||||
|
%linux-libre-headers-bootstrap-tarball
|
||||||
%binutils-bootstrap-tarball
|
%binutils-bootstrap-tarball
|
||||||
%glibc-bootstrap-tarball
|
%glibc-bootstrap-tarball
|
||||||
%gcc-bootstrap-tarball
|
%gcc-bootstrap-tarball
|
||||||
|
@ -300,6 +301,26 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
|
||||||
(license gpl3+)
|
(license gpl3+)
|
||||||
(home-page #f)))
|
(home-page #f)))
|
||||||
|
|
||||||
|
(define %linux-libre-headers-stripped
|
||||||
|
;; The subset of Linux-Libre-Headers that we need.
|
||||||
|
(package (inherit linux-libre-headers)
|
||||||
|
(name (string-append (package-name linux-libre-headers) "-stripped"))
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(outputs '("out"))
|
||||||
|
(arguments
|
||||||
|
`(#:modules ((guix build utils)
|
||||||
|
(guix build make-bootstrap))
|
||||||
|
#:builder
|
||||||
|
(begin
|
||||||
|
(use-modules (guix build utils)
|
||||||
|
(guix build make-bootstrap))
|
||||||
|
|
||||||
|
(let* ((in (assoc-ref %build-inputs "linux-libre-headers"))
|
||||||
|
(out (assoc-ref %outputs "out")))
|
||||||
|
(copy-linux-headers out in)
|
||||||
|
#t))))
|
||||||
|
(inputs `(("linux-libre-headers" ,linux-libre-headers)))))
|
||||||
|
|
||||||
(define %binutils-static
|
(define %binutils-static
|
||||||
;; Statically-linked Binutils.
|
;; Statically-linked Binutils.
|
||||||
(package (inherit binutils)
|
(package (inherit binutils)
|
||||||
|
@ -660,6 +681,10 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
|
||||||
;; A tarball with the statically-linked bootstrap binaries.
|
;; A tarball with the statically-linked bootstrap binaries.
|
||||||
(tarball-package %static-binaries))
|
(tarball-package %static-binaries))
|
||||||
|
|
||||||
|
(define %linux-libre-headers-bootstrap-tarball
|
||||||
|
;; A tarball with the statically-linked Linux-Libre-Headers programs.
|
||||||
|
(tarball-package %linux-libre-headers-stripped))
|
||||||
|
|
||||||
(define %binutils-bootstrap-tarball
|
(define %binutils-bootstrap-tarball
|
||||||
;; A tarball with the statically-linked Binutils programs.
|
;; A tarball with the statically-linked Binutils programs.
|
||||||
(tarball-package %binutils-static-stripped))
|
(tarball-package %binutils-static-stripped))
|
||||||
|
|
Loading…
Reference in New Issue