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 <patrick@stwcx.xyz>
Change-Id: I3ee4aa33a643d5f7faf0c6e1bd6f3d9c84cddab8
diff --git a/setup b/setup
index a1702f9..35a4a05 100755
--- a/setup
+++ b/setup
@@ -49,7 +49,9 @@
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