]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-arch.bbclass: add arm64 support to U-Boot architecture map
authorFathi Boudra <fathi.boudra@linaro.org>
Thu, 20 Mar 2014 17:49:35 +0000 (19:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Mar 2014 12:05:32 +0000 (12:05 +0000)
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.

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-arch.bbclass

index 6a6ad9186698902cd1b53ee5e9564d8a4e3d2448..bbcfa15b84aa15152fdf8889cf80ba9ed77b54c5 100644 (file)
@@ -40,6 +40,7 @@ def map_uboot_arch(a, d):
 
     if   re.match('p(pc|owerpc)(|64)', a): return 'ppc'
     elif re.match('i.86$', a): return 'x86'
+    elif re.match('arm64$', a): return 'arm'
     return a
 
 export UBOOT_ARCH = "${@map_uboot_arch(d.getVar('ARCH', True), d)}"