Re:Mirantis acquires Docker Enterprise and Docker raises $35M
by derefr on Wednesday November 13, 2019 @08:13PM
(#21531777)
What the parent is describing by "Frankenstein build environment" is a bog-standard cross-compilation toolchain/SDK. You don't infect the host with the toolchain's packages; you install the toolchain's packages in the toolchain chroot. (If you've ever developed for an embedded arch, this will be painfully familiar.)
[ Parent
| on HN ]
Re:Mirantis acquires Docker Enterprise and Docker raises $35M
by tuldia on Wednesday November 13, 2019 @08:35PM
(#21531924)
> You don't infect the host with the toolchain's packages; you install the toolchain's packages in the toolchain chroot.
Infect is a too strong word, because normally the cross compiler will coexist well with your system. But you are right about the chroot, throw it away and start again, repeat. That is great!
I normally install gcc-arm-linux-gnueabihf + qemu-user-static and enable binfmt. It works well for building armhf, but I can imagine for things like ESP32 where you don't have the toolchain sources and etc.