summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/go/go-dep/0001-bolt_riscv64-Add-support-for-riscv64.patch33
-rw-r--r--meta/recipes-devtools/go/go-dep_0.5.4.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-dep/0001-bolt_riscv64-Add-support-for-riscv64.patch b/meta/recipes-devtools/go/go-dep/0001-bolt_riscv64-Add-support-for-riscv64.patch
new file mode 100644
index 0000000000..4d97d48243
--- /dev/null
+++ b/meta/recipes-devtools/go/go-dep/0001-bolt_riscv64-Add-support-for-riscv64.patch
@@ -0,0 +1,33 @@
1From 5e051669d117d7cd9b24cea3494959eec396ec1e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 25 Jan 2020 22:37:25 -0800
4Subject: [PATCH] /bolt_riscv64: Add support for riscv64
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 vendor/github.com/boltdb/bolt/bolt_riscv64.go | 12 ++++++++++++
10 1 file changed, 12 insertions(+)
11 create mode 100644 vendor/github.com/boltdb/bolt/bolt_riscv64.go
12
13diff --git a/vendor/github.com/boltdb/bolt/bolt_riscv64.go b/vendor/github.com/boltdb/bolt/bolt_riscv64.go
14new file mode 100644
15index 00000000..3d6b88d4
16--- /dev/null
17+++ b/vendor/github.com/boltdb/bolt/bolt_riscv64.go
18@@ -0,0 +1,12 @@
19+// +build riscv64
20+
21+package bolt
22+
23+// maxMapSize represents the largest mmap size supported by Bolt.
24+const maxMapSize = 0xFFFFFFFFFFFF // 256TB
25+
26+// maxAllocSize is the size used when creating array pointers.
27+const maxAllocSize = 0x7FFFFFFF
28+
29+// Are unaligned load/stores broken on this arch?
30+var brokenUnaligned = false
31--
322.25.0
33
diff --git a/meta/recipes-devtools/go/go-dep_0.5.4.bb b/meta/recipes-devtools/go/go-dep_0.5.4.bb
index ead87870e2..615cb289e5 100644
--- a/meta/recipes-devtools/go/go-dep_0.5.4.bb
+++ b/meta/recipes-devtools/go/go-dep_0.5.4.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=1bad315647751fab0007812f
6GO_IMPORT = "github.com/golang/dep" 6GO_IMPORT = "github.com/golang/dep"
7SRC_URI = "git://${GO_IMPORT} \ 7SRC_URI = "git://${GO_IMPORT} \
8 file://0001-Add-support-for-mips-mips64.patch;patchdir=src/github.com/golang/dep \ 8 file://0001-Add-support-for-mips-mips64.patch;patchdir=src/github.com/golang/dep \
9 file://0001-bolt_riscv64-Add-support-for-riscv64.patch;patchdir=src/github.com/golang/dep \
9 " 10 "
10 11
11SRCREV = "1f7c19e5f52f49ffb9f956f64c010be14683468b" 12SRCREV = "1f7c19e5f52f49ffb9f956f64c010be14683468b"