pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/u-boot-rock64 u-boot-rock64: reset PATCHDIR a...
details: https://anonhg.NetBSD.org/pkgsrc/rev/174a7b7d30cf
branches: trunk
changeset: 426814:174a7b7d30cf
user: tnn <tnn%pkgsrc.org@localhost>
date: Mon Apr 06 15:06:17 2020 +0000
description:
u-boot-rock64: reset PATCHDIR and restore the patches
diffstat:
sysutils/u-boot-rock64/patches/patch-arch_arm_cpu_armv8_Kconfig | 15 +++
sysutils/u-boot-rock64/patches/patch-lib_bch.c | 39 ++++++++++
sysutils/u-boot-rock64/u-boot-rockchip.mk | 4 +-
3 files changed, 56 insertions(+), 2 deletions(-)
diffs (80 lines):
diff -r 805e30d61cee -r 174a7b7d30cf sysutils/u-boot-rock64/patches/patch-arch_arm_cpu_armv8_Kconfig
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-rock64/patches/patch-arch_arm_cpu_armv8_Kconfig Mon Apr 06 15:06:17 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-arch_arm_cpu_armv8_Kconfig,v 1.1 2020/04/06 15:06:18 tnn Exp $
+
+--- arch/arm/cpu/armv8/Kconfig.orig 2018-08-06 22:28:00.000000000 +0000
++++ arch/arm/cpu/armv8/Kconfig
+@@ -130,6 +130,10 @@ config ARMV8_PSCI_CPUS_PER_CLUSTER
+ A value 0 or no definition of it works for single cluster system.
+ System with multi-cluster should difine their own exact value.
+
++config ARMV8_SWITCH_TO_EL1
++ bool "Switch to EL1 before booting kernel"
++ default n
++
+ if SYS_HAS_ARMV8_SECURE_BASE
+
+ config ARMV8_SECURE_BASE
diff -r 805e30d61cee -r 174a7b7d30cf sysutils/u-boot-rock64/patches/patch-lib_bch.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-rock64/patches/patch-lib_bch.c Mon Apr 06 15:06:17 2020 +0000
@@ -0,0 +1,39 @@
+$NetBSD: patch-lib_bch.c,v 1.1 2020/04/06 15:06:18 tnn Exp $
+
+u-boot: fix build on macos
+
+--- lib/bch.c.orig 2018-08-06 22:28:00.000000000 +0000
++++ lib/bch.c
+@@ -61,8 +61,10 @@
+ #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>
+ #else
+ #include <endian.h>
+ #endif
+@@ -71,7 +73,11 @@
+ #include <string.h>
+
+ #undef cpu_to_be32
++#if defined(__APPLE__)
++#define cpu_to_be32 htonl
++#else
+ #define cpu_to_be32 htobe32
++#endif
+ #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
+ #define kmalloc(size, flags) malloc(size)
+ #define kzalloc(size, flags) calloc(1, size)
+@@ -117,7 +123,7 @@ struct gf_poly_deg1 {
+ };
+
+ #ifdef USE_HOSTCC
+-#if !defined(__DragonFly__) && !defined(__FreeBSD__)
++#if !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__APPLE__)
+ static int fls(int x)
+ {
+ int r = 32;
diff -r 805e30d61cee -r 174a7b7d30cf sysutils/u-boot-rock64/u-boot-rockchip.mk
--- a/sysutils/u-boot-rock64/u-boot-rockchip.mk Mon Apr 06 14:54:54 2020 +0000
+++ b/sysutils/u-boot-rock64/u-boot-rockchip.mk Mon Apr 06 15:06:17 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: u-boot-rockchip.mk,v 1.1 2020/04/02 09:09:05 tnn Exp $
+# $NetBSD: u-boot-rockchip.mk,v 1.2 2020/04/06 15:06:17 tnn Exp $
#
# used by sysutils/u-boot-rock64/Makefile
@@ -14,7 +14,7 @@
GITHUB_PROJECT= linux-u-boot
GITHUB_TAG= 2017.09-rockchip-ayufan-1063-g29843fbd42
DISTNAME= ${GITHUB_TAG}
-PATCHDIR= ${.CURDIR}/../../sysutils/u-boot-rockpro64/patches
+PATCHDIR= ${.CURDIR}/../../sysutils/u-boot-rock64/patches
DISTFILES= ${DEFAULT_DISTFILES}
EXTRACT_SUFX= .tar.gz
Home |
Main Index |
Thread Index |
Old Index