pkgsrc-WIP-changes archive

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

Add opensbi-sun20i-d1



Module Name:	pkgsrc-wip
Committed By:	Rui-Xiang Guo <rxg%lavabit.com@localhost>
Pushed By:	rxg
Date:		Thu Aug 15 06:10:32 2024 +0800
Changeset:	8e44e4eb0d3ed22bef6b40df3fb0245bc7539bf6

Modified Files:
	Makefile
Added Files:
	opensbi-sun20i-d1/DESCR
	opensbi-sun20i-d1/Makefile
	opensbi-sun20i-d1/PLIST
	opensbi-sun20i-d1/buildlink3.mk
	opensbi-sun20i-d1/distinfo

Log Message:
Add opensbi-sun20i-d1

This package provides OpenSBI as a u-boot payload for the Allwinner D1 SoC
boards.
Use old v1.2 for toc1 format due to size limitation.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8e44e4eb0d3ed22bef6b40df3fb0245bc7539bf6

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

diffstat:
 Makefile                        |  1 +
 opensbi-sun20i-d1/DESCR         |  2 ++
 opensbi-sun20i-d1/Makefile      | 15 +++++++++++++++
 opensbi-sun20i-d1/PLIST         |  2 ++
 opensbi-sun20i-d1/buildlink3.mk | 13 +++++++++++++
 opensbi-sun20i-d1/distinfo      |  5 +++++
 6 files changed, 38 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 4af4c4659c..94d8b9906a 100644
--- a/Makefile
+++ b/Makefile
@@ -2626,6 +2626,7 @@ SUBDIR+=	openmp
 SUBDIR+=	opennurbs
 SUBDIR+=	openra
 SUBDIR+=	openrw-git
+SUBDIR+=	opensbi-sun20i-d1
 SUBDIR+=	openscad
 SUBDIR+=	openscep
 SUBDIR+=	openshot-qt
diff --git a/opensbi-sun20i-d1/DESCR b/opensbi-sun20i-d1/DESCR
new file mode 100644
index 0000000000..88981d7eb3
--- /dev/null
+++ b/opensbi-sun20i-d1/DESCR
@@ -0,0 +1,2 @@
+This package provides OpenSBI as a u-boot payload for the Allwinner D1 SoC
+boards.
diff --git a/opensbi-sun20i-d1/Makefile b/opensbi-sun20i-d1/Makefile
new file mode 100644
index 0000000000..1b2d1b4a24
--- /dev/null
+++ b/opensbi-sun20i-d1/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2024/07/18 08:51:14 rxg Exp $
+
+OPENSBI_VERSION=	1.2
+DISTINFO_FILE=		${.CURDIR}/distinfo
+GITHUB_TAG=		v${OPENSBI_VERSION}
+
+OPENSBI_BOARD=		sun20i-d1
+OPENSBI_PLATFORM=	generic
+
+MAKE_ENV+=		FW_PIC=y
+
+OPENSBI_BIN=		fw_dynamic.bin
+
+.include "../../sysutils/opensbi/opensbi.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/opensbi-sun20i-d1/PLIST b/opensbi-sun20i-d1/PLIST
new file mode 100644
index 0000000000..37d96b1828
--- /dev/null
+++ b/opensbi-sun20i-d1/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2024/07/18 08:51:14 rxg Exp $
+share/opensbi/sun20i-d1/fw_dynamic.bin
diff --git a/opensbi-sun20i-d1/buildlink3.mk b/opensbi-sun20i-d1/buildlink3.mk
new file mode 100644
index 0000000000..ad75fa0e86
--- /dev/null
+++ b/opensbi-sun20i-d1/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2024/07/18 08:51:14 rxg Exp $
+
+BUILDLINK_TREE+=	opensbi-sun20i-d1
+
+.if !defined(OPENSBI_SUN20I_D1_BUILDLINK3_MK)
+OPENSBI_SUN20I_D1_BUILDLINK3_MK:=
+
+BUILDLINK_DEPMETHOD.opensbi-sun20i-d1?=		build
+BUILDLINK_API_DEPENDS.opensbi-sun20i-d1+=	opensbi-sun20i-d1<=1.2
+BUILDLINK_PKGSRCDIR.opensbi-sun20i-d1?=		../../wip/opensbi-sun20i-d1
+.endif	# OPENSBI_SUN20I_D1_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-opensbi-sun20i-d1
diff --git a/opensbi-sun20i-d1/distinfo b/opensbi-sun20i-d1/distinfo
new file mode 100644
index 0000000000..4d797f03ae
--- /dev/null
+++ b/opensbi-sun20i-d1/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (opensbi/opensbi-1.2.tar.gz) = 23baafea66aeb48470f5c44acfa62d5e2fcd7afa56b3f0c889648046a755093e
+SHA512 (opensbi/opensbi-1.2.tar.gz) = b4e870d99ba3b8d0e1fcb6e5a6c3c8345b36a4107c5f321d5bb59336dd683493734dce741940baf103f067a926a163004232cbdf39d98bf49a2a8e9141197967
+Size (opensbi/opensbi-1.2.tar.gz) = 356905 bytes


Home | Main Index | Thread Index | Old Index