Support cross platform builds
Add support for cross building the following platforms:
-
linux/386 -
linux/amd64 -
linux/arm/v6 -
linux/arm/v7 -
linux/arm64 -
linux/ppc64le -
linux/s390x
To build for a different platform other than the local native platform the
qemu-user-static package must be installed.
Example to build AMD64, ARM64 and ARMv7 platforms:
make PLATFORM="linux/amd64 linux/arm64 linux/arm/v7" all-images
Hi, are there any plans to merge this at any point?
Hi, yes it should be merged once ready.
@mmartinv: there are a lot of changes in this PR, not all related to the cross platform build. Could you please split the commit into multiple commits, explaining in each commit the change and why it's done?
Thanks!
@flashcode: As you can imagine, I forgot about this. I will try find some time to better split the PR but no promises it will be soon. After 3 years I don't think we are in a rush anyway, are we? 😄
@mmartinv since I'm probably the only one looking to use this, I'm willing to look at it instead.