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- = ""
DEPENDS_append_pn- = " -cross "
To change the main compiler:
TOOLCHAIN = ""
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
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-boun...@yoctoproject.org
> [linux-yocto-boun...@yoctoproject.org] on behalf of Dan Gundlach
> [cyclist2...@gmail.com]
> Sent: Friday, March 27, 2015 1:33 PM
> To: linux-yocto@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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/linux-yocto
>
--
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto