diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-03-16 20:40:35 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-20 09:59:31 +0000 |
commit | 887f583c45bd705cb6bcef111cc773d5948652e7 (patch) | |
tree | 15279f14c9b3e124d6c727992a4759ea8f6e8c0d /meta/recipes-devtools/python-numpy/files/0001-npy_cpu-Add-riscv-support.patch | |
parent | d91238016ec899b74edaad47410326ba5301418c (diff) | |
download | poky-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.patch | 28 |
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 @@ | |||
1 | From 30fb1bf9244bb0789c02ec7c98a923acc7200206 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 16 Mar 2018 19:55:21 -0700 | ||
4 | Subject: [PATCH] npy_cpu: Add riscv support | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | Upstream-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 | |||
13 | diff --git a/numpy/core/include/numpy/npy_cpu.h b/numpy/core/include/numpy/npy_cpu.h | ||
14 | index 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 | -- | ||
27 | 2.16.2 | ||
28 | |||