From 2a2fcbd404878d539683178d98c67c983b5f61c9 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 1 Oct 2017 06:28:02 +0200 Subject: 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.) --- testsuite.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testsuite.py') diff --git a/testsuite.py b/testsuite.py index 3a6886f..b3377cd 100644 --- a/testsuite.py +++ b/testsuite.py @@ -1328,6 +1328,11 @@ def run_selftests(): verify_range("HEX_RANGE_10_40_DEPENDENT", 0x10, 0x40, 0x10) verify_range("INT_RANGE_10_40_DEPENDENT", 10, 40, 10) + # Ranges and symbols defined in multiple locations + + verify_value("INACTIVE_RANGE", "2") + verify_value("ACTIVE_RANGE", "1") + # # get_referenced_symbols() # -- cgit v1.2.3