[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    Re: [OE-core] Questions: Using OE toolchain of different arch.
From:       Khem Raj <raj.khem () gmail ! com>
Date:       2019-07-31 17:41:28
Message-ID: CAMKF1spBpjdWoKPGDGvOrRgb9dx0YaEZVdM8KLpW2YSb9Um2ww () mail ! gmail ! com
[Download RAW message or body]

On Mon, Jun 10, 2019 at 12:47 PM Ying-Chun Liu (PaulLiu)
<paulliu@debian.org> wrote:
>
> Dear openembedded-core developers,
>
>
> I need some help about using OE toolchain from different arch.
>
>
> For example, on RPi3, we build the rootfs using armhf architecture.
>
> (require  conf/machine/include/arm/arch-armv6.inc)
>
> That means the whole rootfs is built by arm-linux-gnueabihf-*
>
>
> But when adding TF-A and OPTEE. On RPi3, TF-A and OPTEE runs in 64-bit
> mode. And TF-A will then load u-boot (BL33) and runs it in 32-bit mode.
> So the rest of the systems still run on 32-bit mode.
>
>
> The problem is now we want to build TF-A and OPTEE. So we need to
> compile it by aarch64 toolchains. That is we should use
> CROSS_COMPILE=aarch64-oe-linux-* from aarch64. But however it seems to
> me that I cannot do that. I tried to make a recipe for TF-A by chainging
> architecture of that recipe but I still don't have aarch64-oe-linux-*
> available. Is there a proper way of doing this?
>

I assume you want to use a prebuilt toolchain and not built another
variant along with
what OE will provide you. You can try something like this

https://github.com/akuster/meta-odroid/blob/master/recipes-kernel/linux/linux-hardkernel_3.14.bb#L7-L21

> BTW, this is not about ilp32 because we still want the whole system runs
> in armhf for compatibility.
>
> Yours,
> Paul
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic