Browse Source

distro: Linux-Libre: Set $ARCH based on the actual system type.

* distro/packages/linux.scm (linux-libre-headers): Set $ARCH based on
  the `system' keyword argument.
gn-latest-20200428
Ludovic Courtès 9 years ago
parent
commit
45298f8fd2
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      distro/packages/linux.scm

+ 7
- 2
distro/packages/linux.scm View File

@ -32,8 +32,13 @@
(define-public linux-libre-headers
(let* ((version* "3.3.8")
(build-phase
'(lambda* (#:key outputs #:allow-other-keys)
(setenv "ARCH" "x86_64") ; XXX
'(lambda* (#:key system #:allow-other-keys)
(let ((arch (car (string-split system #\-))))
(setenv "ARCH"
(cond ((string=? arch "i686") "i386")
(else arch)))
(format #t "`ARCH' set to `~a'~%" (getenv "ARCH")))
(and (zero? (system* "make" "defconfig"))
(zero? (system* "make" "mrproper" "headers_check")))))
(install-phase


Loading…
Cancel
Save