pkgsrc-WIP-changes archive

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

Add u-boot-mangopi-mq-pro



Module Name:	pkgsrc-wip
Committed By:	Rui-Xiang Guo <rxg%lavabit.com@localhost>
Pushed By:	rxg
Date:		Thu Jul 18 17:33:45 2024 +0800
Changeset:	1e879bfe2db5d318407842ef42d3304b418a7e5e

Modified Files:
	Makefile
Added Files:
	u-boot-mangopi-mq-pro/DESCR
	u-boot-mangopi-mq-pro/Makefile
	u-boot-mangopi-mq-pro/PLIST
	u-boot-mangopi-mq-pro/files/installboot.plist

Log Message:
Add u-boot-mangopi-mq-pro

U-Boot is a bootloader for embedded boards based on PowerPC, ARM, MIPS and
several other processors, which can be installed in a boot ROM and used to
initialize and test the hardware or to download and run application code.

This package provides U-Boot for the MangoPi MQ Pro board.

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

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

diffstat:
 Makefile                                      |  1 +
 u-boot-mangopi-mq-pro/DESCR                   |  5 +++
 u-boot-mangopi-mq-pro/Makefile                | 16 +++++++++
 u-boot-mangopi-mq-pro/PLIST                   |  2 ++
 u-boot-mangopi-mq-pro/files/installboot.plist | 47 +++++++++++++++++++++++++++
 5 files changed, 71 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 3dd2f8293a..b38b44c8b0 100644
--- a/Makefile
+++ b/Makefile
@@ -5637,6 +5637,7 @@ SUBDIR+=	typst-lsp
 SUBDIR+=	u-boot
 SUBDIR+=	u-boot-full
 SUBDIR+=	u-boot-khadas-vim3
+SUBDIR+=	u-boot-mangopi-mq-pro
 SUBDIR+=	u-boot-nanopi-r2s
 SUBDIR+=	u-boot-orangepi-pc2
 SUBDIR+=	u-boot-pinebook-crust
diff --git a/u-boot-mangopi-mq-pro/DESCR b/u-boot-mangopi-mq-pro/DESCR
new file mode 100644
index 0000000000..3c6d4a239c
--- /dev/null
+++ b/u-boot-mangopi-mq-pro/DESCR
@@ -0,0 +1,5 @@
+U-Boot is a bootloader for embedded boards based on PowerPC, ARM, MIPS and
+several other processors, which can be installed in a boot ROM and used to
+initialize and test the hardware or to download and run application code.
+
+This package provides U-Boot for the MangoPi MQ Pro board.
diff --git a/u-boot-mangopi-mq-pro/Makefile b/u-boot-mangopi-mq-pro/Makefile
new file mode 100644
index 0000000000..125aacd433
--- /dev/null
+++ b/u-boot-mangopi-mq-pro/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+GIT_REPO=	https://github.com/smaeul/u-boot
+GIT_BRANCH=	d1-wip
+
+UBOOT_TARGET=	mangopi-mq-pro
+UBOOT_VERSION=	2024.01
+UBOOT_CONFIG=	mangopi_mq_pro_defconfig
+UBOOT_BIN=	u-boot-sunxi-with-spl.bin
+
+MAKE_ENV+=	OPENSBI=${LOCALBASE}/share/opensbi/sun20i-d1/fw_dynamic.bin
+
+.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/PLIST b/u-boot-mangopi-mq-pro/PLIST
new file mode 100644
index 0000000000..24658c4f69
--- /dev/null
+++ b/u-boot-mangopi-mq-pro/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+share/u-boot/mangopi-mq-pro/u-boot-sunxi-with-spl.bin
diff --git a/u-boot-mangopi-mq-pro/files/installboot.plist b/u-boot-mangopi-mq-pro/files/installboot.plist
new file mode 100644
index 0000000000..9dc03a6eff
--- /dev/null
+++ b/u-boot-mangopi-mq-pro/files/installboot.plist
@@ -0,0 +1,47 @@
+<!-- $NetBSD$ -->
+<!--
+  Copyright (c) 2021 The NetBSD Foundation, Inc.
+  All rights reserved.
+ 
+  This code is derived from software contributed to The NetBSD Foundation
+  by Jason R. Thorpe.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+  POSSIBILITY OF SUCH DAMAGE.
+-->
+<plist>
+<dict>
+	<key>widora,mangopi-mq-pro</key>
+	<dict>
+		<key>description</key>
+		<string>MangoPi MQ Pro</string>
+		<key>u-boot-install</key>
+		<array>
+			<dict>
+				<key>file-name</key>
+				<string>u-boot-sunxi-with-spl.bin</string>
+				<key>image-offset</key>
+				<integer>8192</integer>
+			</dict>
+		</array>
+	</dict>
+</dict>
+</plist>


Home | Main Index | Thread Index | Old Index