package/botan: add support for riscv32
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 3 Apr 2021 15:29:30 +0000 (17:29 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 4 Apr 2021 10:22:18 +0000 (12:22 +0200)
Backport an upstream patch to add support for riscv32. Although this is
a new feature (new arch support), this is an upstream commit, so we can
expect it to be available in a future release.

Fixes:
 - http://autobuild.buildroot.org/results/1c399312dbec5d7a28ec90d62fdd8f47fa14ff4b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[yann.morin.1998@free.fr:
  - technically, this is not a bug fix, but new arch support
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/botan/0003-Add-support-for-riscv32.patch [new file with mode: 0644]

diff --git a/package/botan/0003-Add-support-for-riscv32.patch b/package/botan/0003-Add-support-for-riscv32.patch
new file mode 100644 (file)
index 0000000..d8978b2
--- /dev/null
@@ -0,0 +1,31 @@
+From 443bf46ee2b1b1d7acd63e3f00dcbe66646138f8 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Fri, 2 Apr 2021 20:37:03 +0200
+Subject: [PATCH] Add support for riscv32
+
+Fix the following build failure:
+
+  ERROR: Unknown or unidentifiable processor "riscv32"
+
+Fixes:
+ - http://autobuild.buildroot.org/results/1c399312dbec5d7a28ec90d62fdd8f47fa14ff4b
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved from:
+https://github.com/randombit/botan/commit/aa7958880bee2091a8a71bf9e1f6e6efb34581e3]
+---
+ src/build-data/arch/riscv32.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+ create mode 100644 src/build-data/arch/riscv32.txt
+
+diff --git a/src/build-data/arch/riscv32.txt b/src/build-data/arch/riscv32.txt
+new file mode 100644
+index 000000000..ba88b42e9
+--- /dev/null
++++ b/src/build-data/arch/riscv32.txt
+@@ -0,0 +1,2 @@
++family riscv32
++endian little
+-- 
+2.30.2
+