backport to buster
[hcoop/debian/openafs.git] / debian / sysname
1 #!/bin/sh
2 # Maps Debian architectures to AFS sysnames for building the clients and
3 # libraries. This doesn't worry about the kernel version; kern-sysname
4 # does that when building the kernel module.
5 #
6 # Not all architectures are listed, only those that OpenAFS supports.
7
8 case `dpkg --print-architecture` in
9 alpha)
10 echo alpha_linux_26
11 ;;
12 arm|armel|armhf|armv5tel)
13 echo arm_linux26
14 ;;
15 arm64)
16 echo arm64_linux26
17 ;;
18 amd64)
19 echo amd64_linux26
20 ;;
21 i[3456]86)
22 echo i386_linux26
23 ;;
24 ia64)
25 echo ia64_linux26
26 ;;
27 powerpc|powerpcspe)
28 echo ppc_linux26
29 ;;
30 ppc64)
31 echo ppc64_linux26
32 ;;
33 ppc64le)
34 echo ppc64le_linux26
35 ;;
36 s390)
37 echo s390_linux26
38 ;;
39 s390x)
40 echo s390x_linux26
41 ;;
42 sparc|sparc64)
43 echo sparc_linux26
44 ;;
45 *)
46 echo "ERROR: unsupported architecture" >&2
47 echo UNKNOWN
48 exit 1
49 esac