summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMichael Scott <mike@foundries.io>2019-04-11 22:46:25 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-12 13:40:21 +0100
commit093fdcb35ddb4cc35f20f052169ad66c9d5af367 (patch)
tree5fa8e1c287ec79f7072889ef3c46ad8f58f7c9a4 /meta/classes
parent861e0ad2a3d5e0ea4530d6375e2c0897c8bb2102 (diff)
downloadpoky-093fdcb35ddb4cc35f20f052169ad66c9d5af367.tar.gz
kernel-fitimage: support RISC-V
Support RISC-V kernel image, using the "Image" target. This change allows RISC-V support for fitImage via the following flow: OpenSBI -> u-boot (as payload) -> Linux kernel (as fitImage with ramdisk and dtb). This was tested using QEMU RISC-V 64-bit. (From OE-Core rev: 35d0842c637b7d7ce0ab01f43b594c19a964872f) Signed-off-by: Michael Scott <mike@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel-fitimage.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 2517d75746..2820ff9689 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -10,6 +10,8 @@ python __anonymous () {
10 uarch = d.getVar("UBOOT_ARCH") 10 uarch = d.getVar("UBOOT_ARCH")
11 if uarch == "arm64": 11 if uarch == "arm64":
12 replacementtype = "Image" 12 replacementtype = "Image"
13 elif uarch == "riscv":
14 replacementtype = "Image"
13 elif uarch == "mips": 15 elif uarch == "mips":
14 replacementtype = "vmlinuz.bin" 16 replacementtype = "vmlinuz.bin"
15 elif uarch == "x86": 17 elif uarch == "x86":