From 81920b835e3cc8b87f27d3989627cce477ff23c5 Mon Sep 17 00:00:00 2001 From: Jeremy Laine Date: Mon, 26 May 2008 12:13:57 +0000 Subject: kernel-arch.bbclass: fix map_uboot_arch for x86 --- classes/kernel-arch.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'classes') diff --git a/classes/kernel-arch.bbclass b/classes/kernel-arch.bbclass index 2ce0f9727d..65d220063e 100644 --- a/classes/kernel-arch.bbclass +++ b/classes/kernel-arch.bbclass @@ -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)}" -- cgit v1.2.3