diff options
author | Potin Lai <potin.lai@quantatw.com> | 2022-11-09 11:42:34 +0300 |
---|---|---|
committer | Potin Lai <potin.lai@quantatw.com> | 2022-12-05 09:09:11 +0300 |
commit | 19eb35712281c5ba51ed87a62284716ca5502a5c (patch) | |
tree | 9184dcc9620e6b32cf7419619340fb3dcdac80fb /meta-facebook/meta-bletchley/recipes-phosphor | |
parent | 30d2a115c4dfc3dfbe87427e1b362b72cf4f9977 (diff) | |
download | openbmc-19eb35712281c5ba51ed87a62284716ca5502a5c.tar.xz |
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
Diffstat (limited to 'meta-facebook/meta-bletchley/recipes-phosphor')
2 files changed, 24 insertions, 1 deletions
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 758d137f05..96536d6874 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 0000000000..c13ab507f6 --- /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"' |