pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/opensbi



Module Name:    pkgsrc
Committed By:   skrll
Date:           Mon Jun 17 11:20:32 UTC 2024

Added Files:
        pkgsrc/sysutils/opensbi: DESCR Makefile distinfo opensbi-version.mk
            opensbi.mk

Log Message:
Add an OpenSBI meta package


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/opensbi/DESCR \
    pkgsrc/sysutils/opensbi/Makefile pkgsrc/sysutils/opensbi/distinfo \
    pkgsrc/sysutils/opensbi/opensbi-version.mk \
    pkgsrc/sysutils/opensbi/opensbi.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/sysutils/opensbi/DESCR
diff -u /dev/null pkgsrc/sysutils/opensbi/DESCR:1.1
--- /dev/null   Mon Jun 17 11:20:32 2024
+++ pkgsrc/sysutils/opensbi/DESCR       Mon Jun 17 11:20:32 2024
@@ -0,0 +1,11 @@
+The goal of the OpenSBI project is to provide an open-source reference
+implementation of the RISC-V SBI specifications for platform-specific
+firmwares executing in M-mode.
+
+The RISC-V Supervisor Binary Interface (SBI) is the recommended interface
+between:
+
+    - platform-specific firmware running in M-mode and a bootloader, a
+      hypervisor or a general-purpose OS executing in S-mode or HS-mode.
+    - hypervisor running in HS-mode and a bootloader or a general-purpose
+      OS executing in VS-mode.
Index: pkgsrc/sysutils/opensbi/Makefile
diff -u /dev/null pkgsrc/sysutils/opensbi/Makefile:1.1
--- /dev/null   Mon Jun 17 11:20:32 2024
+++ pkgsrc/sysutils/opensbi/Makefile    Mon Jun 17 11:20:32 2024
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2024/06/17 11:20:32 skrll Exp $
+#
+
+.include "../../sysutils/opensbi/opensbi-version.mk"
+
+DISTNAME=      opensbi-${OPENSBI_VERSION}
+CATEGORIES=    sysutils 
+MASTER_SITES=  # empty
+
+MAINTAINER=    port-riscv%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/riscv-software-src/opensbi
+COMMENT=       RISC-V Open Source Supervisor Binary Interface (OpenSBI)
+
+META_PACKAGE=  yes
+
+.include "../../mk/bsd.prefs.mk"
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/opensbi/distinfo
diff -u /dev/null pkgsrc/sysutils/opensbi/distinfo:1.1
--- /dev/null   Mon Jun 17 11:20:32 2024
+++ pkgsrc/sysutils/opensbi/distinfo    Mon Jun 17 11:20:32 2024
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2024/06/17 11:20:32 skrll Exp $
+
+BLAKE2s (opensbi/opensbi-1.4.tar.gz) = 6c05ce8629391e438389133fb33feef09304f8b053f2d78e9a1de12cabbd491d
+SHA512 (opensbi/opensbi-1.4.tar.gz) = 11833ccca1f16ca5d19580862a0f25d303f7696214c47c30f78f221e16fc35f385f4388d96370c4aa8d43f7f7d5a804c8b55dc845bd316421d9d8ad9509b7ba4
+Size (opensbi/opensbi-1.4.tar.gz) = 409903 bytes
Index: pkgsrc/sysutils/opensbi/opensbi-version.mk
diff -u /dev/null pkgsrc/sysutils/opensbi/opensbi-version.mk:1.1
--- /dev/null   Mon Jun 17 11:20:32 2024
+++ pkgsrc/sysutils/opensbi/opensbi-version.mk  Mon Jun 17 11:20:32 2024
@@ -0,0 +1,12 @@
+# $NetBSD: opensbi-version.mk,v 1.1 2024/06/17 11:20:32 skrll Exp $
+
+OPENSBI_DEFAULT_VERSION=       1.4
+
+OPENSBI_VERSION?=              ${OPENSBI_DEFAULT_VERSION}
+
+.if ${OPENSBI_VERSION} != ${OPENSBI_DEFAULT_VERSION}
+DISTINFO_FILE?=        ${.CURDIR}/../../sysutils/opensbi/distinfo-${OPENSBI_VERSION}
+PATCHDIR?=     ${.CURDIR}/../../sysutils/opensbi/patches-${OPENSBI_VERSION}
+.else
+PATCHDIR?=     ${.CURDIR}/../../sysutils/opensbi/patches
+.endif
Index: pkgsrc/sysutils/opensbi/opensbi.mk
diff -u /dev/null pkgsrc/sysutils/opensbi/opensbi.mk:1.1
--- /dev/null   Mon Jun 17 11:20:32 2024
+++ pkgsrc/sysutils/opensbi/opensbi.mk  Mon Jun 17 11:20:32 2024
@@ -0,0 +1,39 @@
+# $NetBSD: opensbi.mk,v 1.1 2024/06/17 11:20:32 skrll Exp $
+
+.include "../../sysutils/opensbi/opensbi-version.mk"
+
+PKGNAME?=              opensbi-${OPENSBI_BOARD}-${OPENSBI_VERSION:S/-/./}
+DISTNAME?=             opensbi-${OPENSBI_VERSION}
+DISTINFO_FILE?=                ${.CURDIR}/../../sysutils/opensbi/distinfo
+CATEGORIES=            sysutils
+EXTRACT_SUFX=          .tar.gz
+
+GITHUB_PROJECT?=       opensbi
+GITHUB_TAG?=           v1.4
+MASTER_SITES?=         ${MASTER_SITE_GITHUB:=riscv-software-src/}
+DIST_SUBDIR?=          ${GITHUB_PROJECT}
+
+TOOL_DEPENDS+=         dtc>=1.4.2:../../sysutils/dtc
+
+COMMENT=               RISC-V Open Source Supervisor Binary Interface (OpenSBI)
+LICENSE=               2-clause-bsd
+
+USE_TOOLS+=            gmake
+
+BUILD_DEPENDS+=                cross-riscv64-none-elf-gcc-[0-9]*:../../cross/riscv64-none-elf-gcc
+
+OPENSBI_ENV+=          CROSS_COMPILE=${PREFIX}/cross-riscv64-none-elf/bin/riscv64-none-elf-
+OPENSBI_ENV+=          PLATFORM=${OPENSBI_PLATFORM}
+
+PYTHON_FOR_BUILD_ONLY= yes
+.include "../../lang/python/tool.mk"
+
+MAKE_ENV+=             ${OPENSBI_ENV}
+
+INSTALLATION_DIRS+=    share/opensbi/${OPENSBI_BOARD}
+
+do-install:
+.for bin in ${OPENSBI_BIN}
+       ${INSTALL_DATA} ${WRKSRC}/build/platform/${OPENSBI_PLATFORM}/firmware/${bin} \
+           ${DESTDIR}${PREFIX}/share/opensbi/${OPENSBI_BOARD}
+.endfor



Home | Main Index | Thread Index | Old Index