From 80ec3db380dec6156a47f3b719929f730b9d7c98 Mon Sep 17 00:00:00 2001 From: R Sharada Date: Mon, 19 Sep 2005 12:42:51 +0530 Subject: basic kexec tools for ppc64 (compile warning cleanups) Hello, The basic_kexec_tools_for_ppc64 had a few issues with variable redeclarations that was throwing some compile warnings on GCC 4, though I was not seeing some of those on my GCC ver 3 on SLES9. This is a revised patch, which cleans up the errors and this should compile ok on ppc64. I also cleaned up a few other compile warnings that were showing up on my system. Thanks to Michael Neuling for pointing this out. Thanks and Regards, Sharada This provides the basic functionality in kexec-elf-ppc64.c to load the various segments required for kexec-tools on ppc64. It also adds ppc64 arch support in build scripts and cleans up some misc error in member deferencing to allow the build to succeed. Signed-off-by: R Sharada Signed-off-by: Mohan Kumar Signed-off-by: Maneesh Soni --- configure | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 5370f5e..0c1d192 100755 --- a/configure +++ b/configure @@ -1387,6 +1387,9 @@ case $host_cpu in s390x ) host_cpu="s390" ;; + powerpc64 ) + host_cpu="ppc64" + ;; * ) host_cpu="$host_cpu" ;; @@ -1424,6 +1427,10 @@ if test "${with_gamecube+set}" = set; then EXTRA_CFLAGS="$EXTRA_CFLAGS -DCONFIG_GAMECUBE=1" fi; +# Check whether ppc64. Add -m64 for building 64-bit binary +if test "$ARCH"=ppc64; then + EXTRA_CFLAGS="$EXTRA_CFLAGS -m64" +fi; # Check whether --with-zlib or --without-zlib was given. if test "${with_zlib+set}" = set; then -- cgit