diff options
author | Fred Reitberger <reitbergerfred@gmail.com> | 2023-02-01 08:33:43 -0500 |
---|---|---|
committer | Fred Reitberger <reitbergerfred@gmail.com> | 2023-02-03 13:57:07 +0000 |
commit | abce429dac446bbb7fb4a04c2f9727c639dbbed1 (patch) | |
tree | 413c781501ee34c58ea07ea8a4226d5278a40bd2 /util | |
parent | 547cef02015969515f47f0484b56692ce83ef623 (diff) |
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
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72655
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/scripts/testsoc | 2 |
1 files changed, 1 insertions, 1 deletions
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" |