ci: detect changes to sub-board definitions

When detecting changes to boards, make sure we test all board
configurations available in that board directory, not only the main one.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/scripts/ci/get_modified_boards.py b/scripts/ci/get_modified_boards.py
index d9f9793..6409f39 100755
--- a/scripts/ci/get_modified_boards.py
+++ b/scripts/ci/get_modified_boards.py
@@ -8,6 +8,7 @@
 import sh
 import logging
 import argparse
+import glob
 
 if "ZEPHYR_BASE" not in os.environ:
     logging.error("$ZEPHYR_BASE environment variable undefined.\n")
@@ -50,6 +51,7 @@
 
 def main():
     boards = set()
+    all_boards = set()
 
     args = parse_args()
     if not args.commits:
@@ -65,8 +67,15 @@
         if p and p.groups():
             boards.add(p.group(1))
 
-    if boards:
-        print("-p\n%s" %("\n-p\n".join(boards)))
+    for b in boards:
+        suboards = glob.glob("boards/*/%s/*.yaml" %(b))
+        for subboard in suboards:
+            name = os.path.splitext(os.path.basename(subboard))[0]
+            if name:
+                all_boards.add(name)
+
+    if all_boards:
+        print("-p\n%s" %("\n-p\n".join(all_boards)))