Allowing linuxkit to recongnize linux/riscv64 arch

Signed-off-by: Roman Shaposhnik <rvs@zededa.com>
This commit is contained in:
Roman Shaposhnik 2021-05-18 12:09:43 -07:00
parent 1096165072
commit 378cfc0b3d
2 changed files with 1 additions and 10 deletions

View File

@ -352,12 +352,7 @@ func (p Pkg) buildArch(d dockerRunner, c lktspec.CacheProvider, arch string, arg
tagArch string
tag = p.Tag()
)
switch arch {
case "amd64", "arm64", "s390x":
tagArch = tag + "-" + arch
default:
return nil, fmt.Errorf("Unknown arch %q", arch)
}
tagArch = tag + "-" + arch
fmt.Fprintf(writer, "Building for arch %s as %s\n", arch, tagArch)
if !bo.force {

View File

@ -26,10 +26,6 @@ const (
buildkitBuilderName = "linuxkit"
)
var platforms = []string{
"linux/amd64", "linux/arm64", "linux/s390x",
}
type dockerRunner interface {
buildkitCheck() error
tag(ref, tag string) error