From: Karel Zak Date: Mon, 27 Aug 2007 21:16:28 +0000 (+0200) Subject: setarch: finish adding parisc support X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeadb4f4cb3e9a6f2d115733f3c971c765abd878;p=util-linux setarch: finish adding parisc support Signed-off-by: LaMont Jones Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 00157e2d..cfc21797 100644 --- a/configure.ac +++ b/configure.ac @@ -253,6 +253,7 @@ UTIL_SET_ARCH(SPARC, sparc*) UTIL_SET_ARCH(PPC, ppc*|powerpc*) UTIL_SET_ARCH(M68K, m68*) UTIL_SET_ARCH(MIPS, mips*) +UTIL_SET_ARCH(HPPA, hppa*) AC_ARG_ENABLE([arch], AS_HELP_STRING([--enable-arch], [do build arch]), diff --git a/sys-utils/Makefile.am b/sys-utils/Makefile.am index 6fc60aad..ca5e4972 100644 --- a/sys-utils/Makefile.am +++ b/sys-utils/Makefile.am @@ -65,6 +65,9 @@ endif if ARCH_IA64 SETARCH_LINKS += i386 ia64 endif +if ARCH_HPPA +SETARCH_LINKS += parisc parisc64 parisc32 +endif install-exec-hook: for I in $(RDEV_LINKS); do \ diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index d0cfe229..e4a204ad 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -122,7 +122,8 @@ int set_arch(const char *pers, unsigned long options) {PER_LINUX, "ia64", "ia64"}, #endif #if defined(__hppa__) - {PER_LINUX, "parisc", "parisc"}, + {PER_LINUX32, "parisc32", "parisc"}, + {PER_LINUX32, "parisc", "parisc"}, {PER_LINUX, "parisc64", "parisc64"}, #endif #if defined(__s390x__) || defined(__s390__)