gnu: Add support for aarch64's compiled kernel.
authorEfraim Flashner <efraim@flashner.co.il>
Fri, 21 Jul 2017 15:07:19 +0000 (18:07 +0300)
committerEfraim Flashner <efraim@flashner.co.il>
Sun, 23 Jul 2017 20:33:18 +0000 (23:33 +0300)
* gnu/packages/linux.scm (linux-libre)[arguments]: Add to the regex to
find and install the aarch64-linux kernel.
* gnu/system.scm (system-linux-image-file-name): Add entry for aarch64.

gnu/packages/linux.scm
gnu/system.scm

index 94314d3..c116716 100644 (file)
@@ -340,7 +340,7 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration."
                     (kmod   (assoc-ref (or native-inputs inputs) "kmod")))
                ;; Install kernel image, kernel configuration and link map.
                (for-each (lambda (file) (install-file file out))
-                         (find-files "." "^(\\.config|bzImage|zImage|vmlinuz|System\\.map)$"))
+                         (find-files "." "^(\\.config|bzImage|zImage|Image|vmlinuz|System\\.map)$"))
                ;; Install device tree files
                (for-each (lambda (file) (install-file file dtbdir))
                          (find-files "." "\\.dtb$"))
index 998bd68..746c511 100644 (file)
@@ -392,6 +392,7 @@ from the initrd."
   (cond
    ((string-prefix? "arm" (%current-system)) "zImage")
    ((string-prefix? "mips" (%current-system)) "vmlinuz")
+   ((string-prefix? "aarch64" (%current-system)) "Image")
    (else "bzImage")))
 
 (define (operating-system-kernel-file os)