Patchwork kernel-arch.bbclass: add arm64 support to U-Bootarchitecture map

login
register
mail settings
Submitter Fathi Boudra
Date March 20, 2014, 5:49 p.m.
Message ID <1395337775-26756-1-git-send-email-fathi.boudra@linaro.org>
Download mbox | patch
Permalink /patch/68957/
State New
Headers show

Comments

Fathi Boudra - March 20, 2014, 5:49 p.m.
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>
---
 meta/classes/kernel-arch.bbclass | 1 +
 1 file changed, 1 insertion(+)
Otavio Salvador - March 20, 2014, 9:01 p.m.
On Thu, Mar 20, 2014 at 2:49 PM, Fathi Boudra <fathi.boudra@linaro.org> wrote:
> 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>

Short log typo.

Patch

diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass
index 6a6ad91..bbcfa15 100644
--- a/meta/classes/kernel-arch.bbclass
+++ b/meta/classes/kernel-arch.bbclass
@@ -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)}"