blob: f5a046bc97d3543474f8eb262b4d96de40291206 [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 Geissler228fb052021-09-08 00:41:21 +000031SRCREV = "511b06c05d43c217aa5d7620bd052fafda09d586"
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)}"