From abce429dac446bbb7fb4a04c2f9727c639dbbed1 Mon Sep 17 00:00:00 2001 From: Fred Reitberger Date: Wed, 1 Feb 2023 08:33:43 -0500 Subject: [PATCH] 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 Change-Id: I3860df4520a5594fb9c1a06e75487520b7d5d275 Reviewed-on: https://review.coreboot.org/c/coreboot/+/72655 Reviewed-by: Martin Roth Tested-by: build bot (Jenkins) --- util/scripts/testsoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/scripts/testsoc b/util/scripts/testsoc index bf23e6640d..81ce2f0ee8 100755 --- a/util/scripts/testsoc +++ b/util/scripts/testsoc @@ -81,7 +81,7 @@ get_args() { ;; -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"