]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-fitimage: support RISC-V
authorMichael Scott <mike@foundries.io>
Fri, 12 Apr 2019 05:46:25 +0000 (22:46 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Apr 2019 12:37:11 +0000 (13:37 +0100)
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.

Signed-off-by: Michael Scott <mike@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-fitimage.bbclass

index 2517d757466876bd777a89781826f6567e7076aa..2820ff968940f88fd1d3098869a4fecec598bec3 100644 (file)
@@ -10,6 +10,8 @@ python __anonymous () {
         uarch = d.getVar("UBOOT_ARCH")
         if uarch == "arm64":
             replacementtype = "Image"
+        elif uarch == "riscv":
+            replacementtype = "Image"
         elif uarch == "mips":
             replacementtype = "vmlinuz.bin"
         elif uarch == "x86":