go-dep: Fix bolt for riscv64

(From OE-Core rev: b2d1d944398add45c20caa4ad075825c73086fc4)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj 2020-01-26 11:27:48 -08:00 committed by Richard Purdie
parent 40bfcd11ad
commit 649d082b4f
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,33 @@
From 5e051669d117d7cd9b24cea3494959eec396ec1e Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 25 Jan 2020 22:37:25 -0800
Subject: [PATCH] /bolt_riscv64: Add support for riscv64
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
vendor/github.com/boltdb/bolt/bolt_riscv64.go | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 vendor/github.com/boltdb/bolt/bolt_riscv64.go
diff --git a/vendor/github.com/boltdb/bolt/bolt_riscv64.go b/vendor/github.com/boltdb/bolt/bolt_riscv64.go
new file mode 100644
index 00000000..3d6b88d4
--- /dev/null
+++ b/vendor/github.com/boltdb/bolt/bolt_riscv64.go
@@ -0,0 +1,12 @@
+// +build riscv64
+
+package bolt
+
+// maxMapSize represents the largest mmap size supported by Bolt.
+const maxMapSize = 0xFFFFFFFFFFFF // 256TB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0x7FFFFFFF
+
+// Are unaligned load/stores broken on this arch?
+var brokenUnaligned = false
--
2.25.0

View File

@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=1bad315647751fab0007812f
GO_IMPORT = "github.com/golang/dep"
SRC_URI = "git://${GO_IMPORT} \
file://0001-Add-support-for-mips-mips64.patch;patchdir=src/github.com/golang/dep \
file://0001-bolt_riscv64-Add-support-for-riscv64.patch;patchdir=src/github.com/golang/dep \
"
SRCREV = "1f7c19e5f52f49ffb9f956f64c010be14683468b"