[git] Updated (1.5.5.1 -> 1.5.5.4)
[opensde-package-nopast.git] / base / linux26 / 12-conf-hacks.patch
blob91b51a356cc5735a28ca98ec38edf088be99499e
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../linux26/12-conf-hacks.patch
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 Clifford Wolf
8 # More information can be found in the files COPYING and README.
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
15 # version.
16 # --- SDE-COPYRIGHT-NOTE-END ---
18 Set all unset options to module. Needed by the T2 / ROCK Linux kernel
19 configuration.
21 Initally written by Clifford Wold <clifford@clifford.at> and adapted
22 for various new 2.5/2.6 kernels by Rene Rebe <rene@exactcode.de>.
24 --- ./scripts/kconfig/Makefile.orig 2006-03-19 19:38:46.080184500 +0100
25 +++ ./scripts/kconfig/Makefile 2006-03-19 20:01:55.859040250 +0100
26 @@ -2,7 +2,7 @@
27 # Kernel configuration targets
28 # These targets are used from top-level makefile
30 -PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
31 +PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig no2modconfig update-po-config
33 xconfig: $(obj)/qconf
34 $< arch/$(ARCH)/Kconfig
35 @@ -56,6 +56,9 @@
36 allmodconfig: $(obj)/conf
37 $< -m arch/$(ARCH)/Kconfig
39 +no2modconfig: scripts/kconfig/conf
40 + $< -M arch/$(ARCH)/Kconfig
42 defconfig: $(obj)/conf
43 ifeq ($(KBUILD_DEFCONFIG),)
44 $< -d arch/$(ARCH)/Kconfig
45 @@ -77,6 +80,7 @@
46 @echo ' randconfig - New config with random answer to all options'
47 @echo ' defconfig - New config with default answer to all options'
48 @echo ' allmodconfig - New config selecting modules when possible'
49 + @echo ' no2modconfig - New config selecting modules for disabled options'
50 @echo ' allyesconfig - New config where all options are accepted with yes'
51 @echo ' allnoconfig - New config where all options are answered with no'
53 --- linux-2.6.17/scripts/kconfig/conf.c 2006-06-18 03:49:35.000000000 +0200
54 +++ linux26.macbook/scripts/kconfig/conf.c 2006-07-22 11:57:17.000000000 +0200
55 @@ -21,6 +21,7 @@
56 ask_all,
57 ask_new,
58 ask_silent,
59 + set_no2mod,
60 set_default,
61 set_yes,
62 set_mod,
63 @@ -83,6 +84,15 @@
66 switch (input_mode) {
67 + case set_no2mod:
68 + if (type == S_TRISTATE &&
69 + sym_get_tristate_value(sym) == no) {
70 + fprintf(stderr, "Setting %s to 'm'.\n", sym->name);
71 + line[0] = 'm';
72 + line[1] = '\n';
73 + line[2] = 0;
74 + break;
75 + }
76 case set_no:
77 case set_mod:
78 case set_yes:
79 @@ -372,6 +382,7 @@
80 break;
81 case set_random:
82 def = (random() % cnt) + 1;
83 + case set_no2mod:
84 case set_default:
85 case set_yes:
86 case set_mod:
87 @@ -523,6 +534,9 @@
88 case 'm':
89 input_mode = set_mod;
90 break;
91 + case 'M':
92 + input_mode = set_no2mod;
93 + break;
94 case 'y':
95 input_mode = set_yes;
96 break;
97 @@ -565,6 +579,7 @@
99 case ask_all:
100 case ask_new:
101 + case set_no2mod:
102 conf_read(NULL);
103 break;
104 case set_no: