Fred Reitberger has uploaded this change for review.

View Change

util/scripts/testsoc: Only select mainboards

The testsoc script was pulling in odd results when the -K option matched
options in sources, Makefiles, and device trees. Adding another grep to
limit the list to just Kconfig matches ensures that only actual
mainboards are built.

TEST="./util/testsoc -K PICASSO" no longer tries to build mainboard "0"

Signed-off-by: Fred Reitberger <reitbergerfred@gmail.com>
Change-Id: I3860df4520a5594fb9c1a06e75487520b7d5d275
---
M util/scripts/testsoc
1 file changed, 18 insertions(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/72655/1
diff --git a/util/scripts/testsoc b/util/scripts/testsoc
index bf23e66..81ce2f0 100755
--- a/util/scripts/testsoc
+++ b/util/scripts/testsoc
@@ -81,7 +81,7 @@
;;
-K | --kconfig)
shift
- mblist=$(grep -r "$1" src/mainboard | sed 's|src/mainboard/||;s|/Kconfig.*||')
+ mblist=$(grep -r "$1" src/mainboard | grep Kconfig | sed 's|src/mainboard/||;s|/Kconfig.*||')
printf "Adding mainboard for %s\n%s\n" "$1" "${mblist}"
echo
mapfile -t mainboards <<<"$mblist"

To view, visit change 72655. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3860df4520a5594fb9c1a06e75487520b7d5d275
Gerrit-Change-Number: 72655
Gerrit-PatchSet: 1
Gerrit-Owner: Fred Reitberger <reitbergerfred@gmail.com>
Gerrit-MessageType: newchange