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.

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