> On Oct 30, 2019, at 11:13 AM, Damjan Marion via Lists.Fd.Io > <dmarion=me....@lists.fd.io> wrote: > > On other side it is quite easy to run docker or lxc in cross-arch mode those > days and basically > have chosen distro inside the container which will produce proper artifacts > with close to zero modifications of the build system. > > So i’m wondering if we can go into that direction….
We use docker to build our software, but then we are just using docker running on x86 using the standard x-compile tools (either dpkg --add-arch under ubuntu or openwrt/buildroot build from source) that I mentioned in a previous mail. This is just a way for us to have a standard build environment in place. We aren't doing some sort of simulation of the foreign architecture. Using docker has some drawbacks.. It runs as root (thus the files created are owned by root), unless you run it as a user. If you run it as a user you end up needing to create a build container that has that user in it with the correct id (number) that matches the users id on the host system. Fetching things from the network using ssh (git clone) can get ugly (it's doable, and we do it, but...) I don't think what we're doing would help much with a project trying to enable x-compiling, but what we're doing may not be what your referring to as cross-arch mode. Thanks, Chris.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14393): https://lists.fd.io/g/vpp-dev/message/14393 Mute This Topic: https://lists.fd.io/mt/39781289/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-