STM32MP1-Olinuxino: Cross Toolchain?

Started by Endalvik, February 27, 2023, 05:26:09 AM

Previous topic - Next topic

Endalvik

I have been able to rebuild the Olinuxino Debian image from the github olimage repo.  Very nice!

Now I would like to cross-compile custom libraries and applications, for this Olinuxino image.

Is there a way to extract the cross-compiler from the olimage build?

That way, do not have to worry about matching up GNU/GLIBC/binutils version with a 3rd-party toolchain.

Thanks,
Pete

Endalvik

Another approach:  where in the olimage scripts can one go and change the GNU/GLIBC/binutils versions used in generating th Olinuxino Debian images?

Regards,
Pete

HeHoPMaJIeH

Hi,
you can use Debian Buster with  gcc-multilib package installed.

p.s gcc version 8.3

Best regards,
Dimitar

Endalvik

#3
gcc-multilib is pretty much legacy now, so do not really view it as a long-term solution.

After digging a little further, I think the biggest roadblock is that the olimage is still built on GLIBC 2.31, which appears to have been deprecated in most modern cross-compile environments (e.g. buildroot).

Is there a way to change GLIBC version selection (and maybe GCC version as well), in the olimage build environment/scripts?

Thanks,
Pete