From: Karel Zak Date: Mon, 27 Aug 2007 21:16:28 +0000 (+0200) Subject: setarch: finish adding parisc support X-Git-Tag: v2.13~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeadb4f4cb3e9a6f2d115733f3c971c765abd878;p=thirdparty%2Futil-linux.git setarch: finish adding parisc support Signed-off-by: LaMont Jones Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 00157e2dba..cfc2179772 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 6fc60aaddf..ca5e4972cf 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 d0cfe22947..e4a204adb9 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__)