diff options
author | Richard Purdie <richard@openedhand.com> | 2007-08-08 20:41:55 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-08-08 20:41:55 +0000 |
commit | 720e0b144cabc48c65dc831b61602a10a2da5f90 (patch) | |
tree | 005b5aac27800b94d730580e49d59582938790ad /meta/classes/kernel-arch.bbclass | |
parent | fe553f406dda1c495d285c650846c9509f0c7e19 (diff) | |
download | poky-720e0b144cabc48c65dc831b61602a10a2da5f90.tar.gz |
classes: Sync various classes with OE for various bugfixes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2407 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/kernel-arch.bbclass')
-rw-r--r-- | meta/classes/kernel-arch.bbclass | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass index b331d25614..9208c3507a 100644 --- a/meta/classes/kernel-arch.bbclass +++ b/meta/classes/kernel-arch.bbclass | |||
@@ -4,10 +4,15 @@ | |||
4 | # in the kernel source "arch" directory | 4 | # in the kernel source "arch" directory |
5 | # | 5 | # |
6 | 6 | ||
7 | valid_archs = "alpha cris ia64 m68knommu ppc sh \ | 7 | valid_archs = "alpha cris ia64 \ |
8 | sparc64 x86_64 arm h8300 m32r mips \ | 8 | x86_64,i386 \ |
9 | ppc64 sh64 um arm26 i386 m68k \ | 9 | m68knommu m68k ppc powerpc ppc64 \ |
10 | parisc s390 sparc v850" | 10 | sparc sparc64 \ |
11 | arm arm26 \ | ||
12 | m32r mips \ | ||
13 | sh sh64 um h8300 \ | ||
14 | parisc s390 v850 \ | ||
15 | avr32 blackfin" | ||
11 | 16 | ||
12 | def map_kernel_arch(a, d): | 17 | def map_kernel_arch(a, d): |
13 | import bb, re | 18 | import bb, re |
@@ -17,10 +22,10 @@ def map_kernel_arch(a, d): | |||
17 | if re.match('(i.86|athlon)$', a): return 'i386' | 22 | if re.match('(i.86|athlon)$', a): return 'i386' |
18 | elif re.match('arm26$', a): return 'arm26' | 23 | elif re.match('arm26$', a): return 'arm26' |
19 | elif re.match('armeb$', a): return 'arm' | 24 | elif re.match('armeb$', a): return 'arm' |
20 | elif re.match('powerpc$', a): return 'ppc' | ||
21 | elif re.match('mipsel$', a): return 'mips' | 25 | elif re.match('mipsel$', a): return 'mips' |
22 | elif re.match('sh(3|4)$', a): return 'sh' | 26 | elif re.match('sh(3|4)$', a): return 'sh' |
23 | elif a in valid_archs: return a | 27 | elif re.match('bfin', a): return 'blackfin' |
28 | elif a in valid_archs: return a | ||
24 | else: | 29 | else: |
25 | bb.error("cannot map '%s' to a linux kernel architecture" % a) | 30 | bb.error("cannot map '%s' to a linux kernel architecture" % a) |
26 | 31 | ||