pkgsrc-WIP-changes archive

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

u-boot-mangopi-mq-pro: Change d1-wip to d1-2022-10-31



Module Name:	pkgsrc-wip
Committed By:	Rui-Xiang Guo <rxg%lavabit.com@localhost>
Pushed By:	rxg
Date:		Thu Oct 3 09:16:11 2024 +0800
Changeset:	36d2977215e159b20eff8e5c9616df34404bbb0b

Modified Files:
	u-boot-mangopi-mq-pro/Makefile
Added Files:
	u-boot-mangopi-mq-pro/distinfo
	u-boot-mangopi-mq-pro/files/mangopi_mq_pro_defconfig
	u-boot-mangopi-mq-pro/patches/patch-board_sunxi_board-riscv.c

Log Message:
u-boot-mangopi-mq-pro: Change d1-wip to d1-2022-10-31

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

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

diffstat:
 u-boot-mangopi-mq-pro/Makefile                          | 17 +++++++++++++----
 u-boot-mangopi-mq-pro/distinfo                          |  6 ++++++
 u-boot-mangopi-mq-pro/files/mangopi_mq_pro_defconfig    | 10 ++++++++++
 .../patches/patch-board_sunxi_board-riscv.c             | 16 ++++++++++++++++
 4 files changed, 45 insertions(+), 4 deletions(-)

diffs:
diff --git a/u-boot-mangopi-mq-pro/Makefile b/u-boot-mangopi-mq-pro/Makefile
index 37ee54071b..b696f4e206 100644
--- a/u-boot-mangopi-mq-pro/Makefile
+++ b/u-boot-mangopi-mq-pro/Makefile
@@ -1,10 +1,15 @@
 # $NetBSD$
 
-GIT_REPO=	https://github.com/smaeul/u-boot
-GIT_BRANCH=	d1-wip
+DISTNAME=	${GITHUB_PROJECT}-d1-2022-10-31
+MASTER_SITES=	${MASTER_SITE_GITHUB:=smaeul/}
+GITHUB_PROJECT=	u-boot
+GITHUB_TAG=	refs/tags/${DISTNAME:S/${GITHUB_PROJECT}-//}
+EXTRACT_SUFX=	.tar.gz
+DISTINFO_FILE=	${.CURDIR}/distinfo
+PATCHDIR=	${.CURDIR}/patches
 
 UBOOT_TARGET=		mangopi-mq-pro
-UBOOT_VERSION=		2024.01
+UBOOT_VERSION=		2022.10
 UBOOT_CONFIG=		mangopi_mq_pro_defconfig
 UBOOT_BIN=		u-boot-sunxi-with-spl.bin
 
@@ -12,7 +17,11 @@ UBOOT_INSTALLBOOT_PLIST=	installboot.plist
 
 MAKE_ENV+=	OPENSBI=${LOCALBASE}/share/opensbi/sun20i-d1/fw_dynamic.bin
 
+WRKSRC=		${WRKDIR}/${DISTNAME}
+
+post-extract:
+	${CP} ${FILESDIR}/mangopi_mq_pro_defconfig ${WRKSRC}/configs
+
 .include "../../sysutils/opensbi-sun20i-d1/buildlink3.mk"
 .include "../../sysutils/u-boot/u-boot-riscv64.mk"
-.include "../../wip/mk/git-package.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/u-boot-mangopi-mq-pro/distinfo b/u-boot-mangopi-mq-pro/distinfo
new file mode 100644
index 0000000000..d253765dc3
--- /dev/null
+++ b/u-boot-mangopi-mq-pro/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (u-boot-d1-2022-10-31.tar.gz) = a04ab1bdab918399dbccbfda7f7c91f6f173db96957737873fd41da51e69dcf9
+SHA512 (u-boot-d1-2022-10-31.tar.gz) = 0922957b50ed8aff7e0864e7aaee67e2c9978297a688d0122fa9980bc9976ef20182bc1056d2a85ad36b9a10f2ce154f3d2f7124f16584a4dac173a46e23367a
+Size (u-boot-d1-2022-10-31.tar.gz) = 23849460 bytes
+SHA1 (patch-board_sunxi_board-riscv.c) = be6c791520bb1a9001ba65e976e44b975a2f29a8
diff --git a/u-boot-mangopi-mq-pro/files/mangopi_mq_pro_defconfig b/u-boot-mangopi-mq-pro/files/mangopi_mq_pro_defconfig
new file mode 100644
index 0000000000..69d94c6d48
--- /dev/null
+++ b/u-boot-mangopi-mq-pro/files/mangopi_mq_pro_defconfig
@@ -0,0 +1,10 @@
+CONFIG_RISCV=y
+CONFIG_DEFAULT_DEVICE_TREE="sun20i-d1-mangopi-mq-pro"
+CONFIG_TARGET_SUN20I_D1=y
+CONFIG_ARCH_RV64I=y
+CONFIG_RISCV_SMODE=y
+# CONFIG_SPL_SMP is not set
+CONFIG_SYS_SPL_MALLOC=y
+CONFIG_SPL_OPENSBI_SCRATCH_OPTIONS=0x0
+# CONFIG_SYS_I2C_MVTWSI is not set
+CONFIG_DM_REGULATOR_FIXED=y
diff --git a/u-boot-mangopi-mq-pro/patches/patch-board_sunxi_board-riscv.c b/u-boot-mangopi-mq-pro/patches/patch-board_sunxi_board-riscv.c
new file mode 100644
index 0000000000..187507a639
--- /dev/null
+++ b/u-boot-mangopi-mq-pro/patches/patch-board_sunxi_board-riscv.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+--- board/sunxi/board-riscv.c.orig	2024-10-02 22:48:51.254018155 +0000
++++ board/sunxi/board-riscv.c
+@@ -202,7 +202,11 @@ int spl_board_init_f(void)
+ 	       csr_read(CSR_MCOR),
+ 	       csr_read(CSR_MHINT));
+ 
++#ifdef CONFIG_RISCV_MAEE
+ 	csr_set(CSR_MXSTATUS, 0x638000);
++#else
++	csr_set(CSR_MXSTATUS, 0x438000);
++#endif
+ 	csr_write(CSR_MCOR, 0x70013);
+ 	csr_write(CSR_MHCR, 0x11ff);
+ 	csr_write(CSR_MHINT, 0x16e30c);


Home | Main Index | Thread Index | Old Index