blob: c1ec68e9d8bee663ca72a640d9449675b0e8c0df [file] [log] [blame]
Santosh Puranik2d9265d2022-12-22 22:12:25 +05301DEPENDS:append:p10bmc = " cli11"
2DEPENDS:append:p10bmc = " nlohmann-json"
3DEPENDS:append:p10bmc = " phosphor-dbus-interfaces"
4DEPENDS:append:p10bmc = " libgpiod"
5
6FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
7
8SYSTEMD_SERVICE:${PN}:append:p10bmc = " ibm-vpd-parser@.service"
9SYSTEMD_SERVICE:${PN}:append:p10bmc = " system-vpd.service"
10SYSTEMD_SERVICE:${PN}:append:p10bmc = " com.ibm.VPD.Manager.service"
11SYSTEMD_SERVICE:${PN}:append:p10bmc = " wait-vpd-parsers.service"
12SYSTEMD_SERVICE:${PN}:remove:p10bmc = " op-vpd-parser.service"
13PACKAGECONFIG:append:p10bmc = " ibm-parser vpd-manager"
14
15FILES:${PN}:append:p10bmc = " ${datadir}/vpd/*.json"
16
17do_install:append:p10bmc() {
18 # Remove files that are used by openpower-read-vpd
19 DEST=${D}${inventory_envdir}
20 rm ${DEST}/inventory
21 rm ${D}/${nonarch_base_libdir}/udev/rules.d/70-op-vpd.rules
22}
23
Adriana Kobylakb96c7502021-08-06 16:25:30 +000024do_install:append:witherspoon() {
Deepak Kodihalli075f4372017-02-14 04:25:04 -060025 DEST=${D}${inventory_envdir}
Matt Spinler60efa372019-03-22 10:20:37 -050026 printf "\nEEPROM=/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-11/11-0051/eeprom" >> ${DEST}/inventory
Deepak Kodihalli075f4372017-02-14 04:25:04 -060027}
Anthony Wilson989b85d2019-05-09 18:09:14 -050028
Adriana Kobylakb96c7502021-08-06 16:25:30 +000029do_install:append:swift() {
Anthony Wilson989b85d2019-05-09 18:09:14 -050030 DEST=${D}${inventory_envdir}
Matt Spinlerca5c2e52019-05-29 14:52:41 -050031 printf "\nEEPROM=/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a340.i2c-bus/i2c-8/8-0051/eeprom" >> ${DEST}/inventory
Anthony Wilson989b85d2019-05-09 18:09:14 -050032}
Santosh Puranik71156552020-03-20 21:11:30 +053033
Adriana Kobylakb96c7502021-08-06 16:25:30 +000034do_install:append:witherspoon-tacoma() {
Santosh Puranik71156552020-03-20 21:11:30 +053035 DEST=${D}${inventory_envdir}
36 printf "FRUS=BMC,ETHERNET" > ${DEST}/inventory
37 printf "\nPATHS=/system/chassis/motherboard/bmc,/system/chassis/motherboard/bmc/eth0" >> ${DEST}/inventory
38 printf "\nEEPROM=/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a600.i2c-bus/i2c-11/11-0051/eeprom" >> ${DEST}/inventory
39}
40