[poky] Building poky kernel with pre-compiled toolchain

Khem Raj raj.khem at gmail.com
Thu Jun 28 23:05:12 PDT 2018


On Thu, Jun 28, 2018 at 3:17 AM HRISHIKESH HEMANT BORATE HRISHIKESH
HEMANT BORATE <evd16i006 at iiitdm.ac.in> wrote:
>
> Hello,
>
> I have build the riscv-gnu-toolchain from here
> https://github.com/riscv/riscv-gnu-toolchain
>
> with march="rv64imafd" and mabi="lp64d"
>
> But, I am unable to use it to build the poky kernel. I tried changing TCMODE
> with this link as reference but it didn't work.
> https://www.yoctoproject.org/docs/1.8.1/ref-manual/ref-manual.html#var-TARGET_ARCH
>
> I also tried referring to section 3.1.3 of this manual
> https://www.yoctoproject.org/docs/1.8.1/adt-manual/adt-manual.html#extracting-the-root-filesystem
>
> but this is giving the following error
> ERROR: Task (/home/hrishikesh/cr/riscv-poky/build/../meta/recipes-devtools/gdb/gdb-cross_8.0.bb:do_compile) failed with exit code '1'
>
> Please help me to build the kernel with my pre-compiled toolchain.
>

it seems you want to hook up an external toolchain. you might have to
look through https://github.com/MentorEmbedded/meta-sourcery as an
example on how you can hook in prebuilt toolchains.

Regarding gdb issue, note that gdb support for riscv was not fully
upstream in 8.0 release so the gdb in OE-Core wont build out of
box, however if you use meta-riscv then it provides gdb-riscv recipe
which builds the gdb from riscv fork.

In anycase, I would advise that any patches needed to enable rv64imafd
in toolchain should be submitted either to oe-core or
to meta-riscv and then use the internal toolchain to get to what you
want, that might be fastest route.

> Thanks and Regards,
> Hrishikesh Borate
> --
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky


More information about the poky mailing list