2020-07-07 08:22 AM
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
Solved! Go to Solution.
2020-07-08 01:26 AM
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
2020-07-07 08:36 AM
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
2020-07-07 08:43 AM
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
2020-07-08 01:26 AM
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
2020-07-08 01:34 AM
Thanks @koan
@aqueisser
This require clarification from my previous comment.
As advised by @koan you can add support of compilation on target in your distribution.
We only removed installation on the same from debian package repository. (apt-get service)
Olivier
2020-07-08 03:45 PM
Great, I'll give it a try.
Thanks Marco and Olivier
2020-07-10 08:18 AM
Adding
IMAGE_INSTALL_append = " packagegroup-core-buildessential"
worked like a charm - thanks again.
2022-04-16 08:43 PM
Thank you for sharing detailed answer. I will try the solutions discussed and update you.
I have linux 18.04.