From: nomble@palism.com
To: 37741@debbugs.gnu.org
Cc: Vagrant Cascadian <vagrant@debian.org>,
Danny Milosavljevic <dannym@scratchpost.org>,
Caliph Nomble <nomble@palism.com>
Subject: [bug#37741] [PATCH 2/3] gnu: Add arm-trusted-firmware-rk3399.
Date: Mon, 14 Oct 2019 02:01:36 -0400 [thread overview]
Message-ID: <20191014060136.31144-1-nomble@palism.com> (raw)
In-Reply-To: <20191014001407.28367-1-nomble@palism.com>
From: Caliph Nomble <nomble@palism.com>
* gnu/packages/bootloaders.scm (arm-trusted-firmware-rk3399): New exported
variable.
Signed-off-by: Caliph Nomble <nomble@palism.com>
---
gnu/packages/firmware.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index c473ccd920..636b1f4746 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -476,6 +476,29 @@ such as:
(base32
"0vqhwqqh8h9qlkpybg2v94911091c1418bc4pnzq5fd7zf0fjkf8")))))))
+(define-public arm-trusted-firmware-rk3399
+ (let ((base (make-arm-trusted-firmware "rk3399")))
+ (package
+ (inherit base)
+ (name "arm-trusted-firmware-rk3399")
+ (arguments
+ (substitute-keyword-arguments (package-arguments base)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'install 'install-elf
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (elf (find-files "." ".*\\.elf$")))
+ (for-each
+ (lambda (file)
+ (install-file file out))
+ elf))
+ #t))))))
+ (native-inputs
+ `(("cross32-gcc" ,(cross-gcc "arm-none-eabi"))
+ ("cross32-binutils", (cross-binutils "arm-none-eabi"))
+ ,@(package-native-inputs base))))))
+
(define-public rk3399-cortex-m0
(package
(name "rk3399-cortex-m0")
--
2.21.0
next prev parent reply other threads:[~2019-10-14 6:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-14 0:14 [bug#37741] [PATCH 0/3] Update u-boot to 2019.10 and add u-boot-rockpro64-rk3399 nomble
2019-10-14 6:01 ` [bug#37741] [PATCH 1/3] gnu: u-boot: Update to 2019.10 nomble
2019-10-15 4:07 ` Vagrant Cascadian
2019-10-14 6:01 ` nomble [this message]
2019-10-15 4:02 ` [bug#37741] [PATCH 2/3] gnu: Add arm-trusted-firmware-rk3399 Vagrant Cascadian
2019-10-15 6:38 ` Kever Yang
2019-10-17 5:46 ` Vagrant Cascadian
2019-10-17 6:43 ` Kever Yang
2019-10-18 19:22 ` Vagrant Cascadian
2019-10-14 6:01 ` [bug#37741] [PATCH 3/3] gnu: Add u-boot-rockpro64-rk3399 nomble
2019-10-18 20:44 ` bug#37741: [PATCH 0/3] Update u-boot to 2019.10 and add u-boot-rockpro64-rk3399 Vagrant Cascadian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191014060136.31144-1-nomble@palism.com \
--to=nomble@palism.com \
--cc=37741@debbugs.gnu.org \
--cc=dannym@scratchpost.org \
--cc=vagrant@debian.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).