From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:35561) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJtRh-0003wu-2Q for guix-patches@gnu.org; Mon, 14 Oct 2019 02:03:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJtRf-00065R-13 for guix-patches@gnu.org; Mon, 14 Oct 2019 02:03:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57106) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJtRe-00065G-So for guix-patches@gnu.org; Mon, 14 Oct 2019 02:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iJtRe-0006qg-O9 for guix-patches@gnu.org; Mon, 14 Oct 2019 02:03:02 -0400 Subject: [bug#37741] [PATCH 2/3] gnu: Add arm-trusted-firmware-rk3399. Resent-Message-ID: From: nomble@palism.com Date: Mon, 14 Oct 2019 02:01:36 -0400 Message-Id: <20191014060136.31144-1-nomble@palism.com> In-Reply-To: <20191014001407.28367-1-nomble@palism.com> References: <20191014001407.28367-1-nomble@palism.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37741@debbugs.gnu.org Cc: Vagrant Cascadian , Danny Milosavljevic , Caliph Nomble From: Caliph Nomble * gnu/packages/bootloaders.scm (arm-trusted-firmware-rk3399): New exported variable. Signed-off-by: Caliph Nomble --- 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