summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorThomas Perrot <thomas.perrot@tupi.fr>2017-12-13 10:26:38 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-06 10:13:57 +0000
commit70422d7d1174cb7e70b40602878e3e4bbe733f79 (patch)
treef8127138978f4eb5c520c8e0747bc16243cc7bc5 /meta/classes
parent6ee061c10e4b65ca48445331dcdd645c53d12366 (diff)
downloadpoky-70422d7d1174cb7e70b40602878e3e4bbe733f79.tar.gz
kernel-fitimage: Fix bad image type replacement for aarch64
When using kernel-fitimage class with aarch64, the image type has to be Image not zImage. This patch fixes the bad image type replacement for aarch64 (From OE-Core rev: 88f2f2364b615e2510b4378f3cffa5f8df282da6) Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> Signed-off-by: Ross Burton <ross.burton@intel.com> (cherry picked from commit d14adead5861007ac7e95c32396491f907ab9f8f) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel-fitimage.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 179185b6b2..9baf399f2e 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -7,9 +7,12 @@ python __anonymous () {
7 depends = "%s u-boot-mkimage-native dtc-native" % depends 7 depends = "%s u-boot-mkimage-native dtc-native" % depends
8 d.setVar("DEPENDS", depends) 8 d.setVar("DEPENDS", depends)
9 9
10 if d.getVar("UBOOT_ARCH") == "mips": 10 uarch = d.getVar("UBOOT_ARCH")
11 if uarch == "arm64":
12 replacementtype = "Image"
13 elif uarch == "mips":
11 replacementtype = "vmlinuz.bin" 14 replacementtype = "vmlinuz.bin"
12 elif d.getVar("UBOOT_ARCH") == "x86": 15 elif uarch == "x86":
13 replacementtype = "bzImage" 16 replacementtype = "bzImage"
14 else: 17 else:
15 replacementtype = "zImage" 18 replacementtype = "zImage"