kernel-arch.bbclass: merge improved arch detection from OE.dev

Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
Joshua Lock 2010-05-20 15:15:55 +01:00
parent 769cf0b6b0
commit 2c3437d0ae
1 changed files with 4 additions and 2 deletions

View File

@ -32,8 +32,10 @@ def map_kernel_arch(a, d):
export ARCH = "${@map_kernel_arch(bb.data.getVar('TARGET_ARCH', d, 1), d)}"
def map_uboot_arch(a, d):
if a == "powerpc":
return "ppc"
import re
if re.match('powerpc$', a): return 'ppc'
elif re.match('i.86$', a): return 'x86'
return a
export UBOOT_ARCH = "${@map_uboot_arch(bb.data.getVar('ARCH', d, 1), d)}"