summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2023-01-07 20:55:58 +0100
committerMarius Bakke <marius@gnu.org>2023-01-07 21:04:27 +0100
commitd15972194aaef17fd1f7fd713d235c70794c9d4f (patch)
treee82cb869e151dfaa26ced287353e0690f68af597 /gnu/packages
parentb435f631a6a8f396c6c466f1d85e0736f5c3032d (diff)
downloadguix-d15972194aaef17fd1f7fd713d235c70794c9d4f.tar.gz
gnu: ipxe: Enable syslinux only on i686-linux and x86_64-linux.
* gnu/packages/bootloaders.scm (ipxe)[native-inputs]: Conditionally add
SYSLINUX.
[arguments]: Adjust accordingly.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/bootloaders.scm16
1 files changed, 11 insertions, 5 deletions
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 3dc5815898..caa8f0bb8d 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -1555,10 +1555,12 @@ order to add a suitable bootloader menu entry.")
 
                   ;; cdrtools' mkisofs will silently ignore a missing isolinux.bin!
                   ;; Luckily xorriso is more strict.
-                  (string-append "ISOLINUX_BIN=" syslinux
-                                 "/share/syslinux/isolinux.bin")
-                  (string-append "SYSLINUX_MBR_DISK_PATH=" syslinux
-                                 "/share/syslinux/isohdpfx.bin")
+                  #$@(if (or (target-x86-64?) (target-x86?))
+                         '((string-append "ISOLINUX_BIN=" syslinux
+                                          "/share/syslinux/isolinux.bin")
+                           (string-append "SYSLINUX_MBR_DISK_PATH=" syslinux
+                                          "/share/syslinux/isohdpfx.bin"))
+                         '())
 
                   ;; Build reproducibly.
                   (string-append "BUILD_ID_CMD=echo -n " (build-id #$output))
@@ -1611,7 +1613,11 @@ order to add a suitable bootloader menu entry.")
               (lambda _ (chdir ".."))))
         #:tests? #f))                  ; no test suite
       (native-inputs
-       (list perl syslinux xorriso))
+       (append (if (or (target-x86-64?) (target-x86?))
+                   ;; Syslinux only supports i686 and x86_64.
+                   (list syslinux)
+                   '())
+               (list perl xorriso)))
       (home-page "https://ipxe.org")
       (synopsis "PXE-compliant network boot firmware")
       (description "iPXE is a network boot firmware.  It provides a full PXE