diff options
author | riastradh <riastradh@pkgsrc.org> | 2020-12-01 06:52:30 +0000 |
---|---|---|
committer | riastradh <riastradh@pkgsrc.org> | 2020-12-01 06:52:30 +0000 |
commit | 8fc9cb38a61148adf9664a5dc850e955c59124f5 (patch) | |
tree | ebd62b0ff1cadb5d73c816c43c9e966a5ad35484 /sysutils | |
parent | d71899deaf5635b3e821a00aecf847de05c37956 (diff) | |
download | pkgsrc-8fc9cb38a61148adf9664a5dc850e955c59124f5.tar.gz |
sysutils/u-boot-pinephone: Import u-boot-pinephone 2021.01-rc3
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/u-boot-pinephone/DESCR | 5 | ||||
-rw-r--r-- | sysutils/u-boot-pinephone/Makefile | 33 | ||||
-rw-r--r-- | sysutils/u-boot-pinephone/PLIST | 3 | ||||
-rw-r--r-- | sysutils/u-boot-pinephone/distinfo | 7 | ||||
-rw-r--r-- | sysutils/u-boot-pinephone/files/installboot.plist | 47 | ||||
-rw-r--r-- | sysutils/u-boot-pinephone/patches/patch-lib_bch.c | 13 |
6 files changed, 108 insertions, 0 deletions
diff --git a/sysutils/u-boot-pinephone/DESCR b/sysutils/u-boot-pinephone/DESCR new file mode 100644 index 00000000000..dbf032fc26c --- /dev/null +++ b/sysutils/u-boot-pinephone/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 Pine64 Pinebook. diff --git a/sysutils/u-boot-pinephone/Makefile b/sysutils/u-boot-pinephone/Makefile new file mode 100644 index 00000000000..f91842a7992 --- /dev/null +++ b/sysutils/u-boot-pinephone/Makefile @@ -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 --git a/sysutils/u-boot-pinephone/PLIST b/sysutils/u-boot-pinephone/PLIST new file mode 100644 index 00000000000..98c603eadf1 --- /dev/null +++ b/sysutils/u-boot-pinephone/PLIST @@ -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 --git a/sysutils/u-boot-pinephone/distinfo b/sysutils/u-boot-pinephone/distinfo new file mode 100644 index 00000000000..6e91abc830c --- /dev/null +++ b/sysutils/u-boot-pinephone/distinfo @@ -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 --git a/sysutils/u-boot-pinephone/files/installboot.plist b/sysutils/u-boot-pinephone/files/installboot.plist new file mode 100644 index 00000000000..1fe83c78018 --- /dev/null +++ b/sysutils/u-boot-pinephone/files/installboot.plist @@ -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 --git a/sysutils/u-boot-pinephone/patches/patch-lib_bch.c b/sysutils/u-boot-pinephone/patches/patch-lib_bch.c new file mode 100644 index 00000000000..e938407405e --- /dev/null +++ b/sysutils/u-boot-pinephone/patches/patch-lib_bch.c @@ -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> |