meta-phosphor: generate supported machine list
Add a script to generate a list of supported machines and hook it
into the `run-repotest` to ensure that it is ran as necessary when
new machines are added or removed.
Fixes openbmc/openbmc#3926.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If33aa08451bb8a789459bf49d8d7ec9044973304
diff --git a/meta-phosphor/scripts/generate-machine-list b/meta-phosphor/scripts/generate-machine-list
new file mode 100755
index 0000000..df3a769
--- /dev/null
+++ b/meta-phosphor/scripts/generate-machine-list
@@ -0,0 +1,23 @@
+#!/bin/bash -e
+
+script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
+obmc_dir=${script_dir}/../../
+
+cd "$obmc_dir"
+
+cat > meta-phosphor/docs/supported-machines.md << EOF
+# Supported machines
+
+The following machine product or codenames have some code which has been
+contributed to the project for support. The specific level of functionality
+supported is unknown and has no level of warranty, promise of future
+development, or bug-fix guarantee.
+
+Systems which are actively developed and maintained by vendors are often
+covered by [Jenkins](https://jenkins.openbmc.org/job/ci-openbmc/) CI testing.
+
+## List
+
+EOF
+
+./setup machines >> meta-phosphor/docs/supported-machines.md