shared: Add gentoo architecture entries

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2019-02-09 23:37:27 -05:00
parent bef1bd3fde
commit f660bfd95e
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -25,10 +25,21 @@ var debianArchitectureNames = map[int]string{
osarch.ARCH_64BIT_POWERPC_LITTLE_ENDIAN: "ppc64el",
}
var gentooArchitectureNames = map[int]string{
osarch.ARCH_32BIT_INTEL_X86: "i686",
osarch.ARCH_64BIT_INTEL_X86: "amd64",
osarch.ARCH_32BIT_ARMV7_LITTLE_ENDIAN: "armv7a_hardfp",
osarch.ARCH_32BIT_POWERPC_BIG_ENDIAN: "ppc",
osarch.ARCH_64BIT_POWERPC_BIG_ENDIAN: "ppc64",
osarch.ARCH_64BIT_POWERPC_LITTLE_ENDIAN: "ppc64le",
osarch.ARCH_64BIT_S390_BIG_ENDIAN: "s390x",
}
var distroArchitecture = map[string]map[int]string{
"alpinelinux": alpineLinuxArchitectureNames,
"centos": centosArchitectureNames,
"debian": debianArchitectureNames,
"gentoo": gentooArchitectureNames,
}
// GetArch returns the correct architecture name used by the specified