aboutsummaryrefslogtreecommitdiffstats
path: root/classes/kernel-arch.bbclass
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-07-25 03:20:54 +0000
committerJamie Lenehan <lenehan@twibble.org>2006-07-25 03:20:54 +0000
commit7f3fb2feff6111b09dc5081644fa5fa6d2b693b6 (patch)
treeccd2cecd8d457ce3ddb666babf3a288ab1d428b7 /classes/kernel-arch.bbclass
parent8812dfe97c028c5d99ec745c442152e852cd034b (diff)
downloadopenembedded-7f3fb2feff6111b09dc5081644fa5fa6d2b693b6.tar.gz
classes/kernel-arch.bbclass: Update the kernel arch selection so that
sh3 and sh4 use the sh architecture. Without this building add on kernel modules (madwifi-ng for example) for sh3 or sh4 fails due to the inability to determine the kernel arch to use.
Diffstat (limited to 'classes/kernel-arch.bbclass')
-rw-r--r--classes/kernel-arch.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/kernel-arch.bbclass b/classes/kernel-arch.bbclass
index 92a6c982fb..b331d25614 100644
--- a/classes/kernel-arch.bbclass
+++ b/classes/kernel-arch.bbclass
@@ -19,6 +19,7 @@ def map_kernel_arch(a, d):
elif re.match('armeb$', a): return 'arm'
elif re.match('powerpc$', a): return 'ppc'
elif re.match('mipsel$', a): return 'mips'
+ elif re.match('sh(3|4)$', a): return 'sh'
elif a in valid_archs: return a
else:
bb.error("cannot map '%s' to a linux kernel architecture" % a)