Subject: [bug#61959] [PATCH v4 2/7] gnu: Add u-boot-apple-m1.

From: Roman Scherer <[email-masked]>
Date: Wed, 8 Mar 2023 13:13:45 +0100

* gnu/packages/bootloaders.scm (u-boot-apple-m1): New variable.
---
 gnu/packages/bootloaders.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index aa2fcc03dd..fc4ce4d908 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -1032,6 +1032,29 @@ (define-public u-boot-am335x-boneblack
 (define-public u-boot-am335x-evm
   (make-u-boot-package "am335x_evm" "arm-linux-gnueabihf"))
 
+(define-public u-boot-apple-m1
+  (let ((base (make-u-boot-package "apple_m1" "aarch64-linux-gnu"))
+        (commit "54409548c3aa8cf4820f1bda69a26bb603a0a5a4"))
+    (package/inherit base
+      (version (git-version "2022.10-1" "0" commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/AsahiLinux/u-boot")
+               (commit commit)))
+         (file-name (git-file-name (package-name base) version))
+         (sha256
+          (base32 "1m1w6ajzsfpb59abncz3sa9b1waqjsnh2vm7js2n22xiw4km7nzx"))))
+      (arguments
+       (substitute-keyword-arguments (package-arguments base)
+         ((#:phases phases '%standard-phases)
+          #~(modify-phases #$phases
+              (delete 'disable-tools-libcrypto)))))
+      (native-inputs
+       (modify-inputs (package-native-inputs base)
+         (prepend libressl))))))
+
 (define*-public (make-u-boot-sunxi64-package board triplet
                                              #:key defconfig configs)
   (let ((base (make-u-boot-package
-- 
2.39.1