Subject: [PATCH 1/9] gnu: Add u-boot-qemu-ppce550.

From: Efraim Flashner <[email-masked]>
Date: Fri, 21 Mar 2025 10:53:02 +0200

* gnu/packages/bootloaders.scm (u-boot-qemu-ppce550): New variable.

Change-Id: I92ec83741a90dc9e0c3bdcbeeab0ff5eb47024bf
---
 gnu/packages/bootloaders.scm | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index fcdd3abbba1..8678e1c480a 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -6,7 +6,7 @@
 ;;; Copyright © 2016-2018, 2021-2023 Marius Bakke <[email-masked]>
 ;;; Copyright © 2016, 2017 Danny Milosavljevic <[email-masked]>
 ;;; Copyright © 2016, 2017 David Craven <[email-masked]>
-;;; Copyright © 2017, 2018, 2020-2024 Efraim Flashner <[email-masked]>
+;;; Copyright © 2017, 2018, 2020-2025 Efraim Flashner <[email-masked]>
 ;;; Copyright © 2018–2022 Tobias Geerinckx-Rice <[email-masked]>
 ;;; Copyright © 2019 nee <[email-masked]>
 ;;; Copyright © 2019 Mathieu Othacehe <[email-masked]>
@@ -1330,6 +1330,26 @@ (define-public u-boot-qemu-arm64
                        ;; details.
                        #:configs '("# CONFIG_FIT_SIGNATURE is not set")))
 
+(define-public u-boot-qemu-ppce550
+  (let ((base
+          (make-u-boot-package "qemu-ppce500" "powerpc-linux-gnu"
+                               ;; Disable features that require OpenSSL due
+                               ;; to GPL/Openssl license incompatibilities.
+                               ;; See https://bugs.gnu.org/34717 for
+                               ;; details.
+                               #:configs '("# CONFIG_FIT_SIGNATURE is not set"))))
+    (package
+      (inherit base)
+      (arguments
+       (substitute-keyword-arguments (package-arguments base)
+         ((#:phases phases #~'%standard-phases)
+          #~(modify-phases #$phases
+              (replace 'install
+                (lambda _
+                  (mkdir-p (string-append #$output "/share/qemu"))
+                  (copy-file "u-boot" (string-append
+                                        #$output "/share/qemu/u-boot.e500")))))))))))
+
 (define-public u-boot-qemu-riscv64
   (make-u-boot-package "qemu-riscv64" "riscv64-linux-gnu"))
 
-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted