summaryrefslogtreecommitdiff
path: root/lib/kconfig.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-10-14 15:48:09 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2021-10-14 15:48:09 +0200
commit0559b84f812629c0d92bc390f43024f79b07341c (patch)
tree9212cd4b3df3dce94decfcff14e799c2cee87e60 /lib/kconfig.py
parent8371ea47864deafa99dfc44dea703f0254f681c3 (diff)
kconfig: properly evaluate conditions
Diffstat (limited to 'lib/kconfig.py')
-rw-r--r--lib/kconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kconfig.py b/lib/kconfig.py
index 3215dad..f186204 100644
--- a/lib/kconfig.py
+++ b/lib/kconfig.py
@@ -423,7 +423,7 @@ class KConfig:
and symbol.ranges
):
for min_val, max_val, condition in symbol.ranges:
- if condition.tri_value:
+ if kconfiglib.expr_value(condition):
min_val = int(min_val.str_value, 0)
max_val = int(max_val.str_value, 0)
step_size = (max_val - min_val) // 8