diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2014-07-07 22:50:45 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2014-07-08 00:12:30 +0200 |
| commit | ac47a7c240955bd7cc23179e2cb95fed207d98ba (patch) | |
| tree | d3cbf8640622d189da43d870f0c282094a0da516 /gnu | |
| parent | fa40e4d4ec92222fa68cb9694812a310344cc4f0 (diff) | |
gnu: linux-libre: Use the GNU + Freedo boot logo.
* gnu/packages/linux.scm (%boot-logo-patch): New variable.
(linux-libre)[build-phase]: Apply it.
[native-inputs]: Add it.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/linux.scm | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 841ec581d9b..a6a032cd2d5 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm | |||
| @@ -158,10 +158,24 @@ | |||
| 158 | `insmod', `lsmod', and more.") | 158 | `insmod', `lsmod', and more.") |
| 159 | (license gpl2+))) | 159 | (license gpl2+))) |
| 160 | 160 | ||
| 161 | (define %boot-logo-patch | ||
| 162 | ;; Linux-Libre boot logo featuring Freedo and a gnu. | ||
| 163 | (origin | ||
| 164 | (method url-fetch) | ||
| 165 | (uri (string-append "http://www.fsfla.org/svn/fsfla/software/linux-libre/" | ||
| 166 | "lemote/gnewsense/branches/3.15/100gnu+freedo.patch")) | ||
| 167 | (sha256 | ||
| 168 | (base32 | ||
| 169 | "1hk9swxxc80bmn2zd2qr5ccrjrk28xkypwhl4z0qx4hbivj7qm06")))) | ||
| 170 | |||
| 161 | (define-public linux-libre | 171 | (define-public linux-libre |
| 162 | (let* ((version "3.15") | 172 | (let* ((version "3.15") |
| 163 | (build-phase | 173 | (build-phase |
| 164 | '(lambda* (#:key system #:allow-other-keys #:rest args) | 174 | '(lambda* (#:key system inputs #:allow-other-keys #:rest args) |
| 175 | ;; Apply the neat patch. | ||
| 176 | (system* "patch" "-p1" "--batch" | ||
| 177 | "-i" (assoc-ref inputs "patch/freedo+gnu")) | ||
| 178 | |||
| 165 | (let ((arch (car (string-split system #\-)))) | 179 | (let ((arch (car (string-split system #\-)))) |
| 166 | (setenv "ARCH" | 180 | (setenv "ARCH" |
| 167 | (cond ((string=? arch "i686") "i386") | 181 | (cond ((string=? arch "i686") "i386") |
| @@ -226,7 +240,8 @@ | |||
| 226 | (build-system gnu-build-system) | 240 | (build-system gnu-build-system) |
| 227 | (native-inputs `(("perl" ,perl) | 241 | (native-inputs `(("perl" ,perl) |
| 228 | ("bc" ,bc) | 242 | ("bc" ,bc) |
| 229 | ("module-init-tools" ,module-init-tools))) | 243 | ("module-init-tools" ,module-init-tools) |
| 244 | ("patch/freedo+gnu" ,%boot-logo-patch))) | ||
| 230 | (arguments | 245 | (arguments |
| 231 | `(#:modules ((guix build gnu-build-system) | 246 | `(#:modules ((guix build gnu-build-system) |
| 232 | (guix build utils) | 247 | (guix build utils) |
