diff options
Diffstat (limited to 'yocto-poky/meta/classes/kernel-arch.bbclass')
-rw-r--r-- | yocto-poky/meta/classes/kernel-arch.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/yocto-poky/meta/classes/kernel-arch.bbclass b/yocto-poky/meta/classes/kernel-arch.bbclass index 211b72bee..d8b180ec4 100644 --- a/yocto-poky/meta/classes/kernel-arch.bbclass +++ b/yocto-poky/meta/classes/kernel-arch.bbclass @@ -13,14 +13,17 @@ valid_archs = "alpha cris ia64 \ sh sh64 um h8300 \ parisc s390 v850 \ avr32 blackfin \ - microblaze" + microblaze \ + nios2" def map_kernel_arch(a, d): import re valid_archs = d.getVar('valid_archs', True).split() - if re.match('(i.86|athlon|x86.64)$', a): return 'x86' + if re.match('i.86$', a): return 'i386' + elif re.match('x86.64$', a): return 'x86_64' + elif re.match('athlon$', a): return 'x86' elif re.match('armeb$', a): return 'arm' elif re.match('aarch64$', a): return 'arm64' elif re.match('aarch64_be$', a): return 'arm64' |