From d4408039c48c5452fba649b7d947c63d5ff8b14c Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 4 Dec 2012 01:08:54 +0100 Subject: Test ARCH = SRCARCH configuration for all arches. Even for arches that define additional arch settings (search for "Additional arch settings for" in the root Makefile) we should test the ARCH = SRCARCH configuration. --- kconfigtest.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/kconfigtest.py b/kconfigtest.py index 896bb60..3ee638d 100644 --- a/kconfigtest.py +++ b/kconfigtest.py @@ -82,6 +82,9 @@ def run_tests(): def get_arch_configs(): """Returns a list with Config instances corresponding to all arch Kconfigs.""" + # TODO: Could this be made more robust across kernel versions by checking + # for the existence of particular arches? + def add_arch(ARCH, res): os.environ["SRCARCH"] = archdir os.environ["ARCH"] = ARCH @@ -98,6 +101,10 @@ def get_arch_configs(): continue if os.path.exists(os.path.join("arch", archdir, "Kconfig")): + add_arch(archdir, res) + # Some arches define additional ARCH settings with ARCH != SRCARCH. + # (Search for "Additional ARCH settings for" in the Makefile.) We + # test those as well. if archdir == "x86": add_arch("i386", res) add_arch("x86_64", res) @@ -106,9 +113,9 @@ def get_arch_configs(): add_arch("sparc64", res) elif archdir == "sh": add_arch("sh64", res) - else: - # For most architectures, ARCH = SRCARCH - add_arch(archdir, res) + elif archdir == "tile": + add_arch("tilepro", res) + add_arch("tilegx", res) # Don't want subsequent 'make *config' commands in tests to see this del os.environ["ARCH"] -- cgit v1.2.3