|
|
@ -2,8 +2,9 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Filename: package/.../linux26/12-conf-hacks.patch
|
|
|
|
# Filename: package/.../linux26/12-conf-hacks.patch
|
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
|
|
|
# Copyright (C) 2008 The OpenSDE Project
|
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf
|
|
|
|
# Copyright (C) 2004 - 2008 The T2 SDE Project
|
|
|
|
|
|
|
|
# Copyright (C) 1998 - 2003 ROCK Linux Project
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
#
|
|
|
|
#
|
|
|
@ -15,14 +16,76 @@ |
|
|
|
# version.
|
|
|
|
# version.
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
|
|
|
|
Set all unset options to module. Needed by the T2 / ROCK Linux kernel
|
|
|
|
Set all unset options to module. Needed by the T2 SDE Linux kernel
|
|
|
|
configuration.
|
|
|
|
auto configuration.
|
|
|
|
|
|
|
|
|
|
|
|
Initally written by Clifford Wold <clifford@clifford.at> and adapted
|
|
|
|
Initally written by Clifford Wolf <clifford@clifford.at> and adapted
|
|
|
|
for various new 2.5/2.6 kernels by Rene Rebe <rene@exactcode.de>.
|
|
|
|
for various new 2.5/2.6 kernels by Rene Rebe <rene@exactcode.de>.
|
|
|
|
|
|
|
|
|
|
|
|
--- ./scripts/kconfig/Makefile.orig 2006-03-19 19:38:46.080184500 +0100
|
|
|
|
diff -ur linux-2.6.27/scripts/kconfig/conf.c linux-2.6.27.work/scripts/kconfig/conf.c
|
|
|
|
+++ ./scripts/kconfig/Makefile 2006-03-19 20:01:55.859040250 +0100
|
|
|
|
--- linux-2.6.27/scripts/kconfig/conf.c 2008-10-10 00:13:53.000000000 +0200
|
|
|
|
|
|
|
|
+++ linux-2.6.27.work/scripts/kconfig/conf.c 2008-10-19 14:39:10.000000000 +0200
|
|
|
|
|
|
|
|
@@ -22,6 +22,7 @@
|
|
|
|
|
|
|
|
ask_all,
|
|
|
|
|
|
|
|
ask_new,
|
|
|
|
|
|
|
|
ask_silent,
|
|
|
|
|
|
|
|
+ set_no2mod,
|
|
|
|
|
|
|
|
set_default,
|
|
|
|
|
|
|
|
set_yes,
|
|
|
|
|
|
|
|
set_mod,
|
|
|
|
|
|
|
|
@@ -438,7 +439,7 @@
|
|
|
|
|
|
|
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
|
|
|
|
|
|
|
textdomain(PACKAGE);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- while ((opt = getopt(ac, av, "osdD:nmyrh")) != -1) {
|
|
|
|
|
|
|
|
+ while ((opt = getopt(ac, av, "osdD:nmMyrh")) != -1) {
|
|
|
|
|
|
|
|
switch (opt) {
|
|
|
|
|
|
|
|
case 'o':
|
|
|
|
|
|
|
|
input_mode = ask_silent;
|
|
|
|
|
|
|
|
@@ -460,6 +461,9 @@
|
|
|
|
|
|
|
|
case 'm':
|
|
|
|
|
|
|
|
input_mode = set_mod;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
+ case 'M':
|
|
|
|
|
|
|
|
+ input_mode = set_no2mod;
|
|
|
|
|
|
|
|
+ break;
|
|
|
|
|
|
|
|
case 'y':
|
|
|
|
|
|
|
|
input_mode = set_yes;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
@@ -533,6 +537,9 @@
|
|
|
|
|
|
|
|
else if (!stat("all.config", &tmpstat))
|
|
|
|
|
|
|
|
conf_read_simple("all.config", S_DEF_USER);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
+ case set_no2mod:
|
|
|
|
|
|
|
|
+ conf_read_simple(".config", S_DEF_USER);
|
|
|
|
|
|
|
|
+ break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@@ -559,6 +566,9 @@
|
|
|
|
|
|
|
|
case set_mod:
|
|
|
|
|
|
|
|
conf_set_all_new_symbols(def_mod);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
+ case set_no2mod:
|
|
|
|
|
|
|
|
+ conf_set_all_new_symbols(def_no2mod);
|
|
|
|
|
|
|
|
+ break;
|
|
|
|
|
|
|
|
case set_random:
|
|
|
|
|
|
|
|
conf_set_all_new_symbols(def_random);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
diff -ur linux-2.6.27/scripts/kconfig/lkc.h linux-2.6.27.work/scripts/kconfig/lkc.h
|
|
|
|
|
|
|
|
--- linux-2.6.27/scripts/kconfig/lkc.h 2008-10-10 00:13:53.000000000 +0200
|
|
|
|
|
|
|
|
+++ linux-2.6.27.work/scripts/kconfig/lkc.h 2008-10-19 14:14:59.000000000 +0200
|
|
|
|
|
|
|
|
@@ -46,6 +46,7 @@
|
|
|
|
|
|
|
|
def_default,
|
|
|
|
|
|
|
|
def_yes,
|
|
|
|
|
|
|
|
def_mod,
|
|
|
|
|
|
|
|
+ def_no2mod,
|
|
|
|
|
|
|
|
def_no,
|
|
|
|
|
|
|
|
def_random
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
diff -ur linux-2.6.27/scripts/kconfig/Makefile linux-2.6.27.work/scripts/kconfig/Makefile
|
|
|
|
|
|
|
|
--- linux-2.6.27/scripts/kconfig/Makefile 2008-10-10 00:13:53.000000000 +0200
|
|
|
|
|
|
|
|
+++ linux-2.6.27.work/scripts/kconfig/Makefile 2008-10-19 14:14:59.000000000 +0200
|
|
|
|
@@ -2,7 +2,7 @@
|
|
|
|
@@ -2,7 +2,7 @@
|
|
|
|
# Kernel configuration targets
|
|
|
|
# Kernel configuration targets
|
|
|
|
# These targets are used from top-level makefile
|
|
|
|
# These targets are used from top-level makefile
|
|
|
@ -30,19 +93,19 @@ for various new 2.5/2.6 kernels by Rene Rebe <rene@exactcode.de>. |
|
|
|
-PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
|
|
|
|
-PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
|
|
|
|
+PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig no2modconfig update-po-config
|
|
|
|
+PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig no2modconfig update-po-config
|
|
|
|
|
|
|
|
|
|
|
|
xconfig: $(obj)/qconf
|
|
|
|
Kconfig := arch/$(SRCARCH)/Kconfig
|
|
|
|
$< arch/$(ARCH)/Kconfig
|
|
|
|
|
|
|
|
@@ -56,6 +56,9 @@
|
|
|
|
@@ -61,6 +61,9 @@
|
|
|
|
allmodconfig: $(obj)/conf
|
|
|
|
allmodconfig: $(obj)/conf
|
|
|
|
$< -m arch/$(ARCH)/Kconfig
|
|
|
|
$< -m $(Kconfig)
|
|
|
|
|
|
|
|
|
|
|
|
+no2modconfig: scripts/kconfig/conf
|
|
|
|
+no2modconfig: scripts/kconfig/conf
|
|
|
|
+ $< -M arch/$(ARCH)/Kconfig
|
|
|
|
+ $< -M $(Kconfig)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
defconfig: $(obj)/conf
|
|
|
|
defconfig: $(obj)/conf
|
|
|
|
ifeq ($(KBUILD_DEFCONFIG),)
|
|
|
|
ifeq ($(KBUILD_DEFCONFIG),)
|
|
|
|
$< -d arch/$(ARCH)/Kconfig
|
|
|
|
$< -d $(Kconfig)
|
|
|
|
@@ -77,6 +80,7 @@
|
|
|
|
@@ -83,6 +86,7 @@
|
|
|
|
@echo ' randconfig - New config with random answer to all options'
|
|
|
|
@echo ' randconfig - New config with random answer to all options'
|
|
|
|
@echo ' defconfig - New config with default answer to all options'
|
|
|
|
@echo ' defconfig - New config with default answer to all options'
|
|
|
|
@echo ' allmodconfig - New config selecting modules when possible'
|
|
|
|
@echo ' allmodconfig - New config selecting modules when possible'
|
|
|
@ -50,55 +113,23 @@ for various new 2.5/2.6 kernels by Rene Rebe <rene@exactcode.de>. |
|
|
|
@echo ' allyesconfig - New config where all options are accepted with yes'
|
|
|
|
@echo ' allyesconfig - New config where all options are accepted with yes'
|
|
|
|
@echo ' allnoconfig - New config where all options are answered with no'
|
|
|
|
@echo ' allnoconfig - New config where all options are answered with no'
|
|
|
|
|
|
|
|
|
|
|
|
--- linux-2.6.17/scripts/kconfig/conf.c 2006-06-18 03:49:35.000000000 +0200
|
|
|
|
--- linux-2.6.27.vanilla/scripts/kconfig/confdata.c 2008-10-10 00:13:53.000000000 +0200
|
|
|
|
+++ linux26.macbook/scripts/kconfig/conf.c 2006-07-22 11:57:17.000000000 +0200
|
|
|
|
+++ linux-2.6.27/scripts/kconfig/confdata.c 2008-10-20 12:45:07.000000000 +0200
|
|
|
|
@@ -21,6 +21,7 @@
|
|
|
|
@@ -824,6 +824,17 @@
|
|
|
|
ask_all,
|
|
|
|
for_all_symbols(i, sym) {
|
|
|
|
ask_new,
|
|
|
|
if (sym_has_value(sym))
|
|
|
|
ask_silent,
|
|
|
|
continue;
|
|
|
|
+ set_no2mod,
|
|
|
|
+ if ((mode == def_no2mod) && (sym_get_type(sym) == S_TRISTATE)) {
|
|
|
|
set_default,
|
|
|
|
+ if (sym_get_tristate_value(sym) == no)
|
|
|
|
set_yes,
|
|
|
|
|
|
|
|
set_mod,
|
|
|
|
|
|
|
|
@@ -83,6 +84,15 @@
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (input_mode) {
|
|
|
|
|
|
|
|
+ case set_no2mod:
|
|
|
|
|
|
|
|
+ if (type == S_TRISTATE &&
|
|
|
|
|
|
|
|
+ sym_get_tristate_value(sym) == no) {
|
|
|
|
|
|
|
|
+ fprintf(stderr, "Setting %s to 'm'.\n", sym->name);
|
|
|
|
+ fprintf(stderr, "Setting %s to 'm'.\n", sym->name);
|
|
|
|
+ line[0] = 'm';
|
|
|
|
+ if (sym_get_tristate_value(sym) == mod)
|
|
|
|
+ line[1] = '\n';
|
|
|
|
+ fprintf(stderr, "Keep %s as 'm'.\n", sym->name);
|
|
|
|
+ line[2] = 0;
|
|
|
|
+ if (sym_get_tristate_value(sym) != yes)
|
|
|
|
+ break;
|
|
|
|
+ sym->def[S_DEF_USER].tri = mod;
|
|
|
|
|
|
|
|
+ if (!sym_is_choice(sym))
|
|
|
|
|
|
|
|
+ sym->flags |= SYMBOL_DEF_USER;
|
|
|
|
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
case set_no:
|
|
|
|
switch (sym_get_type(sym)) {
|
|
|
|
case set_mod:
|
|
|
|
case S_BOOLEAN:
|
|
|
|
case set_yes:
|
|
|
|
case S_TRISTATE:
|
|
|
|
@@ -372,6 +382,7 @@
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case set_random:
|
|
|
|
|
|
|
|
def = (random() % cnt) + 1;
|
|
|
|
|
|
|
|
+ case set_no2mod:
|
|
|
|
|
|
|
|
case set_default:
|
|
|
|
|
|
|
|
case set_yes:
|
|
|
|
|
|
|
|
case set_mod:
|
|
|
|
|
|
|
|
@@ -523,6 +534,9 @@
|
|
|
|
|
|
|
|
case 'm':
|
|
|
|
|
|
|
|
input_mode = set_mod;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
+ case 'M':
|
|
|
|
|
|
|
|
+ input_mode = set_no2mod;
|
|
|
|
|
|
|
|
+ break;
|
|
|
|
|
|
|
|
case 'y':
|
|
|
|
|
|
|
|
input_mode = set_yes;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
@@ -565,6 +579,7 @@
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
case ask_all:
|
|
|
|
|
|
|
|
case ask_new:
|
|
|
|
|
|
|
|
+ case set_no2mod:
|
|
|
|
|
|
|
|
conf_read(NULL);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case set_no:
|
|
|
|
|
|
|
|