mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #15594 from leandrolanzieri/pr/tools/kconfig_fix_range_cond_print
dist/tools/kconfig/genconfig: fix printing of range condition
This commit is contained in:
commit
57de2c0cea
6
dist/tools/kconfiglib/genconfig.py
vendored
6
dist/tools/kconfiglib/genconfig.py
vendored
@ -293,8 +293,10 @@ def get_sym_applying_range(sym):
|
||||
(low, high, cond) = rng
|
||||
# get the first active one
|
||||
if kconfiglib.expr_value(cond):
|
||||
return (low.str_value, high.str_value,
|
||||
"(if {})".format(cond.name) if not cond.is_constant else "")
|
||||
cond_str = ""
|
||||
if cond is not sym.kconfig.y:
|
||||
cond_str = "if {}".format(kconfiglib.expr_str(cond))
|
||||
return (low.str_value, high.str_value, cond_str)
|
||||
return None
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user