From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ILTdAhDjQmJHeAAAgWs5BA (envelope-from ) for ; Tue, 29 Mar 2022 12:44:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AMWGOw/jQmJEHQAAauVa8A (envelope-from ) for ; Tue, 29 Mar 2022 12:44:31 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6F9F855B0 for ; Tue, 29 Mar 2022 12:44:30 +0200 (CEST) Received: from localhost ([::1]:49340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZ9Kv-0002k2-Jw for larch@yhetil.org; Tue, 29 Mar 2022 06:44:29 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648550671; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=S2VqcIukan3Mfz4cr0FjQz+d9UQmVGxRxHHkGzj4RMo=; b=GWjVRTLUvXxSInek/ng4KGnqTIT0yw75K11TxJL3eQ1JT4ZRaXS0lV2LQaoPvCHMSIZ040 zRwSGIU82VjrjDaBs5oJkxcWqmTD2E/hDGowtJc7nOLM1xEKMnED/xOkv8+mBMIKzko5Oo HYIj4a2OYMWXTmr0DKZkEkhvQ9foksKOX4jUIsothmk4+n64M6sBvHfX1W+DjIaqM+sxWI R+EW/NCV0dLyfO1l/gJJwRla5oZjQDA/SAX9Fa98JSMHfORUKicM06RDr2zDixUqgms+h2 caAA7qBgJ2lS9bRGc0VL9/moYVgWEEoNedXwXvIbOXN+DU/yREqlzQGSngGxqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648550671; a=rsa-sha256; cv=none; b=XIzbZPlVO6GvGuzyT4QsTSeIDcngV6w3eZZnIRTrNbG6AWGhK9IXG/eWryhkReTG8k6Hym TtdH5kuAq13giXF4StmINf+PTrahnLkM81VbQRRRlmf0yFxqXYjjVIDqH0n2rB19N1KMDe IJJxkIMGNntoDAg/PeMRqgh4K8LqkLBMpZWTscnr5mC+WPDiB3EL6SbZ5xLPF1ceW0mg8i AFdcuZvaJNcSU/BAFWWhEZgjDQ8F3Kumg5wOWKrk4t5ml3/FVT3ph2iEzAyW6TSa1wqwZP IpyTK+IJ/vT43kWLXvzBXUmlESoJosERH24c1QF1T78EGdBdiiOctE45tY3V5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Y6q6hd+b; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Y6q6hd+b; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6F9F855B0 X-Spam-Score: 7.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3DeVEyBhb33F * 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))) -- 2.34.0