[yocto] Enabling_gcc

Khem Raj raj.khem at gmail.com
Mon Oct 23 19:18:00 PDT 2017


On Mon, Oct 23, 2017 at 4:57 PM, vishal ashapur <vishalashapur at gmail.com> wrote:
> Ya, I want gcc compiler to be on target image. I'm using raspberry pi3
> board.

In local.conf add.

EXTRA_IMAGE_FEATURES_append = " tools-sdk tools-debug dbg-pkgs"

if you are using an image which does not inherit core-image then you can add
the needed bits to image as Randy suggested.


>
> On 24-Oct-2017 1:14 AM, "Randy MacLeod" <randy.macleod at windriver.com> wrote:
>
> On 2017-10-23 01:17 PM, Khem Raj wrote:
>>
>> On Mon, Oct 23, 2017 at 4:52 AM, vishal ashapur <vishalashapur at gmail.com>
>> wrote:
>>>
>>> Hi
>>> I'm building a Linux kernel from yocto, on which I have to enable gcc.
>>> Can u
>>> please tell me how to enable gcc. And also usb_modeswitch package
>>
>>
>> it uses gcc, I think you need to clarify your question a bit so
>> someone can provide you help.
>>
>
> Do you mean that you want the compiler in the target image?
>
> If so, add:
>   IMAGE_INSTALL += "packagegroup-core-buildessential"
> to your conf/local.conf file.
>
>
> ../Randy
>
>
> FYI, I looked-up that up in WR's distro feature:
>
> https://github.com/WindRiver-OpenSourceLabs/wr-base/blob/LB21_7.0_RCPL0002/templates/feature/target-toolchain/image.inc
> since I know it well. :)
>
> I didn't quickly find it in the YP manual:
>   http://www.yoctoproject.org/docs/2.2/mega-manual/mega-manual.html
> but it should be there.
>
> --
> # Randy MacLeod.  WR Linux
> # Wind River an Intel Company
>
>



More information about the yocto mailing list