summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2020-03-30 22:03:28 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-04-07 02:47:01 +0300
commit147a795bfabe5c16a211447643bbfeac9c57c1f9 (patch)
tree9634c0404e6ee46d7b88a3063561e4b9d04ad8fe /meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service
parenta00d5712810ad5c8642d9be1aff87ac8e67c4a00 (diff)
downloadopenbmc-147a795bfabe5c16a211447643bbfeac9c57c1f9.tar.xz
phosphor-ipmi-fru: Add eeprom detection by OF name
This allows us to provide names without hardcoding an i2c bus path. (From meta-phosphor rev: 1eada36d06cfa40e7c9ba98fd74414c270a9e477) Change-Id: Iba6950ced1e49af1ace3cdde84345f42cd8f57fd Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service')
-rw-r--r--meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service
index ae8c0388e..1486cace0 100644
--- a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service
+++ b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-fru/obmc-read-eeprom@.service
@@ -7,6 +7,7 @@ After=mapper-wait@-xyz-openbmc_project-inventory.service
Restart=no
Type=oneshot
EnvironmentFile={envfiledir}/obmc/eeproms/%I
+ExecStartPre={bindir}/of-name-to-eeprom.sh {envfiledir}/obmc/eeproms/%I
ExecStart=/usr/bin/env phosphor-read-eeprom --eeprom $SYSFS_PATH --fruid $FRUID
SyslogIdentifier=phosphor-read-eeprom