Ticket #6737: CPU_auto-detection.patch
| File CPU_auto-detection.patch, 1.4 KB (added by mythtv@…, 4 years ago) |
|---|
-
configure
2402 2402 check_deps $ARCH_EXT_LIST 2403 2403 2404 2404 # if no tune setting and we know cpu class look at $processor 2405 if ! enabled_any cpu_override cross_compile && enabledproc_opt; then2405 if ! enabled_any cpu_override cross_compile proc_opt; then 2406 2406 # first try to tune based on processor info 2407 # Intel i7 processors (EMT64T capable) 2408 if expr "$processor" : ".*Intel(R).*Core(TM) i7 CPU.*" > /dev/null ; then 2409 cpu="core2" 2407 2410 # EM64T era Intel Xeon 2408 if expr "$processor" : ".*Intel(R) Xeon(R) CPU.*51[1-6][08]" > /dev/null ; then2411 elif expr "$processor" : ".*Intel(R) Xeon(R) CPU.*51[1-6][08]" > /dev/null ; then 2409 2412 cpu="core2" 2410 2413 elif expr "$processor" : ".*Intel(R) Xeon(R) CPU.*54[0-9][025]" > /dev/null ; then 2411 2414 cpu="core2" … … 2501 2504 # AMD Opteron 2502 2505 elif expr "$processor" : ".*AMD Opteron(tm)" >/dev/null ; then 2503 2506 cpu="k8" 2507 # Athlon MP 2508 elif expr "$processor" : ".*AMD Athlon(tm) MP.*" > /dev/null ; then 2509 cpu="athlon-mp" 2504 2510 # Athlon XP 2505 2511 elif expr "$processor" : "athlon-xp" > /dev/null ; then 2506 2512 cpu="athlon-xp" … … 2556 2562 elif test x"$arch_raw" = x"i386"; then 2557 2563 cpu="i386" 2558 2564 proc_error_msg="yes" 2565 else 2566 proc_error_msg="yes" 2559 2567 fi 2560 2568 fi 2561 2569
