mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-23 15:54:21 -09:00
With the new 'buildx' command using 'BuildKit' since Docker 23.0 [1], it become easy to build the same image for several architectures [2]. The only requirement is to use a Dockerfile without any architecture specific definition. Since our current Dockefile contains already some i386 specific packages (g++-multilib,libc6:i386) to provide x86 32bits support, we have to install them conditionally. Update the build process described in the Dockerfile accordingly. For now, Aarch64 hosts can't be used by the Buildroot testsuite (yet) since the Bootlin external toolchain (used by default) currently only support x86_64 hosts. [1] https://docs.docker.com/engine/release-notes/23.0/ [2] https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/ [3] https://www.docker.com/blog/multi-arch-build-what-about-gitlab-ci/ Signed-off-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>