phosphor-settings-defaults: allow additonal host templates

Previously we supported a single default per-host template, which
enables default settings for multi-host designs.  Add a variable,
SETTINGS_HOST_TEMPLATES, which allows machines to add their own template
snippets.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I1e416e2af8b336017c800676efd0183f294168a9
diff --git a/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults-native.bb b/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults-native.bb
index 79fe68a..98ee696 100644
--- a/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults-native.bb
+++ b/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults-native.bb
@@ -11,6 +11,8 @@
 
 PROVIDES += "virtual/phosphor-settings-defaults"
 
+SETTINGS_HOST_TEMPLATES:append = " host-template.yaml"
+
 S = "${WORKDIR}"
 
 do_install() {
@@ -20,7 +22,9 @@
 
         for i in ${OBMC_HOST_INSTANCES};
         do
-                cat host-template.yaml | sed "s/{}/${i}/g" >> ${DEST}/defaults.yaml
-
+            for f in ${SETTINGS_HOST_TEMPLATES};
+            do
+                cat ${f} | sed "s/{}/${i}/g" >> ${DEST}/defaults.yaml
+            done
         done
 }