# Version=1.0
#
# Bidirectional mapping between a Debian arch tuple and a Debian arch name.
#
# Debian arch tuple names are formed as a combination of the Debian system
# name (from the ostable) and the Debian CPU name (from the cputable) after
# applying the variable substitutions.
#
# Debian arch names are the result of historical naming conventions in Debian,
# where the predominant system architectures have many of their parts in
# implicit form, by only exposing the CPU with the ABI bolted on, where less
# common architectures have their OS part spelled out, and where even less
# common ones, have their libc spelled out. This table maps between the ideal
# architecture tuple, with the current messy reality.
#
# - Column 1 is the Debian arch tuple name, as the normalized form of the
#   architecture names, used as the internal representation.
# - Column 2 is the Debian arch name, as the abbreviated form of the
#   architecture names, used as the public interface.
#
# Supported variables: <cpu>
#
# <Debian arch tuple>		<Debian arch name>
eabi-uclibc-linux-arm		uclibc-linux-armel
base-uclibc-linux-<cpu>		uclibc-linux-<cpu>
eabihf-musl-linux-arm		musl-linux-armhf
base-musl-linux-<cpu>		musl-linux-<cpu>
eabihf-gnu-linux-arm		armhf
eabi-gnu-linux-arm		armel
abin32-gnu-linux-mips64r6el	mipsn32r6el
abin32-gnu-linux-mips64r6	mipsn32r6
abin32-gnu-linux-mips64el	mipsn32el
abin32-gnu-linux-mips64		mipsn32
abi64-gnu-linux-mips64r6el	mips64r6el
abi64-gnu-linux-mips64r6	mips64r6
abi64-gnu-linux-mips64el	mips64el
abi64-gnu-linux-mips64		mips64
x32-gnu-linux-amd64		x32
base-gnu-linux-<cpu>		<cpu>
base-gnu-hurd-amd64		hurd-amd64
base-gnu-hurd-i386		hurd-i386
base-bsd-dragonflybsd-amd64	dragonflybsd-amd64
base-bsd-freebsd-amd64		freebsd-amd64
base-bsd-freebsd-arm		freebsd-arm
base-bsd-freebsd-arm64		freebsd-arm64
base-bsd-freebsd-i386		freebsd-i386
base-bsd-freebsd-powerpc	freebsd-powerpc
base-bsd-freebsd-ppc64		freebsd-ppc64
base-bsd-freebsd-riscv		freebsd-riscv
base-bsd-openbsd-<cpu>		openbsd-<cpu>
base-bsd-netbsd-<cpu>		netbsd-<cpu>
base-bsd-darwin-amd64		darwin-amd64
base-bsd-darwin-arm		darwin-arm
base-bsd-darwin-arm64		darwin-arm64
base-bsd-darwin-i386		darwin-i386
base-bsd-darwin-powerpc		darwin-powerpc
base-bsd-darwin-ppc64		darwin-ppc64
base-sysv-aix-powerpc		aix-powerpc
base-sysv-aix-ppc64		aix-ppc64
base-sysv-solaris-amd64		solaris-amd64
base-sysv-solaris-i386		solaris-i386
base-sysv-solaris-sparc		solaris-sparc
base-sysv-solaris-sparc64	solaris-sparc64
base-tos-mint-m68k		mint-m68k
