kernel-arch.bbclass: fix map_uboot_arch for x86
authorJeremy Laine <jeremy.laine@m4x.org>
Mon, 26 May 2008 12:13:57 +0000 (12:13 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Mon, 26 May 2008 12:13:57 +0000 (12:13 +0000)
classes/kernel-arch.bbclass

index 2ce0f97..65d2200 100644 (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)}"