diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-08-31 13:30:50 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-09-05 00:28:29 +0300 |
commit | d3f78932cf6b3063caceacdae9ddd6ca30d48786 (patch) | |
tree | 765de745d26798d7a37340d2851b86b57cda7eb8 /meta-openpower/recipes-phosphor/vpd/openpower-fru-vpd.bb | |
parent | f1ade61b5994799a4cffca0c124b2ed36e640cbf (diff) | |
download | openbmc-d3f78932cf6b3063caceacdae9ddd6ca30d48786.tar.xz |
meta-openpower: Move layer content from common/
Adopt a more conventional directory hierarchy. meta-openpower is still
a _long_ way from suitable for hosting on yoctoproject.org but things
like this don't help.
(From meta-openpower rev: 2c8db5661cecd7e4cc20bcb96df76490e62cfb67)
Change-Id: I415caaa28ec728f24e755ddb549012f24874fefe
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-openpower/recipes-phosphor/vpd/openpower-fru-vpd.bb')
-rw-r--r-- | meta-openpower/recipes-phosphor/vpd/openpower-fru-vpd.bb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-openpower/recipes-phosphor/vpd/openpower-fru-vpd.bb b/meta-openpower/recipes-phosphor/vpd/openpower-fru-vpd.bb new file mode 100644 index 000000000..4d7114a73 --- /dev/null +++ b/meta-openpower/recipes-phosphor/vpd/openpower-fru-vpd.bb @@ -0,0 +1,47 @@ +SUMMARY = "Parser for OpenPOWER-format FRU VPD" +DESCRIPTION = "Parse OpenPOWER-format FRU VPD and update inventory" +PR = "r1" + +inherit autotools pkgconfig +inherit openpower-fru-vpd +inherit pythonnative +inherit obmc-phosphor-systemd + +require ${PN}.inc + +SRC_URI += "file://70-op-vpd.rules" + +DEPENDS += " \ + virtual/openpower-fru-vpd-layout \ + virtual/openpower-fru-inventory \ + virtual/openpower-fru-properties \ + sdbusplus \ + phosphor-logging \ + python-mako-native \ + python-pyyaml-native \ + autoconf-archive-native \ + " + +RDEPENDS_${PN} += " \ + sdbusplus \ + phosphor-logging \ + " + +SYSTEMD_SERVICE_${PN} += "op-vpd-parser.service" + +S = "${WORKDIR}/git" + +EXTRA_OECONF = " \ + FRU_YAML=${STAGING_DIR_NATIVE}${vpdlayout_datadir}/layout.yaml \ + PROP_YAML=${STAGING_DIR_NATIVE}${properties_datadir}/out.yaml \ + " + +do_install_append() { + SRC=${STAGING_DATADIR_NATIVE}${inventory_datadir_name} + DEST=${D}${inventory_envdir} + install -d ${DEST} + install ${SRC}/inventory ${DEST} + + install -d ${D}/${base_libdir}/udev/rules.d/ + install ${WORKDIR}/70-op-vpd.rules ${D}/${base_libdir}/udev/rules.d/ +} |