[linux-yocto] multiple compilers
Thomas PERROT
thomas.perrot at tupi.fr
Mon Mar 30 07:48:32 PDT 2015
Hi,
There are two solutions, you can specify a preferred compiler in a
recipe or change the main compiler.
To change preferred compiler in a recipe:
TOOLCHAIN_pn-<recipe-name> = "<your_compiler>"
DEPENDS_append_pn-<recipe-name> = " <your_compiler>-cross "
To change the main compiler:
TOOLCHAIN = "<your_compiler>"
There is a example in the official wiki :
http://www.openembedded.org/wiki/Adding_a_secondary_toolchain
Best regards,
Thomas P.
On Fri, Mar 27, 2015 at 10:32 PM, Mehaffey, John
<John_Mehaffey at mentor.com> wrote:
> Hi Dan,
> I don't generally do compilers, but the Yocto way is to create another
> recipe where the SRC_URI points to the tarball/git repository you want to
> build from. It may be that you will need to start with an older compiler .bb
> recipe, you don't say how far back you need to go.
>
> You don't really say what you've tried, so I can't help much with specifics,
> as I am not sure of your level of proficiency with Yocto/bitbake.
>
>
> Sincerely,
> John Mehaffey
> Linux System Architect
> Mentor Graphics
> ________________________________
> From: linux-yocto-bounces at yoctoproject.org
> [linux-yocto-bounces at yoctoproject.org] on behalf of Dan Gundlach
> [cyclist2918 at gmail.com]
> Sent: Friday, March 27, 2015 1:33 PM
> To: linux-yocto at yoctoproject.org
> Subject: [linux-yocto] multiple compilers
>
> How do I configure yocto to create multiple compilers? I need to create a
> second (older) compiler to build the kernel. It won't boot using the
> current one. I've searched in vain to find a solution. It says you can do
> it, but it dosn't tell you how.
>
> --
> _______________________________________________
> linux-yocto mailing list
> linux-yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/linux-yocto
>
More information about the linux-yocto
mailing list