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
16 # --- SDE-COPYRIGHT-NOTE-END ---
18 Set all unset options to module. Needed by the T2 / ROCK Linux kernel
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
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
34 $< arch/$(ARCH)/Kconfig
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
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
68 + if (type == S_TRISTATE &&
69 + sym_get_tristate_value(sym) == no) {
70 + fprintf(stderr, "Setting %s to 'm'.\n", sym->name);
82 def = (random() % cnt) + 1;
92 + input_mode = set_no2mod;