summaryrefslogtreecommitdiff
path: root/sysutils/u-boot-pine-h64
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2018-05-31 20:20:00 +0000
committerjmcneill <jmcneill@pkgsrc.org>2018-05-31 20:20:00 +0000
commitc586147db9cf382ef9e69399edca41247d0096ea (patch)
tree7697146a390c5f74b3ef1a11b4aa29f334bde022 /sysutils/u-boot-pine-h64
parentb2147313eb8f166c614c04a491f96e3e039d4d57 (diff)
downloadpkgsrc-c586147db9cf382ef9e69399edca41247d0096ea.tar.gz
add missing patches
Diffstat (limited to 'sysutils/u-boot-pine-h64')
-rw-r--r--sysutils/u-boot-pine-h64/patches/patch-arch_arm_cpu_armv8_Kconfig15
-rw-r--r--sysutils/u-boot-pine-h64/patches/patch-lib_bch.c26
2 files changed, 41 insertions, 0 deletions
diff --git a/sysutils/u-boot-pine-h64/patches/patch-arch_arm_cpu_armv8_Kconfig b/sysutils/u-boot-pine-h64/patches/patch-arch_arm_cpu_armv8_Kconfig
new file mode 100644
index 00000000000..c9c7df4f0f1
--- /dev/null
+++ b/sysutils/u-boot-pine-h64/patches/patch-arch_arm_cpu_armv8_Kconfig
@@ -0,0 +1,15 @@
+$NetBSD: patch-arch_arm_cpu_armv8_Kconfig,v 1.1 2018/05/31 20:20:00 jmcneill Exp $
+
+--- arch/arm/cpu/armv8/Kconfig.orig 2018-01-23 06:50:34.000000000 +0000
++++ arch/arm/cpu/armv8/Kconfig
+@@ -132,6 +132,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 --git a/sysutils/u-boot-pine-h64/patches/patch-lib_bch.c b/sysutils/u-boot-pine-h64/patches/patch-lib_bch.c
new file mode 100644
index 00000000000..8597cd7e3cc
--- /dev/null
+++ b/sysutils/u-boot-pine-h64/patches/patch-lib_bch.c
@@ -0,0 +1,26 @@
+$NetBSD: patch-lib_bch.c,v 1.1 2018/05/31 20:20:00 jmcneill Exp $
+
+--- lib/bch.c.orig 2018-01-23 06:50:34.000000000 +0000
++++ lib/bch.c
+@@ -61,8 +61,11 @@
+ #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>
++#define htobe32 htonl
+ #else
+ #include <endian.h>
+ #endif
+@@ -117,7 +120,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;