From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2K3UBCgFQmItBgAAgWs5BA (envelope-from ) for ; Mon, 28 Mar 2022 20:57:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wF5iASgFQmK3rQAAauVa8A (envelope-from ) for ; Mon, 28 Mar 2022 20:57:44 +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 C5F6B1B4CD for ; Mon, 28 Mar 2022 20:57:43 +0200 (CEST) Received: from localhost ([::1]:60408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYuYg-0006Ob-JJ for larch@yhetil.org; Mon, 28 Mar 2022 14:57:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYuY3-000652-K3 for guix-patches@gnu.org; Mon, 28 Mar 2022 14:57:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37080) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nYuY3-000053-8L for guix-patches@gnu.org; Mon, 28 Mar 2022 14:57:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nYuY3-0001sH-7w for guix-patches@gnu.org; Mon, 28 Mar 2022 14:57:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54615] [PATCH v2 2/2] gnu: Add riscv-pk. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 28 Mar 2022 18:57:03 +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: 54615@debbugs.gnu.org Cc: Arun Isaac , Efraim Flashner Received: via spool by 54615-submit@debbugs.gnu.org id=B54615.16484937667122 (code B ref 54615); Mon, 28 Mar 2022 18:57:03 +0000 Received: (at 54615) by debbugs.gnu.org; 28 Mar 2022 18:56:06 +0000 Received: from localhost ([127.0.0.1]:59208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYuX8-0001qh-4P for submit@debbugs.gnu.org; Mon, 28 Mar 2022 14:56:06 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:51786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYuX4-0001pq-0z for 54615@debbugs.gnu.org; Mon, 28 Mar 2022 14:56:04 -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=fiLE+Zc9yERwOmiga53K/0DJ7IfCaDeh4ryHnz//+7Q=; b=OYSGT/iEtUuujsfJULOZMn0KX8 bq7ouAI//nePKZ3/wq3rbr7uQnyxvL4rwNfUzKFmtS6GmOfz0eccVWOchEwnmb9elrCag/bYInQhY wPoAcmgLeIK3hxsKDBdHXgp/G52Q+VbyruH6DNMAwtsf+A4l44R7fkvs7N8ZZ/NB/swOWWuRJDZOm nRfspKEZac1RJDMrXnYQhzrIb4iahFWfSR1Aj4XGpeejh8TI9QWtIAlc+CrHGvL3LH0zr5eumZq8H XJoLoklHdXZtiWqSvdjrXXpNQNLJHeesVo+FrzWLTB8Ht6enYMwuSL8KD/GQpnZq2XR8ak3hrxCFR PkmjXceg==; Received: from [192.168.2.1] (port=6566 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 1nYuX1-000OL2-Ab; Tue, 29 Mar 2022 00:25:59 +0530 From: Arun Isaac Date: Tue, 29 Mar 2022 00:25:57 +0530 Message-Id: <20220328185557.27310-3-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220328185557.27310-1-arunisaac@systemreboot.net> References: <20220328185557.27310-1-arunisaac@systemreboot.net> 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=1648493863; 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=fiLE+Zc9yERwOmiga53K/0DJ7IfCaDeh4ryHnz//+7Q=; b=BalQLCDSE869xeX8ViGlF9iolzMfORx2Dt7FPWU8ztHPr51XukOzZSaIXTuQoaLtpR+gm4 viHdrLMOzN2pfzCapZqawyDca/kfk1aWKO1e392nU69/0HWdalDYMZTXh++oJzKdIKPUQ8 NRmhzG+irQrpp3lDARKbwuzRVzSaJ+g7M/mPXrK6FpAjjwO48h+MQ+HnlkFjb8Pi8MxIsv t3m8v2/VJaj7FRFL3XcuB2QhDXq5rPUOVr9idh3IhCDAWdwjrE5aMAKcLOeRGwUuzvObpl SJ8KUG4RPOXNlG1OfZLNzklBr+v7G17aw/huRGyzw+QBH9CGfAet96I6Ox3c+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648493863; a=rsa-sha256; cv=none; b=V/fe1QK/NiYuizZgd7WtrWJbNvOkqUxKGJW9EAq0rBo88kM7g4tVV+Oir88Hqnl2LzIEvk cAPGHccNpopXD/pMV3EvWsxWHQ3fNW5c09fClT9CAZ4xDQedmTUdrXdvmmyr9HJ7Nynrge 5Obb3C6//l6w9rpkBnYtxaf0uFJlyLAcTvusDUPZpZ5FOKqCAobB3tDQsFuDOLjeCBjrib BkI7ptISKiwdTHMeWgLptd9NKKvpRru66cwp4jy2LcZWWpgXGZx48xj5iQKWBPZSY3n2Gs WWCKlYHzCR+icN9LkHfZ15hfRo3hRXeWtpgpO09E1bmPCjFZXHc4Jz3kmMns/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b="OYSGT/iE"; 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: 6.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b="OYSGT/iE"; 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: C5F6B1B4CD X-Spam-Score: 6.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: NNJBTu3HDBdL * gnu/packages/virtualization.scm (riscv-pk): New variable. --- gnu/packages/virtualization.scm | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 9c86670ce7..5904f274f5 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -2365,3 +2365,41 @@ (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 + `(#:out-of-source? #t + #:make-flags (list (string-append "INSTALLDIR=" + (assoc-ref %outputs "out"))) + ;; 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