summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python-numpy/files/0001-npy_cpu-Add-riscv-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python-numpy/files/0001-npy_cpu-Add-riscv-support.patch')
-rw-r--r--meta/recipes-devtools/python-numpy/files/0001-npy_cpu-Add-riscv-support.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python-numpy/files/0001-npy_cpu-Add-riscv-support.patch b/meta/recipes-devtools/python-numpy/files/0001-npy_cpu-Add-riscv-support.patch
new file mode 100644
index 0000000000..4f5c4f5f0d
--- /dev/null
+++ b/meta/recipes-devtools/python-numpy/files/0001-npy_cpu-Add-riscv-support.patch
@@ -0,0 +1,28 @@
1From 30fb1bf9244bb0789c02ec7c98a923acc7200206 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 16 Mar 2018 19:55:21 -0700
4Subject: [PATCH] npy_cpu: Add riscv support
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8Upstream-Status: Submitted [https://github.com/numpy/numpy/pull/10761]
9
10 numpy/core/include/numpy/npy_cpu.h | 2 ++
11 1 file changed, 2 insertions(+)
12
13diff --git a/numpy/core/include/numpy/npy_cpu.h b/numpy/core/include/numpy/npy_cpu.h
14index 84653ea18..9e88db873 100644
15--- a/numpy/core/include/numpy/npy_cpu.h
16+++ b/numpy/core/include/numpy/npy_cpu.h
17@@ -78,6 +78,8 @@
18 #define NPY_CPU_AARCH64
19 #elif defined(__mc68000__)
20 #define NPY_CPU_M68K
21+#elif defined(__riscv)
22+ #define NPY_CPU_RISCV
23 #elif defined(__arc__) && defined(__LITTLE_ENDIAN__)
24 #define NPY_CPU_ARCEL
25 #elif defined(__arc__) && defined(__BIG_ENDIAN__)
26--
272.16.2
28