sde-config: Enhanced scripts/Config to be sudo friendly, that is not everriding ...
[opensde-nopast.git] / architecture / x86 / kernel.conf.sh
blob28ca971b8c1643f3cdea9db4dc9bffb73c1baa52
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: architecture/x86/kernel.conf.sh
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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 ---
16 cat <<- 'EOT'
17 define(`INTEL', `Intel X86 PCs')dnl
19 dnl CPU configuration
20 dnl
21 EOT
23 linux_arch=386
24 for x in "i386 386" \
25 "i486 486" \
26 "c3 MCYRIXIII" \
27 "c3-2 MVIAC3_2" \
28 "pentium 586" \
29 "pentium-mmx 586MMX" \
30 "pentiumpro 686" \
31 "pentium2 PENTIUMII" \
32 "pentium3 PENTIUMIII" \
33 "pentium4 PENTIUM4" \
34 "pentium-m PENTIUMM" \
35 "k6 K6" \
36 "k6-2 K6" \
37 "k6-3 K6" \
38 "athlon K7" \
39 "athlon-tbird K7" \
40 "athlon4 K7" \
41 "athlon-xp K7" \
42 "athlon-mp K7"
44 set $x
45 [ "$1" = "$SDECFG_X86_OPT" ] && linux_arch=$2
46 done
48 # echo `grep -A 20 'Processor family' \
49 # /usr/src/linux/arch/i386/config.in | expand | \
50 # cut -c 57- | cut -f1 -d' ' | tr -d '"'`
52 for x in 386 486 586 586TSC 586MMX 686 PENTIUMIII PENTIUM4 PENTIUMM \
53 K6 K7 K8 ELAN CRUSOE WINCHIPC6 WINCHIP2 WINCHIP3D \
54 CYRIXIII VIAC3_2
56 if [ "$linux_arch" != "$x" ]
57 then echo "# CONFIG_M$x is not set"
58 else echo "CONFIG_M$x=y" ; fi
59 done
61 echo
62 cat <<- 'EOT'
63 dnl Memory Type Range Register support
64 dnl and other x86 goodies ...
65 dnl
66 CONFIG_MTRR=y
67 CONFIG_X86_MCE=y
68 CONFIG_X86_MCE_NONFATAL=y
69 CONFIG_X86_MCE_P4THERMAL=y
71 dnl PC Speaker for 2.5/6 kernel
72 CONFIG_INPUT_PCSPKR=y
73 CONFIG_USB_HIDINPUT_POWERBOOK=y
75 dnl Other useful stuff
76 dnl
77 CONFIG_RTC=y
79 include(`kernel-common.conf.m4')
80 include(`kernel-block.conf.m4')
81 include(`kernel-net.conf.m4')
82 include(`kernel-fs.conf.m4')
84 CONFIG_FB_VESA=y
86 dnl The default is to support those old ISA boxes.
87 dnl A target might get rid of it.
88 dnl
89 CONFIG_ISA=y
90 CONFIG_ISAPNP=y
91 CONFIG_PNPBIOS=y
93 CONFIG_PNP=y
94 EOT
95 } | m4 -I $base/architecture/$arch -I $base/architecture/share