Skip to main content
aqueisser
Associate III
July 7, 2020
Solved

How to add native gcc to linux distribution?

  • July 7, 2020
  • 3 replies
  • 4303 views

What's the process to add a native gcc to openstlinux-weston so I can compile from the command line on my DK2 dev board? I was able to rebuild using bitbake and started poking around to find which layer to enable to get a native gcc running on the STM32MP1 dev board (DK2) but I can't figure it out.

Or should I use a different approach, is there a pre-built image for the DK2 with native gcc?

Thanks,

Andrew

This topic has been closed for replies.
Best answer by koan

Hi @aqueisser​ 

add this line to your local.conf

IMAGE_INSTALL_append = " packagegroup-core-buildessential"

https://wiki.koansoftware.com/index.php/Add_native_gcc_to_the_target_image

--

Marco Cavallini

KOAN - Bergamo - Italia

embedded software engineering

https://KoanSoftware.com

3 replies

Olivier GALLIEN
Technical Moderator
July 7, 2020

Hi @aqueisser​ 

Compiling on target does not only require gcc but some other package to bring complete toolset.

Taking into account complexity and low performance service it may offer we decided to not support compilation on target.

Moreover we consider it's quite straightforward to use Developer Package SDK on HOST + ssh connection to board.

Could you please share what benefit you expect to compile on target ?

Thanks

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
aqueisser
aqueisserAuthor
Associate III
July 7, 2020

Hi Olivier,

My main problem is that some python packages I've been trying to install (e.g. Kivy) try to launch the compiler at some point. I thought it would be easier to run gcc on the target instead of using the host SDK to run a python script (something like "python -m pip install xyz"). If there's a way to do this in the cross-compile SDK I'd be happy to try that but not sure where to start.

Andrew

koan
koanBest answer
Associate II
July 8, 2020

Hi @aqueisser​ 

add this line to your local.conf

IMAGE_INSTALL_append = " packagegroup-core-buildessential"

https://wiki.koansoftware.com/index.php/Add_native_gcc_to_the_target_image

--

Marco Cavallini

KOAN - Bergamo - Italia

embedded software engineering

https://KoanSoftware.com

aqueisser
aqueisserAuthor
Associate III
July 10, 2020

Adding

IMAGE_INSTALL_append = " packagegroup-core-buildessential"

worked like a charm - thanks again.

ellaharrison
Visitor II
April 17, 2022

Thank you for sharing detailed answer. I will try the solutions discussed and update you.

I have linux 18.04.