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.

88 lines
1.9 KiB

  1. {
  2. cat <<- 'EOT'
  3. define(`INTEL', `Intel X86 PCs')dnl
  4. dnl CPU configuration
  5. dnl
  6. CONFIG_X86_GENERIC=y
  7. EOT
  8. if [ "$ROCKCFG_X86_BITS" = 32 ] ; then
  9. linux_arch="M486"
  10. for x in "i386 M386" \
  11. "i486 M486" \
  12. "via-c3 MCYRIXIII" \
  13. "via-c3-2 MVIAC3_2" \
  14. "pentium M586" \
  15. "pentium-mmx M586MMX" \
  16. "pentiumpro M686" \
  17. "pentium2 MPENTIUMII" \
  18. "pentium3 MPENTIUMIII" \
  19. "pentium4 MPENTIUM4" \
  20. "k6 MK6" \
  21. "k6-2 MK6" \
  22. "k6-3 MK6" \
  23. "athlon MK7" \
  24. "athlon-tbird MK7" \
  25. "athlon4 MK7" \
  26. "athlon-xp MK7" \
  27. "athlon-mp MK7"
  28. do
  29. set $x
  30. [ "$1" = "$ROCKCFG_X86_OPT" ] && linux_arch=$2
  31. done
  32. else
  33. linux_arch="GENERIC_CPU"
  34. for x in "athlon MK8" \
  35. "intel MPSC"
  36. do
  37. set $x
  38. [ "$1" = "$ROCKCFG_X86_OPT" ] && linux_arch=$2
  39. done
  40. fi
  41. # echo `grep -A 20 'Processor family' \
  42. # /usr/src/linux/arch/i386/config.in | expand | \
  43. # cut -c 57- | cut -f1 -d' ' | tr -d '"'`
  44. #
  45. for x in M386 M486 M586 M586TSC M586MMX M686 MPENTIUMIII MPENTIUM4 \
  46. MK6 MK7 MK8 MELAN MCRUSOE MWINCHIPC6 MWINCHIP2 MWINCHIP3D \
  47. MCYRIXIII MVIAC3_2 MPSC GENERIC_CPU
  48. do
  49. if [ "$linux_arch" != "$x" ]
  50. then echo "# CONFIG_$x is not set"
  51. else echo "CONFIG_$x=y" ; fi
  52. done
  53. echo
  54. cat <<- 'EOT'
  55. dnl Memory Type Range Register support
  56. dnl (improvements in graphic speed ...)
  57. dnl
  58. CONFIG_MTRR=y
  59. dnl Some AGP support not enabled by default
  60. dnl
  61. CONFIG_AGP_AMD_8151=y
  62. CONFIG_AGP_SWORKS=y
  63. dnl PC Speaker for 2.5/6 kernel
  64. CONFIG_INPUT_PCSPKR=y
  65. dnl Other useful stuff
  66. dnl
  67. CONFIG_RTC=y
  68. include(`kernel-common.conf')
  69. include(`kernel-scsi.conf')
  70. include(`kernel-net.conf')
  71. include(`kernel-fs.conf')
  72. dnl NTFS for installation on esoteric notebooks where the user
  73. dnl might have the ISOs on an NTFS partition due to unsupported
  74. dnl floppy, CD, ... drives
  75. CONFIG_NTFS_FS=y
  76. EOT
  77. } | m4 -I $base/architecture/$arch -I $base/architecture/share