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.

83 lines
1.7 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. for x in M386 M486 MCYRIXIII MVIAC3_2 M586 M586MMX M686 MPENTIUMII \
  42. MPENTIUMIII MPENTIUM4 MK6 MK7 MK8 MPSC GENERIC_CPU
  43. do
  44. if [ "$linux_arch" != "$x" ]
  45. then echo "# CONFIG_$x is not set"
  46. else echo "CONFIG_$x=y" ; fi
  47. done
  48. echo
  49. cat <<- 'EOT'
  50. dnl Memory Type Range Register support
  51. dnl (improvements in graphic speed ...)
  52. dnl
  53. CONFIG_MTRR=y
  54. dnl Some AGP support not enabled by default
  55. dnl
  56. CONFIG_AGP_AMD_8151=y
  57. CONFIG_AGP_SWORKS=y
  58. dnl PC Speaker for 2.5/6 kernel
  59. CONFIG_INPUT_PCSPKR=y
  60. dnl Other useful stuff
  61. dnl
  62. CONFIG_RTC=y
  63. include(`kernel-common.conf')
  64. include(`kernel-scsi.conf')
  65. include(`kernel-net.conf')
  66. include(`kernel-fs.conf')
  67. dnl NTFS for installation on esoteric notebooks where the user
  68. dnl might have the ISOs on an NTFS partition due to unsupported
  69. dnl floppy, CD, ... drives
  70. CONFIG_NTFS_FS=y
  71. EOT
  72. } | m4 -I $base/architecture/$arch -I $base/architecture/share