blob: e9298e14f4c32b2ff2165fb63745f637cea1739f [file] [log] [blame]
Jie Yang720e4b02021-07-23 02:30:19 -07001HOMEPAGE = "http://github.com/openbmc/smbios-mdr"
2SUMMARY = "Extract CPU and Memory Inventory from SMSMBIOS Table and PECI"
3DESCRIPTION = "This package parses SMBIOS tables, reads Intel CPU PIROM and PECI and provides a dedicated IPMI blob to receive SMBIOS tables sent from LinuxBoot"
4
5PR = "r1"
6PV = "1.0+git${SRCPV}"
7
8LICENSE = "Apache-2.0"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
10
11inherit cmake systemd
12inherit obmc-phosphor-ipmiprovider-symlink
13
14DEPENDS += " \
15 boost \
16 systemd \
17 sdbusplus \
18 phosphor-dbus-interfaces \
19 phosphor-logging \
20 "
21
22PACKAGECONFIG ?= "cpuinfo"
23PACKAGECONFIG[smbios-no-dimm] = "-DDIMM_DBUS=OFF,-DDIMM_DBUS=ON"
24PACKAGECONFIG[cpuinfo] = "-DCPU_INFO=ON,-DCPU_INFO=OFF,libpeci i2c-tools"
25PACKAGECONFIG[smbios-ipmi-blob] = "-DIPMI_BLOB=ON,-DIPMI_BLOB=OFF,phosphor-ipmi-blobs"
26
27EXTRA_OECMAKE = "-DYOCTO=ON"
28
29S = "${WORKDIR}/git"
30SRC_URI = "git://github.com/openbmc/smbios-mdr.git"
Andrew Geissler82156792021-08-20 19:21:39 +000031SRCREV = "7ece93a842619e15976be776d70105f7e6edca35"
Jie Yang720e4b02021-07-23 02:30:19 -070032
33SYSTEMD_SERVICE:${PN} += "smbios-mdrv2.service"
34SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'cpuinfo', 'xyz.openbmc_project.cpuinfo.service', '', d)}"
35
36FILES:${PN}:append = " ${libdir}/ipmid-providers/lib*${SOLIBS}"
37FILES:${PN}:append = " ${libdir}/blob-ipmid/lib*${SOLIBS}"
38FILES:${PN}-dev:append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV}"
39BLOBIPMI_PROVIDER_LIBRARY += "${@bb.utils.contains('PACKAGECONFIG', 'smbios-ipmi-blob', 'libsmbiosstore.so', '', d)}"