1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux/12-conf-hacks.patch
3 # Copyright (C) 2004 - 2024 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
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
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.orig 2024-09-15 16:57:56.000000000 +0200
23 +++ linux/scripts/kconfig/conf.c 2024-10-05 15:22:10.889706026 +0200
45 + if (sym->type != S_TRISTATE)
47 + val = sym_get_tristate_value(sym);
50 + fprintf(stderr, "Setting %s to 'm'.\n", sym->name);
57 {"allyesconfig", no_argument, &input_mode_opt, allyesconfig},
58 {"allmodconfig", no_argument, &input_mode_opt, allmodconfig},
59 {"alldefconfig", no_argument, &input_mode_opt, alldefconfig},
60 + {"no2modconfig", no_argument, &input_mode_opt, no2modconfig},
61 {"randconfig", no_argument, &input_mode_opt, randconfig},
62 {"listnewconfig", no_argument, &input_mode_opt, listnewconfig},
63 {"helpnewconfig", no_argument, &input_mode_opt, helpnewconfig},
77 + conf_set_all_new_symbols(def_no2m);
80 conf_set_all_new_symbols(def_no);
82 --- linux/scripts/kconfig/Makefile.vanilla 2022-02-09 15:41:48.025452173 +0100
83 +++ linux/scripts/kconfig/Makefile 2022-02-09 15:41:57.853451781 +0100
85 # deprecated for external use
86 simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
87 alldefconfig randconfig listnewconfig olddefconfig syncconfig \
88 - helpnewconfig yes2modconfig mod2yesconfig mod2noconfig
89 + helpnewconfig yes2modconfig mod2yesconfig mod2noconfig no2modconfig
91 PHONY += $(simple-targets)
94 @echo ' except those preserved by LMC_KEEP environment variable'
95 @echo ' defconfig - New config with default from ARCH supplied defconfig'
96 @echo ' savedefconfig - Save current config as ./defconfig (minimal config)'
97 + @echo ' no2modconfig - New config selecting modules for disabled options'
98 @echo ' allnoconfig - New config where all options are answered with no'
99 @echo ' allyesconfig - New config where all options are accepted with yes'
100 @echo ' allmodconfig - New config selecting modules when possible'