diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2014-03-20 19:49:35 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-21 12:05:54 +0000 |
commit | 54beec100ec2c9e046d19ad3bdbaa92a888950ea (patch) | |
tree | 9b913b30ef6ffb8ae678bf49eba3b8089e007d58 /meta/classes | |
parent | 68acafd7dc18f23707c95c90e871395ded81f84b (diff) | |
download | poky-54beec100ec2c9e046d19ad3bdbaa92a888950ea.tar.gz |
kernel-arch.bbclass: add arm64 support to U-Boot architecture map
to define UBOOT_ARCH, we map kernel architectures to U-Boot architectures.
In the case of arm64 kernel, we should map to arm U-boot architecture.
This patch add the exception rule to the map_uboot_arch function.
(From OE-Core rev: 0b891265716c414ade29d587fc1a3c4ea7beadbe)
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel-arch.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass index 6a6ad91866..bbcfa15b84 100644 --- a/meta/classes/kernel-arch.bbclass +++ b/meta/classes/kernel-arch.bbclass | |||
@@ -40,6 +40,7 @@ def map_uboot_arch(a, d): | |||
40 | 40 | ||
41 | if re.match('p(pc|owerpc)(|64)', a): return 'ppc' | 41 | if re.match('p(pc|owerpc)(|64)', a): return 'ppc' |
42 | elif re.match('i.86$', a): return 'x86' | 42 | elif re.match('i.86$', a): return 'x86' |
43 | elif re.match('arm64$', a): return 'arm' | ||
43 | return a | 44 | return a |
44 | 45 | ||
45 | export UBOOT_ARCH = "${@map_uboot_arch(d.getVar('ARCH', True), d)}" | 46 | export UBOOT_ARCH = "${@map_uboot_arch(d.getVar('ARCH', True), d)}" |