diff options
Diffstat (limited to 'meta/classes/kernel-arch.bbclass')
| -rw-r--r-- | meta/classes/kernel-arch.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass index ea976c66b3..e09cdc4184 100644 --- a/meta/classes/kernel-arch.bbclass +++ b/meta/classes/kernel-arch.bbclass | |||
| @@ -19,7 +19,7 @@ valid_archs = "alpha cris ia64 \ | |||
| 19 | def map_kernel_arch(a, d): | 19 | def map_kernel_arch(a, d): |
| 20 | import re | 20 | import re |
| 21 | 21 | ||
| 22 | valid_archs = d.getVar('valid_archs', True).split() | 22 | valid_archs = d.getVar('valid_archs').split() |
| 23 | 23 | ||
| 24 | if re.match('(i.86|athlon|x86.64)$', a): return 'x86' | 24 | if re.match('(i.86|athlon|x86.64)$', a): return 'x86' |
| 25 | elif re.match('armeb$', a): return 'arm' | 25 | elif re.match('armeb$', a): return 'arm' |
| @@ -34,7 +34,7 @@ def map_kernel_arch(a, d): | |||
| 34 | else: | 34 | else: |
| 35 | bb.error("cannot map '%s' to a linux kernel architecture" % a) | 35 | bb.error("cannot map '%s' to a linux kernel architecture" % a) |
| 36 | 36 | ||
| 37 | export ARCH = "${@map_kernel_arch(d.getVar('TARGET_ARCH', True), d)}" | 37 | export ARCH = "${@map_kernel_arch(d.getVar('TARGET_ARCH'), d)}" |
| 38 | 38 | ||
| 39 | def map_uboot_arch(a, d): | 39 | def map_uboot_arch(a, d): |
| 40 | import re | 40 | import re |
| @@ -43,7 +43,7 @@ def map_uboot_arch(a, d): | |||
| 43 | elif re.match('i.86$', a): return 'x86' | 43 | elif re.match('i.86$', a): return 'x86' |
| 44 | return a | 44 | return a |
| 45 | 45 | ||
| 46 | export UBOOT_ARCH = "${@map_uboot_arch(d.getVar('ARCH', True), d)}" | 46 | export UBOOT_ARCH = "${@map_uboot_arch(d.getVar('ARCH'), d)}" |
| 47 | 47 | ||
| 48 | # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture | 48 | # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture |
| 49 | # specific options necessary for building the kernel and modules. | 49 | # specific options necessary for building the kernel and modules. |
