meta-bletchley: Add FRU related interface for frontpanel board
Because bletchley does not have physical eeprom to store FRU data, we
add an interface for frontpanel to store board information, so that
EM can base on the properties to probe correct configuration.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I4d884edbeb4ccfc0f1a6f37082f0bb6d5940758a
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend
index 758d137..96536d6 100644
--- a/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend
+++ b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend
@@ -1,4 +1,22 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
-SRC_URI:append = " file://bletchley-host-acpi-power-state.yaml"
+SRC_URI:append = " \
+ file://bletchley-host-acpi-power-state.yaml \
+ file://bletchley-frontpanel.yaml \
+"
SETTINGS_HOST_TEMPLATES:append = " bletchley-host-acpi-power-state.yaml"
+SETTINGS_CHASSIS_TEMPLATES_ZERO_ONLY:append = " bletchley-frontpanel.yaml"
+
+OBMC_CHASSIS_ZERO_ONLY="0"
+
+do_install:append() {
+ DEST=${D}${settings_datadir}
+
+ for i in ${OBMC_CHASSIS_ZERO_ONLY};
+ do
+ for f in ${SETTINGS_CHASSIS_TEMPLATES_ZERO_ONLY};
+ do
+ sed "s/{}/${i}/g" ${f} >> ${DEST}/defaults.yaml
+ done
+ done
+}
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native/bletchley-frontpanel.yaml b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native/bletchley-frontpanel.yaml
new file mode 100644
index 0000000..c13ab50
--- /dev/null
+++ b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native/bletchley-frontpanel.yaml
@@ -0,0 +1,5 @@
+/xyz/openbmc_project/inventory/system/chassis{}/frontpanel:
+- Interface: xyz.openbmc_project.Inventory.Decorator.Asset
+ Properties:
+ Model:
+ Default: '"Bletchley_FPB_HDC1080"'