From patchwork Tue Mar 29 10:43:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 1233 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C6F5627BBEA; Tue, 29 Mar 2022 11:44:29 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8CC3027BBE9 for ; Tue, 29 Mar 2022 11:44:29 +0100 (BST) Received: from localhost ([::1]:49340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZ9Ku-0002k2-MU for patchwork@mira.cbaines.net; Tue, 29 Mar 2022 06:44:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZ9KW-0002ip-2t for guix-patches@gnu.org; Tue, 29 Mar 2022 06:44:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37857) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZ9KU-0002BD-B1 for guix-patches@gnu.org; Tue, 29 Mar 2022 06:44:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZ9KU-0001FS-8d for guix-patches@gnu.org; Tue, 29 Mar 2022 06:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54615] [PATCH v3 2/2] gnu: Add riscv-pk. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Mar 2022 10:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54615 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos , Arun Isaac , 54615@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 54615-submit@debbugs.gnu.org id=B54615.16485505964728 (code B ref 54615); Tue, 29 Mar 2022 10:44:02 +0000 Received: (at 54615) by debbugs.gnu.org; 29 Mar 2022 10:43:16 +0000 Received: from localhost ([127.0.0.1]:59986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZ9Jj-0001E6-NE for submit@debbugs.gnu.org; Tue, 29 Mar 2022 06:43:16 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:51796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZ9Jh-0001Dp-0p for 54615@debbugs.gnu.org; Tue, 29 Mar 2022 06:43:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=S2VqcIukan3Mfz4cr0FjQz+d9UQmVGxRxHHkGzj4RMo=; b=Y6q6hd+bvhVdyYaDo36xczS3Gi nnlfenaOi257vEhPcVp3seGwQrszkFdatsvv9Esy6BeGXiHP0jNVRtFXRc8y3dcyMbqjVxnE6BXfq CxtRbNIm8RskZKIpy90dFEW3fT3SrlXe+ByNG7JEMALQbVw9fqym9+niwD7qoJpe69kdHpSewhv2i friEY9DjfB+i19UrcY91ho47hQVAzTE0Pr8+XjL8JfjccliktWjv0fhG7rsZjWRLRRg22blPhux83 +1Y5pCkDsdDZjKmxOPt6K7aOEopYcXMrn2iYXJK0WotIQhHt5T5rPLQM8jnHcndLBrqGrKqH3qc5g DJhzpgEw==; Received: from [192.168.2.1] (port=6060 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1nZ9JZ-000Ql6-Ht; Tue, 29 Mar 2022 16:13:05 +0530 From: Arun Isaac Date: Tue, 29 Mar 2022 16:13:03 +0530 Message-Id: <20220329104303.31212-2-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.34.0 In-Reply-To: <73d7e30a2341d85c58abcf293d41aaa970ba17bd.camel@telenet.be> References: <73d7e30a2341d85c58abcf293d41aaa970ba17bd.camel@telenet.be> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/virtualization.scm (riscv-pk): New variable. --- gnu/packages/virtualization.scm | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 4c0f02154c..a058e59f6b 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -2365,3 +2365,42 @@ (define-public python-transient "@code{transient} is a wrapper for QEMU allowing the creation of virtual machines with shared folder, ssh, and disk creation support.") (license license:expat))) + +(define-public riscv-pk + (package + (name "riscv-pk") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/riscv-software-src/riscv-pk") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1cc0rz4q3a1zw8756b8yysw8lb5g4xbjajh5lvqbjix41hbdx6xz")))) + (build-system gnu-build-system) + (arguments + (list #:out-of-source? #t + ;; riscv-pk can only be built for riscv64. + #:target "riscv64-linux-gnu" + #:make-flags #~(list (string-append "INSTALLDIR=" #$output)) + ;; Add flags to keep symbols fromhost and tohost. These symbols are + ;; required for the correct functioning of pk. + #:strip-flags #~(list "--strip-unneeded" + "--keep-symbol=fromhost" + "--keep-symbol=tohost" + "--enable-deterministic-archives"))) + (home-page "https://github.com/riscv-software-src/riscv-pk") + (synopsis "RISC-V Proxy Kernel") + (description "The RISC-V Proxy Kernel, @command{pk}, is a lightweight +application execution environment that can host statically-linked RISC-V ELF +binaries. It is designed to support tethered RISC-V implementations with +limited I/O capability and thus handles I/O-related system calls by proxying +them to a host computer. + +This package also contains the Berkeley Boot Loader, @command{bbl}, which is a +supervisor execution environment for tethered RISC-V systems. It is designed +to host the RISC-V Linux port.") + (license license:bsd-3)))