From 42c0f8bd38491632e6f7c15627ea401d66ffb1bd Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Thu, 2 Apr 2020 13:11:52 -0500 Subject: setup: filter out unsupported machines Due to the import of meta-layers from out of openbmc, some of which have their own machine configs, running `source setup` reveils a long list of machines many of which are unsupported. Any supported machine should be using the `meta-phosphor` layer in some way, so look for that in the `bblayers.conf.sample` file. Signed-off-by: Patrick Williams Change-Id: I3ee4aa33a643d5f7faf0c6e1bd6f3d9c84cddab8 --- setup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup b/setup index a1702f991..35a4a05f2 100755 --- a/setup +++ b/setup @@ -49,7 +49,9 @@ machine() { fi return fi - else + elif test -e $tmpl/bblayers.conf.sample && \ + grep -q "##OEROOT##/meta-phosphor" $tmpl/bblayers.conf.sample; + then echo "${name}" fi done -- cgit v1.2.3