From: Yann E. MORIN Date: Tue, 3 Sep 2013 15:07:18 +0000 (+0200) Subject: kconfig: do not special-case 'MODULES' symbol X-Git-Tag: 1.9.9~7 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;ds=inline;h=452afc107b8438338a7c2aa3e68fad213bea33dc;hp=452afc107b8438338a7c2aa3e68fad213bea33dc;p=carl9170fw.git kconfig: do not special-case 'MODULES' symbol Currently, the 'MODULES' symbol is hard-coded to be the default symbol that enables/disables tristates, if no other symbol was declared with 'option modules'. While this used to be needed for the Linux kernel, we now have an explicit 'option modules' attached to the 'MODULES' symbol (since cset 11097a036), so we no longer need to special-case it in the kconfig code. Furthermore, kconfig is extensively used out of the Linux kernel, and other projects may have another meaning for a symbol named 'MODULES'. This patch changes the way we enable/disable tristates: if a symbol was found with 'option modules' attached to it, then that symbol controls enabling tristates. Otherwise, tristates are disabled, even if a symbol named 'MODULES' exists. Signed-off-by: "Yann E. MORIN" Cc: Sam Ravnborg Signed-off-by: Michal Marek Signed-off-by: Christian Lamparter ---