diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-10-05 17:50:43 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-05 22:33:21 +0000 |
commit | 0bdf5c949f4a76222432fe6a4b8bee1e7d937314 (patch) | |
tree | c4372346f1433a4630c005e73b2ace69984ffdbd /meta/classes | |
parent | 4178905d6bf75965960930a6876327a7cccaec1d (diff) | |
download | poky-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.bbclass | 3 |
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 | ||
19 | def map_kernel_arch(a, d): | 19 | def 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' |