diff mbox series

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

Message ID 222fe3be44b74b914e974eceb9d2543fbef63bc4.1678277362.git.roman@burningswell.com
State New
Headers show
Series Change patch order | expand

Commit Message

Roman Scherer March 8, 2023, 12:13 p.m. UTC
* gnu/packages/bootloaders.scm (u-boot-apple-m1): New variable.
---
 gnu/packages/bootloaders.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
diff mbox series

Patch

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