weechat-container icon indicating copy to clipboard operation
weechat-container copied to clipboard

Support cross platform builds

Open mmartinv opened this issue 3 years ago • 4 comments

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

mmartinv avatar Dec 02 '22 17:12 mmartinv

Hi, are there any plans to merge this at any point?

RABijl avatar Mar 30 '25 15:03 RABijl

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 avatar Mar 30 '25 19:03 flashcode

@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 avatar Apr 03 '25 09:04 mmartinv

@mmartinv since I'm probably the only one looking to use this, I'm willing to look at it instead.

RABijl avatar Apr 03 '25 11:04 RABijl