sdt / docker-raspberry-pi-cross-compiler

Raspberry Pi cross-compiler and sysroot in a Docker container.
https://hub.docker.com/r/sdthirlwall/raspberry-pi-cross-compiler/
MIT License
246 stars 69 forks source link

How can you select rpi3 vs rpi1 toolchain? #16

Closed richtong closed 7 years ago

richtong commented 8 years ago

Is this still the way to go, there seem to be lots of folks thinking about cross compilation these days.

I'm wondering how you are doing sys root and preinstalling packages as other have mentioned, but also how do you handle rpi3 specific binaries. That is arm7 or even arm8 compilation

sdt commented 8 years ago

I haven't touched this for a while now.

I originally had the toolchain selectable at runtime, but switched to hardcoding it, as the runtime selection made a lot of downstream things more difficult.

If multiple toolchains are preferable, it might be better to pass that in as a build arg when building the docker image.

Is there a toolchain here you'd rather use? This one looks to have been added since I was last here: arm-rpi-4.9.3-linux-gnueabihf

sdt commented 8 years ago

@richtong please see https://github.com/sdt/docker-raspberry-pi-cross-compiler/issues/15#issuecomment-226926239 about sysroots

sdt commented 7 years ago

Closing as part of an old issue tidy-up. Please create a new issue if necessary.