summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python-numpy/files/0001-npy_cpu-Add-riscv-support.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-03-16 20:40:35 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-20 09:59:31 +0000
commit887f583c45bd705cb6bcef111cc773d5948652e7 (patch)
tree15279f14c9b3e124d6c727992a4759ea8f6e8c0d /meta/recipes-devtools/python-numpy/files/0001-npy_cpu-Add-riscv-support.patch
parentd91238016ec899b74edaad47410326ba5301418c (diff)
downloadpoky-887f583c45bd705cb6bcef111cc773d5948652e7.tar.gz
python-numpy: Fix build for riscv64
(From OE-Core rev: d33b321bce110fae8e5730f507be70f33d91fe22) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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