blob: 701774fef22c33992aae37f9cc8db689b84beecc [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
Patrick Williams691a8e02021-12-13 18:00:02 -060011inherit cmake pkgconfig systemd
Jie Yang720e4b02021-07-23 02:30:19 -070012inherit 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"
Patrick Williamsbb99d222022-01-24 15:55:09 -060030SRC_URI = "git://github.com/openbmc/smbios-mdr.git;branch=master;protocol=https"
Andrew Geissler5ab71bc2022-03-28 18:00:28 +000031SRCREV = "e4ea37716d0d282ef664d5a70979274fe40e7c8b"
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)}"