From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 eJwRGyoCQmIpBgAAgWs5BA (envelope-from ) for ; Mon, 28 Mar 2022 20:44:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uI9UGCoCQmKZOAEA9RJhRA (envelope-from ) for ; Mon, 28 Mar 2022 20:44:58 +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 7F79B29F8A for ; Mon, 28 Mar 2022 20:44:57 +0200 (CEST) Received: from localhost ([::1]:53844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYuMK-0000wu-Ll for larch@yhetil.org; Mon, 28 Mar 2022 14:44:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYuLS-0000uI-Bc for guix-patches@gnu.org; Mon, 28 Mar 2022 14:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nYuLS-0006Qv-0y for guix-patches@gnu.org; Mon, 28 Mar 2022 14:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nYuLR-0001WM-VX for guix-patches@gnu.org; Mon, 28 Mar 2022 14:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54615] [PATCH 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:44:01 +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.16484930065788 (code B ref 54615); Mon, 28 Mar 2022 18:44:01 +0000 Received: (at 54615) by debbugs.gnu.org; 28 Mar 2022 18:43:26 +0000 Received: from localhost ([127.0.0.1]:59197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYuKs-0001VC-77 for submit@debbugs.gnu.org; Mon, 28 Mar 2022 14:43:26 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:51782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYuKq-0001Uw-92 for 54615@debbugs.gnu.org; Mon, 28 Mar 2022 14:43:25 -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=yyISSW7Eb1qsGVJmZcZMEKHDl5IYFskRS4ErdVCMQiE=; b=IPhTzFgYEALzF0aNw0CUdrhXUk /CPKsLOmtAbwflOmsCQOaqVLikQCg9i9fPb/rmmpmEIIcl7LTdszpwb/9z2lpCky6afD6EsVXgWvd 8DbrRrP/qh/U7ovOXSpZ4go1G2Gs4T4U9fbixkKh0/aNUkk5Wdad5ZL1PH79tCy6eLD+SLvzO/4lL xsi9Dwz1uOJIpZTdmuCxuOnBe/Lt1te7uOrrJqMKIh4r289YY8JI7oJ41pOs8ztkS7zUT020XKXk4 JwJXsS2BSGMDTqKKj3OXBorQdW5ypZzCeP05mlfZTWV/39/ziy98xqxovl536I98fFvxgCMd3VDDM i3lpMItQ==; Received: from [192.168.2.1] (port=7222 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 1nYuKn-000OKi-8f; Tue, 29 Mar 2022 00:13:21 +0530 From: Arun Isaac Date: Tue, 29 Mar 2022 00:13:19 +0530 Message-Id: <20220328184319.25281-2-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220328184319.25281-1-arunisaac@systemreboot.net> References: <20220328184319.25281-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=1648493098; 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=yyISSW7Eb1qsGVJmZcZMEKHDl5IYFskRS4ErdVCMQiE=; b=KYm95FEwvukhpAjJNf2kzPnOKVaXX4EJhTykHSaQmzQQsn79QvUKVc0ER92I7cut0YqOTU WAMUbA8lQSW3ZJSjRF0JqbQcj9JcaqbGw7k7CjiQG8VwDiNsvFohLyCnWt9Tpu4vh6ZmcG BhtHrEE8iKi1bLlgwyl3q0YgMTF+ueCBokGkHXJQWhg4xbVyYEj+Q3yvBXZhaaZ/R0O0nQ vB72bY261qa/Y6b/yqJLcaSe4TUKjBmVtQL/kSDP9SIW2Et4P3CSJpcDzX72Lrj53crib3 TlWvWDXaeZM1WOW9dji+XjncK5GKNOHER3FMLuEbkRJ4LiPtzbZqYKCREm0xDg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648493098; a=rsa-sha256; cv=none; b=b8AexrjAkTiN9yWP50FIjbnOjw4Ro3yyetTvB1onJA6AyRaN/ORsUvGvxEQJu//+hl/6+d a3Inw7JmRKE+6TTLq4bbt4U8/mlwLShDer+E94P66Hi9DYxfHe/KhKIWnhF4tupG/zzMTE 7jaUfeTiMIFri0e//SEQseDjfxqYrULYFiCO0OHHcBr3w9xJUpf3MQ8COe2VRganTTtNvE 2Hgtm0GUYhXOyUuIQnKsbt8IC5PnvBYVDw88RoT63jovK38A4+qwwt56G1qY4b7TXXbWjf Pp35OxapVikJuUf/9urp7LS+CC0nYQ2C9AZMiZmHTOaf+4EWLXappIMNahnZqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=IPhTzFgY; 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.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=IPhTzFgY; 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: 7F79B29F8A X-Spam-Score: 7.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: psK7uUVW9JPx * gnu/packages/virtualization.scm (riscv-pk): New variable. --- gnu/packages/virtualization.scm | 48 +++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 9c86670ce7..1f83addb1b 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -2365,3 +2365,51 @@ (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 + `(#: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") + #:phases + (modify-phases %standard-phases + (add-before 'configure 'pre-configure + (lambda _ + ;; Building directly in the source tree is not supported. So, + ;; create a build directory and make configure accessible from + ;; there. + (mkdir-p "build") + (chdir "build") + (symlink "../configure" "configure"))) + (delete 'strip)))) + (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