pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/u-boot-pinephone sysutils/u-boot-pinephone: I...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3bfcc6ce7c5a
branches:  trunk
changeset: 442814:3bfcc6ce7c5a
user:      riastradh <riastradh%pkgsrc.org@localhost>
date:      Tue Dec 01 06:52:30 2020 +0000

description:
sysutils/u-boot-pinephone: Import u-boot-pinephone 2021.01-rc3

diffstat:

 sysutils/u-boot-pinephone/DESCR                   |   5 ++
 sysutils/u-boot-pinephone/Makefile                |  33 ++++++++++++++++
 sysutils/u-boot-pinephone/PLIST                   |   3 +
 sysutils/u-boot-pinephone/distinfo                |   7 +++
 sysutils/u-boot-pinephone/files/installboot.plist |  47 +++++++++++++++++++++++
 sysutils/u-boot-pinephone/patches/patch-lib_bch.c |  13 ++++++
 6 files changed, 108 insertions(+), 0 deletions(-)

diffs (132 lines):

diff -r fdd059b2d2ec -r 3bfcc6ce7c5a sysutils/u-boot-pinephone/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-pinephone/DESCR   Tue Dec 01 06:52:30 2020 +0000
@@ -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 Pine64 Pinebook.
diff -r fdd059b2d2ec -r 3bfcc6ce7c5a sysutils/u-boot-pinephone/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-pinephone/Makefile        Tue Dec 01 06:52:30 2020 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2020/12/01 06:52:30 riastradh Exp $
+
+UBOOT_VERSION=         2021.01-rc3
+UBOOT_TARGET=          pinephone
+UBOOT_CONFIG=          pinephone_defconfig
+UBOOT_BIN=             u-boot-sunxi-with-spl.bin
+
+UBOOT_INSTALLBOOT_PLIST=       installboot.plist
+
+DISTINFO_FILE=         ${.CURDIR}/../../sysutils/u-boot-pinephone/distinfo
+PATCHDIR=              ${.CURDIR}/../../sysutils/u-boot-pinephone/patches
+
+TOOL_DEPENDS+=         ${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools
+
+ALL_ENV+=              PYTHON3=${PYTHONBIN}
+
+SUBST_CLASSES+=                python3
+SUBST_STAGE.python3+=  pre-build
+SUBST_FILES.python3+=  Makefile
+SUBST_SED.python3+=    -e 's,^PYTHON3.*=.*python3$$,PYTHON3='${PYTHONBIN:Q}',g'
+
+REPLACE_INTERPRETER+=  python3
+REPLACE.python3.old+=  /usr/bin/env python3
+REPLACE.python3.new+=  ${PYTHONBIN}
+REPLACE_FILES.python3+=        scripts/dtc/pylibfdt/setup.py
+
+post-extract:
+       ${CP} ${PREFIX}/share/arm-trusted-firmware/sun50i_a64/bl31.bin ${WRKSRC}
+
+.include "../../sysutils/arm-trusted-firmware-sun50i_a64/buildlink3.mk"
+.include "../../sysutils/u-boot/u-boot-arm64.mk"
+
+CHECK_PORTABILITY_SKIP+=       tools/imx_cntr_image.sh
diff -r fdd059b2d2ec -r 3bfcc6ce7c5a sysutils/u-boot-pinephone/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-pinephone/PLIST   Tue Dec 01 06:52:30 2020 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/01 06:52:30 riastradh Exp $
+share/u-boot/pinephone/installboot.plist
+share/u-boot/pinephone/u-boot-sunxi-with-spl.bin
diff -r fdd059b2d2ec -r 3bfcc6ce7c5a sysutils/u-boot-pinephone/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-pinephone/distinfo        Tue Dec 01 06:52:30 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/12/01 06:52:30 riastradh Exp $
+
+SHA1 (u-boot-2021.01-rc3.tar.bz2) = be748544928dec0117608cdbf067da2ec9fa2dce
+RMD160 (u-boot-2021.01-rc3.tar.bz2) = ce12dd23023829fe671a502e4cbaf5fd8cf34097
+SHA512 (u-boot-2021.01-rc3.tar.bz2) = 4c88bbdeb1e39e52bb069c4bf65c9829290a51da9a21de8e60d50b62c74ae98a35d22a235fdc0a86467aedc34f85dff5d63b874af247323d0d5bdcb2e82cd4a3
+Size (u-boot-2021.01-rc3.tar.bz2) = 16363623 bytes
+SHA1 (patch-lib_bch.c) = 01a1704adfb60fd3a7e72eaf6396c86d63a4d450
diff -r fdd059b2d2ec -r 3bfcc6ce7c5a sysutils/u-boot-pinephone/files/installboot.plist
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-pinephone/files/installboot.plist Tue Dec 01 06:52:30 2020 +0000
@@ -0,0 +1,47 @@
+<!-- $NetBSD: installboot.plist,v 1.1 2020/12/01 06:52:30 riastradh Exp $ -->
+<!--
+  Copyright (c) 2019 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>pine64,pinephone</key>
+       <dict>
+               <key>description</key>
+               <string>Pinephone</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>
diff -r fdd059b2d2ec -r 3bfcc6ce7c5a sysutils/u-boot-pinephone/patches/patch-lib_bch.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-pinephone/patches/patch-lib_bch.c Tue Dec 01 06:52:30 2020 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-lib_bch.c,v 1.1 2020/12/01 06:52:30 riastradh Exp $
+
+--- lib/bch.c.orig     2020-02-28 06:52:51.000000000 +0000
++++ lib/bch.c
+@@ -62,7 +62,7 @@
+ #include <linux/bitops.h>
+ #else
+ #include <errno.h>
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ #include <sys/endian.h>
+ #elif defined(__APPLE__)
+ #include <machine/endian.h>



Home | Main Index | Thread Index | Old Index