On 4/12/19 9:35 AM, Khem Raj wrote:


On Thu, Apr 11, 2019 at 10:46 PM Michael Scott <m...@foundries.io <mailto:m...@foundries.io>> wrote:

    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 <m...@foundries.io
    <mailto:m...@foundries.io>>
    ---
     meta/classes/kernel-fitimage.bbclass | 2 ++
     1 file changed, 2 insertions(+)

    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 () {
             uarch = d.getVar("UBOOT_ARCH")
             if uarch == "arm64":
                 replacementtype = "Image"
    +        elif uarch == "riscv":
    +            replacementtype = "Image"


Make it or condition along with arm64 check
Sure, sending v2.


             elif uarch == "mips":
                 replacementtype = "vmlinuz.bin"
             elif uarch == "x86":
-- 2.21.0

-- _______________________________________________
    Openembedded-core mailing list
    Openembedded-core@lists.openembedded.org
    <mailto:Openembedded-core@lists.openembedded.org>
    http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
Michael Scott
Embedded Software Engineer at Foundries.io
"microPlatforms™ for Connected Products"
E: m...@foundries.io
W: https://www.foundries.io

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to