* mark python sqlite DEP opt and update .cache
[t2sde.git] / package / kernel / linux-header / 12-conf-hacks.patch
blobdd5e17774f653e6b6ad2e39505d713808eb8de5f
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux/12-conf-hacks.patch
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
5 #
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License version 2 as used by the T2 SDE.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 Set all unset options to module. Needed by the T2 SDE Linux kernel
16 auto configuration.
18 Initally written by Claire Xenia Wolf <claire@clairexen.net> and adapted
19 for various new 2.5, 2.6, 3.x, 4.x and 5.x kernels
20 by Rene Rebe <rene@exactcode.de>.
22 --- linux/scripts/kconfig/conf.c.vanilla 2022-02-09 15:42:20.344450884 +0100
23 +++ linux/scripts/kconfig/conf.c 2022-02-09 15:43:25.824448274 +0100
24 @@ -23,6 +23,7 @@
25 oldaskconfig,
26 syncconfig,
27 oldconfig,
28 + no2modconfig,
29 allnoconfig,
30 allyesconfig,
31 allmodconfig,
32 @@ -166,6 +167,7 @@
33 def_y2m,
34 def_m2y,
35 def_no,
36 + def_no2m,
37 def_random
40 @@ -228,8 +230,22 @@
43 for_all_symbols(i, sym) {
44 - if (sym_has_value(sym) || sym->flags & SYMBOL_VALID)
45 + if (sym_has_value(sym)) /* user defined? */
46 continue;
48 + if ((mode == def_no2m) && (sym->type == S_TRISTATE)) {
49 + if (sym_get_tristate_value(sym) != mod)
50 + fprintf(stderr, "Setting %s to 'm'.\n", sym->name);
51 + if (sym_get_tristate_value(sym) != mod) {
52 + sym->def[S_DEF_USER].tri = mod;
53 + sym->flags |= SYMBOL_DEF_USER;
54 + }
55 + continue;
56 + }
58 + if (sym->flags & SYMBOL_VALID)
59 + continue;
61 switch (sym_get_type(sym)) {
62 case S_BOOLEAN:
63 case S_TRISTATE:
64 @@ -690,6 +705,7 @@
65 {"allyesconfig", no_argument, &input_mode_opt, allyesconfig},
66 {"allmodconfig", no_argument, &input_mode_opt, allmodconfig},
67 {"alldefconfig", no_argument, &input_mode_opt, alldefconfig},
68 + {"no2modconfig", no_argument, &input_mode_opt, no2modconfig},
69 {"randconfig", no_argument, &input_mode_opt, randconfig},
70 {"listnewconfig", no_argument, &input_mode_opt, listnewconfig},
71 {"helpnewconfig", no_argument, &input_mode_opt, helpnewconfig},
72 @@ -806,6 +806,7 @@
73 case yes2modconfig:
74 case mod2yesconfig:
75 case mod2noconfig:
76 + case no2modconfig:
77 conf_read(NULL);
78 break;
79 case allnoconfig:
80 @@ -851,6 +867,9 @@
83 switch (input_mode) {
84 + case no2modconfig:
85 + conf_set_all_new_symbols(def_no2m);
86 + break;
87 case allnoconfig:
88 conf_set_all_new_symbols(def_no);
89 break;
90 --- linux/scripts/kconfig/Makefile.vanilla 2022-02-09 15:41:48.025452173 +0100
91 +++ linux/scripts/kconfig/Makefile 2022-02-09 15:41:57.853451781 +0100
92 @@ -69,7 +69,7 @@
93 # deprecated for external use
94 simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
95 alldefconfig randconfig listnewconfig olddefconfig syncconfig \
96 - helpnewconfig yes2modconfig mod2yesconfig mod2noconfig
97 + helpnewconfig yes2modconfig mod2yesconfig mod2noconfig no2modconfig
99 PHONY += $(simple-targets)
101 @@ -127,6 +127,7 @@
102 @echo ' except those preserved by LMC_KEEP environment variable'
103 @echo ' defconfig - New config with default from ARCH supplied defconfig'
104 @echo ' savedefconfig - Save current config as ./defconfig (minimal config)'
105 + @echo ' no2modconfig - New config selecting modules for disabled options'
106 @echo ' allnoconfig - New config where all options are answered with no'
107 @echo ' allyesconfig - New config where all options are accepted with yes'
108 @echo ' allmodconfig - New config selecting modules when possible'