mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.6 KiB

  1. {
  2. cat <<- 'EOT'
  3. define(`INTEL', `Intel X86 PCs')dnl
  4. dnl CPU configuration
  5. dnl
  6. EOT
  7. linux_arch=386
  8. for x in "i386 386" \
  9. "i486 486" \
  10. "via-c3 MCYRIXIII" \
  11. "via-c3-2 MVIAC3_2" \
  12. "pentium 586" \
  13. "pentium-mmx 586MMX" \
  14. "pentiumpro 686" \
  15. "pentium2 PENTIUMII" \
  16. "pentium3 PENTIUMIII" \
  17. "pentium4 PENTIUM4" \
  18. "k6 K6" \
  19. "k6-2 K6" \
  20. "k6-3 K6" \
  21. "athlon K7" \
  22. "athlon-tbird K7" \
  23. "athlon4 K7" \
  24. "athlon-xp K7" \
  25. "athlon-mp K7"
  26. do
  27. set $x
  28. [ "$1" = "$ROCKCFG_X86_OPT" ] && linux_arch=$2
  29. done
  30. # echo `grep -A 20 'Processor family' \
  31. # /usr/src/linux/arch/i386/config.in | expand | \
  32. # cut -c 57- | cut -f1 -d' ' | tr -d '"'`
  33. #
  34. for x in 386 486 586 586TSC 586MMX 686 PENTIUMIII PENTIUM4 \
  35. K6 K7 K8 ELAN CRUSOE WINCHIPC6 WINCHIP2 WINCHIP3D \
  36. CYRIXIII VIAC3_2
  37. do
  38. if [ "$linux_arch" != "$x" ]
  39. then echo "# CONFIG_M$x is not set"
  40. else echo "CONFIG_M$x=y" ; fi
  41. done
  42. echo
  43. cat <<- 'EOT'
  44. dnl Memory Type Range Register support
  45. dnl (improvements in graphic speed ...)
  46. dnl
  47. CONFIG_MTRR=y
  48. dnl Some AGP support not enabled by default
  49. dnl
  50. CONFIG_AGP_AMD_8151=y
  51. CONFIG_AGP_SWORKS=y
  52. dnl PC Speaker for 2.5/6 kernel
  53. CONFIG_INPUT_PCSPKR=y
  54. dnl Other useful stuff
  55. dnl
  56. CONFIG_RTC=y
  57. include(`kernel-common.conf')
  58. include(`kernel-scsi.conf')
  59. include(`kernel-net.conf')
  60. include(`kernel-fs.conf')
  61. dnl NTFS for installation on esoteric notebooks where the user
  62. dnl might have the ISOs on an NTFS partition due to unsupported
  63. dnl floppy, CD, ... drives
  64. CONFIG_NTFS_FS=y
  65. EOT
  66. } | m4 -I $base/architecture/$arch -I $base/architecture/share