diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-10-01 06:28:02 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-10-01 06:52:31 +0200 |
| commit | 2a2fcbd404878d539683178d98c67c983b5f61c9 (patch) | |
| tree | 1a4b855a4f37ff808e977b0e46477bcdcb8b1133 /tests | |
| parent | ab58c2388128df0dfe361b7d1a795c520cbfa55d (diff) | |
Propagate dependencies to range conditions
Just like for other properties, conditions on ranges get local
'depends on' and parent dependencies propagated to them. Oversight.
Did not trigger any deviations for the kernel defconfigs. Pretty
specific circumstances were required for breakage, like a symbol
depending on the particular value of a symbol with a 'range' and parent
deps 'n', or a symbol with ranges being defined in multiple locations
with different parent deps.
(There is one symbol that both has ranges and is defined in multiple
locations: BCH_CONST_M. The second definition adds a default rather than
a range though.)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Krange | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/Krange b/tests/Krange index cc19f57..3057483 100644 --- a/tests/Krange +++ b/tests/Krange @@ -108,3 +108,26 @@ config INT_40 config INT_RANGE_10_40_DEPENDENT int "int range 10-40 dependent" range INT_RANGE_10_20 INT_40 + +# +# Ranges on symbols defined in multiple locations +# + +if n +config INACTIVE_RANGE + range 0 1 +endif + +config INACTIVE_RANGE + int + # Default will apply and should not get clamped, + # because the range does not apply + default 2 + +config ACTIVE_RANGE + range 0 1 + +config ACTIVE_RANGE + int + # Default will apply and should be clamped to 1 + default 2 |
