gcc in Yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

gcc in Yocto

10,082 Views
niklasmolin
Senior Contributor I

Hi.

I'm trying to include gcc in my Linux image, when building in Yocto.

I recall before that I included :

IMAGE_FEATURES += " \

    dev-pkgs \

    tools-sdk \

"

But now it seems like it's not working anymore.

How do i include gcc compiler in my image?

Thanks,

Niklas

Labels (2)
0 Kudos
Reply
5 Replies

2,509 Views
LeonardoSandova
Specialist I

Clean your image

bitbake -c clean -f

If that does not help, add EXTRA_IMAGE_FEATURES? += "feature1 ...." into your local.conf.

Leo

0 Kudos
Reply

2,509 Views
niklasmolin
Senior Contributor I

Hi Leo.

You mentioned EXTRA_IMAGE_FEATURES, what kind of features should it be there to get the gcc?

Right now I can find the arm-poky..... commands in my image, but not the gcc it self.

I did a clean, both on my linux-imx and core-image...

Best regards,

Niklas

0 Kudos
Reply

2,509 Views
LeonardoSandova
Specialist I

Look at local.conf.sample under sources/poky/meta-yocto/conf. All default features are clearly explained there. BTW, what you need is the tool-sdk feature.

?

0 Kudos
Reply

2,509 Views
niklasmolin
Senior Contributor I

Hi Leo.

This is the error I get:

ERROR: 'tools-sdk' in IMAGE_FEATURES is not a valid image feature. Valid

features: dbg-pkgs debug-tweaks dev-pkgs doc-pkgs package-management

ptest-pkgs read-only-rootfs splash staticdev-pkgs

Best regards,

Niklas

On Fri, Mar 21, 2014 at 2:46 PM, Leonardo Sandoval Gonzalez <

0 Kudos
Reply

2,509 Views
niklasmolin
Senior Contributor I

I included gcc in my local.conf (IMAGE_INSTALL).

Then make a link in /usr/bin from the arm-poky.... to gcc etc.

0 Kudos
Reply