OpenSDE Framework (without history before r20070)
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.

96 lines
2.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: architecture/x86/kernel.conf.sh
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. {
  15. cat <<- 'EOT'
  16. define(`INTEL', `Intel X86 PCs')dnl
  17. dnl CPU configuration
  18. dnl
  19. EOT
  20. linux_arch=386
  21. for x in "i386 386" \
  22. "i486 486" \
  23. "c3 MCYRIXIII" \
  24. "c3-2 MVIAC3_2" \
  25. "pentium 586" \
  26. "pentium-mmx 586MMX" \
  27. "pentiumpro 686" \
  28. "pentium2 PENTIUMII" \
  29. "pentium3 PENTIUMIII" \
  30. "pentium4 PENTIUM4" \
  31. "pentium-m PENTIUMM" \
  32. "k6 K6" \
  33. "k6-2 K6" \
  34. "k6-3 K6" \
  35. "athlon K7" \
  36. "athlon-tbird K7" \
  37. "athlon4 K7" \
  38. "athlon-xp K7" \
  39. "athlon-mp K7"
  40. do
  41. set $x
  42. [ "$1" = "$SDECFG_X86_OPT" ] && linux_arch=$2
  43. done
  44. # echo `grep -A 20 'Processor family' \
  45. # /usr/src/linux/arch/i386/config.in | expand | \
  46. # cut -c 57- | cut -f1 -d' ' | tr -d '"'`
  47. #
  48. for x in 386 486 586 586TSC 586MMX 686 PENTIUMIII PENTIUM4 PENTIUMM \
  49. K6 K7 K8 ELAN CRUSOE WINCHIPC6 WINCHIP2 WINCHIP3D \
  50. CYRIXIII VIAC3_2
  51. do
  52. if [ "$linux_arch" != "$x" ]
  53. then echo "# CONFIG_M$x is not set"
  54. else echo "CONFIG_M$x=y" ; fi
  55. done
  56. echo
  57. cat <<- 'EOT'
  58. dnl Memory Type Range Register support
  59. dnl and other x86 goodies ...
  60. dnl
  61. CONFIG_MTRR=y
  62. CONFIG_X86_MCE=y
  63. CONFIG_X86_MCE_NONFATAL=y
  64. CONFIG_X86_MCE_P4THERMAL=y
  65. dnl PC Speaker for 2.5/6 kernel
  66. CONFIG_INPUT_PCSPKR=y
  67. CONFIG_USB_HIDINPUT_POWERBOOK=y
  68. dnl Other useful stuff
  69. dnl
  70. CONFIG_RTC=y
  71. include(`kernel-common.conf.m4')
  72. include(`kernel-block.conf.m4')
  73. include(`kernel-net.conf.m4')
  74. include(`kernel-fs.conf.m4')
  75. CONFIG_FB_VESA=y
  76. dnl The default is to support those old ISA boxes.
  77. dnl A target might get rid of it.
  78. dnl
  79. CONFIG_ISA=y
  80. CONFIG_ISAPNP=y
  81. CONFIG_PNPBIOS=y
  82. CONFIG_PNP=y
  83. EOT
  84. } | m4 -I $base/architecture/$arch -I $base/architecture/share