Skip to content

Commit

Permalink
vpd:Overwrite dummy ECC library with the actual one
Browse files Browse the repository at this point in the history
This commit installs the actual ecc library in /usr/lib file system
space, which is overwriting the dummy ecc library installed via meson
from the source repository (openpower-vpd-parser).

This is done intentionally to avoid sharing the actual ecc source code
and instead just share the ecc shared library object.

Test:
Tested on rainier.
Corrupted the base panel vpd and checked with ibm-read-vpd app.
With the original ecc library, the error should be thrown and with the dummy
ecc library, no error will be thrown.

Achieving the expected results.

root@rain111bmc:~# ibm-read-vpd --file /sys/bus/i2c/drivers/at24/7-0050/eeprom
ERROR: ECC check did not pass for the Record:VR10
root@rain111bmc:~#

Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
  • Loading branch information
PriyangaRamasamy committed Apr 27, 2022
1 parent 0e0a9a3 commit bcbd17a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file not shown.
4 changes: 4 additions & 0 deletions meta-ibm/recipes-phosphor/vpd/ibm-vpd-parser_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ SRC_URI += " file://50001002.json"
SRC_URI += " file://com.ibm.VPD.Manager.service"
SRC_URI += " file://50003000.json"
SRC_URI += " file://systems.json"
SRC_URI += " file://libvpdecc.so.1.0"

S = "${WORKDIR}/git"

Expand All @@ -35,10 +36,13 @@ SYSTEMD_SERVICE:${PN} += "com.ibm.VPD.Manager.service"
EXTRA_OEMESON := " -Dibm-parser=enabled -Dtests=disabled -Dvpd-manager=enabled"

FILES:${PN} += "${datadir}/vpd/*.json"
FILES:${PN} += "${libdir}/libvpdecc.so.1.0"

do_install:append() {
install -d ${D}/${base_libdir}/udev/rules.d/
install -d ${D}${datadir}/vpd/
install -d ${D}${libdir}
install -m 0644 ${WORKDIR}/70-ibm-vpd-parser.rules ${D}/${base_libdir}/udev/rules.d/
install ${WORKDIR}/*.json ${D}${datadir}/vpd/
install -m 0755 ${WORKDIR}/libvpdecc.so.1.0 ${D}/${libdir}/libvpdecc.so.1.0
}

0 comments on commit bcbd17a

Please sign in to comment.