Kconfig.recursion-issue-02 (9938b04472d5c59f8bd8152a548533a8599596a2) | Kconfig.recursion-issue-02 (16a122c743b327f714606eff2cd8ff31c206bafc) |
---|---|
1# Cumulative Kconfig recursive issue 2# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3# 4# Test with: 5# 6# make KBUILD_KCONFIG=Documentation/kbuild/Kconfig.recursion-issue-02 allnoconfig 7# 8# The recursive limitations with Kconfig has some non intuitive implications on --- 28 unchanged lines hidden (view full) --- 37# 38# To fix this the "depends on CORE" must be changed to "select CORE", or the 39# "select CORE" must be changed to "depends on CORE". 40# 41# For an example real world scenario issue refer to the attempt to remove 42# "select FW_LOADER" [0], in the end the simple alternative solution to this 43# problem consisted on matching semantics with newly introduced features. 44# | 1# Cumulative Kconfig recursive issue 2# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3# 4# Test with: 5# 6# make KBUILD_KCONFIG=Documentation/kbuild/Kconfig.recursion-issue-02 allnoconfig 7# 8# The recursive limitations with Kconfig has some non intuitive implications on --- 28 unchanged lines hidden (view full) --- 37# 38# To fix this the "depends on CORE" must be changed to "select CORE", or the 39# "select CORE" must be changed to "depends on CORE". 40# 41# For an example real world scenario issue refer to the attempt to remove 42# "select FW_LOADER" [0], in the end the simple alternative solution to this 43# problem consisted on matching semantics with newly introduced features. 44# |
45# [0] http://lkml.kernel.org/r/1432241149-8762-1-git-send-email-mcgrof@do-not-panic.com | 45# [0] https://lkml.kernel.org/r/1432241149-8762-1-git-send-email-mcgrof@do-not-panic.com |
46 47mainmenu "Simple example to demo cumulative kconfig recursive dependency implication" 48 49config CORE 50 tristate 51 52config CORE_BELL_A 53 tristate 54 depends on CORE 55 56config CORE_BELL_A_ADVANCED 57 tristate 58 select CORE_BELL_A 59 60config CORE_BELL_B 61 tristate 62 depends on !CORE_BELL_A 63 select CORE | 46 47mainmenu "Simple example to demo cumulative kconfig recursive dependency implication" 48 49config CORE 50 tristate 51 52config CORE_BELL_A 53 tristate 54 depends on CORE 55 56config CORE_BELL_A_ADVANCED 57 tristate 58 select CORE_BELL_A 59 60config CORE_BELL_B 61 tristate 62 depends on !CORE_BELL_A 63 select CORE |