This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] powerpc: Automatically guess --with-cpu value


On 12/24/15 11:34 AM, Tulio Magno Quites Machado Filho wrote:
What about this instead?

   case "$archcpu" in
   _ARCH_PWR5X)
     submachine="power5+"
     { $as_echo "$as_me:${as_lineno-$LINENO}: CPU identified as $submachine" >&5
       $as_echo "$as_me:  CPU identified as $submachine" >&6;}
     ;;
   _ARCH_PWR*)
   submachine=$(echo ${archcpu/_ARCH_PWR/power} | tr '[:upper:]' '[:lower:]')
     { $as_echo "$as_me:${as_lineno-$LINENO}: CPU identified as $submachine" >&5
       $as_echo "$as_me:  CPU identified as $submachine" >&6;}
     ;;
   *)
     submachine=""
     { $as_echo "$as_me:${as_lineno-$LINENO}: CPU not identified; using default" >&5
       $as_echo "$as_me:  CPU not identified; using default" >&6;}
     ;;
   esac


Good idea. Need to compute the POWER6X case as well.

Here's another try.

--
Carlos Eduardo Seo
Software Engineer - Linux on Power Toolchain
cseo@linux.vnet.ibm.com

Attachment: 0001-powerpc-Automatic-CPU-detection-in-preconfigure.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]