~ubuntu-branches/ubuntu/lucid/gavl/lucid

« back to all changes in this revision

Viewing changes to cpuinfo.sh

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2008-11-07 13:47:46 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081107134746-s4s970fo1bcde9zw
Tags: 1.0.1-1
* Adopted package for debian, with the blessing of previous maintainer.
* Based new package on Christian Marillat's package for debian-multimedia.
* Removed support for ccache until I figure out how to make it work
  with cdbs.
* Changed library package name since ABI is not backward compatible, but
  upstream did not bump major soversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
do_x86()
62
62
{
 
63
 
 
64
CFLAGS=-O
 
65
if test $IsDarwin = yes; then
 
66
   CFLAGS="$CFLAGS -fno-pic -Wl,-read_only_relocs -Wl,suppress"
 
67
fi
 
68
 
63
69
if test -r /proc/cpuinfo; then
64
70
        _cpuinfo="cat /proc/cpuinfo"
65
71
else
66
 
        $CC -o cpuinfo utils/cpuinfo.c
 
72
        $CC $CFLAGS -o cpuinfo utils/cpuinfo.c
67
73
        _cpuinfo="./cpuinfo"
68
74
fi
69
75
 
158
164
                           fi
159
165
                           ;;
160
166
                        6) iproc=686
161
 
                           if test "$pmodel" -ge 7; then
 
167
                           if test "$pmodel" -ge 15; then
 
168
                                proc=nocona
 
169
                           elif test "$pmodel" -ge 13; then
 
170
                                proc=pentium-m
 
171
                           elif test "$pmodel" -ge 7; then
162
172
                                proc=pentium3
163
173
                           elif test "$pmodel" -ge 3; then
164
174
                                proc=pentium2
165
175
                           else
166
176
                                proc=i686
167
177
                           fi
168
 
                           ;;
 
178
                           ;;
169
179
                        15) proc=pentium4
170
180
                           ;;
171
181
                        *) proc=pentium4