summaryrefslogtreecommitdiff
path: root/kconfigtest.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-04 01:08:54 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-04 01:13:41 +0100
commitd4408039c48c5452fba649b7d947c63d5ff8b14c (patch)
treee6a98374d5d96b0740c24b0db0444cf9b18f2f90 /kconfigtest.py
parentbf588cb0949619464488f55fe26cfef3394b0058 (diff)
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.
Diffstat (limited to 'kconfigtest.py')
-rw-r--r--kconfigtest.py13
1 files 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"]