summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-10-05 17:50:43 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-05 22:33:21 +0000
commit0bdf5c949f4a76222432fe6a4b8bee1e7d937314 (patch)
treec4372346f1433a4630c005e73b2ace69984ffdbd /meta/classes
parent4178905d6bf75965960930a6876327a7cccaec1d (diff)
downloadpoky-0bdf5c949f4a76222432fe6a4b8bee1e7d937314.tar.gz
kernel-arch.bbclass: Add riscv to kernel arch map
(From OE-Core rev: ac254fcc57cb044974445d89ce28a412c656e527) 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/classes')
-rw-r--r--meta/classes/kernel-arch.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass
index d036fcf20c..cf0edb6173 100644
--- a/meta/classes/kernel-arch.bbclass
+++ b/meta/classes/kernel-arch.bbclass
@@ -14,7 +14,7 @@ valid_archs = "alpha cris ia64 \
14 parisc s390 v850 \ 14 parisc s390 v850 \
15 avr32 blackfin \ 15 avr32 blackfin \
16 microblaze \ 16 microblaze \
17 nios2 arc xtensa" 17 nios2 arc riscv xtensa"
18 18
19def map_kernel_arch(a, d): 19def map_kernel_arch(a, d):
20 import re 20 import re
@@ -26,6 +26,7 @@ def map_kernel_arch(a, d):
26 elif re.match('aarch64$', a): return 'arm64' 26 elif re.match('aarch64$', a): return 'arm64'
27 elif re.match('aarch64_be$', a): return 'arm64' 27 elif re.match('aarch64_be$', a): return 'arm64'
28 elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a): return 'mips' 28 elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a): return 'mips'
29 elif re.match('riscv(32|64|)(eb|)$', a): return 'riscv'
29 elif re.match('p(pc|owerpc)(|64)', a): return 'powerpc' 30 elif re.match('p(pc|owerpc)(|64)', a): return 'powerpc'
30 elif re.match('sh(3|4)$', a): return 'sh' 31 elif re.match('sh(3|4)$', a): return 'sh'
31 elif re.match('bfin', a): return 'blackfin' 32 elif re.match('bfin', a): return 'blackfin'