Setup has improved thanks to help from the #RaspberryPi forums.
Turns out the Pi toolchains in the repos don't support #ARMv6, instead starting at #ARMv7. It's no wonder my test binary was crashing out on Rev 1.0 hardware. Solved it with these toolchains: https://github.com/tttapa/docker-arm-cross-toolchain, running on #Ubuntu under #WSL.
Now I can build for #Windows, trad #Linux and every A/B/hundred/zero Pi from a single make command. Just need to figure out the optimisation flags for each now.
#raspberrypi #armv6 #armv7 #ubuntu #wsl #windows #linux #c #make #programming