Skip to content

Support to build images for multiple platforms #93

Open
@aitorhh

Description

@aitorhh

Hi, I was wondering if there are any plans to build images for multiple platforms. At least to provide images for the platform capstan is running.

So far, I detect some changes needed:

  1. add cross compilation at make-dist
    env GOOS=linux GOARCH=arm64 go build -a -ldflags "-X main.VERSION$link_operator'$version' -w -s" -tags netgo -v -o dist/linux_arm64/capstan $package env GOOS=linux GOARCH=arm64 go build -a -ldflags "-X main.VERSION$link_operator'$version' -w -s" -tags netgo -v -o dist/linux_arm64/capstan $package
  2. The architecture was hardcoded when looking for the qemu binaries to execute.

I see some more changes needed regarding the options for the qemu-system-aarch64 like -machine.

But I was wondering more about the package that are already used to build the new package (osv-loader, osv.bootloader,....) I guess they are provided for x86_64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions