blob: 71e7939ab034e51a787f7747a9b2e2475ec2484c [file] [log] [blame]
Jie Yang720e4b02021-07-23 02:30:19 -07001SUMMARY = "Extract CPU and Memory Inventory from SMSMBIOS Table and PECI"
2DESCRIPTION = "This package parses SMBIOS tables, reads Intel CPU PIROM and PECI and provides a dedicated IPMI blob to receive SMBIOS tables sent from LinuxBoot"
Ed Tanous9936f862022-09-19 09:13:20 -07003HOMEPAGE = "http://github.com/openbmc/smbios-mdr"
Jie Yang720e4b02021-07-23 02:30:19 -07004LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
Jie Yang720e4b02021-07-23 02:30:19 -07006DEPENDS += " \
7 boost \
8 systemd \
9 sdbusplus \
10 phosphor-dbus-interfaces \
11 phosphor-logging \
12 "
Andrew Geissler21306032023-05-22 14:20:22 -050013SRCREV = "c39d3dfca789d7ad5de9b7bd0856fc5b79c589df"
Jie Yang720e4b02021-07-23 02:30:19 -070014PACKAGECONFIG ?= "cpuinfo"
15PACKAGECONFIG[smbios-no-dimm] = "-DDIMM_DBUS=OFF,-DDIMM_DBUS=ON"
16PACKAGECONFIG[cpuinfo] = "-DCPU_INFO=ON,-DCPU_INFO=OFF,libpeci i2c-tools"
17PACKAGECONFIG[smbios-ipmi-blob] = "-DIPMI_BLOB=ON,-DIPMI_BLOB=OFF,phosphor-ipmi-blobs"
Ed Tanous9936f862022-09-19 09:13:20 -070018PV = "1.0+git${SRCPV}"
19PR = "r1"
Jie Yang720e4b02021-07-23 02:30:19 -070020
Ed Tanous9936f862022-09-19 09:13:20 -070021SRC_URI = "git://github.com/openbmc/smbios-mdr.git;branch=master;protocol=https"
Jie Yang720e4b02021-07-23 02:30:19 -070022
23S = "${WORKDIR}/git"
Jie Yang720e4b02021-07-23 02:30:19 -070024SYSTEMD_SERVICE:${PN} += "smbios-mdrv2.service"
25SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'cpuinfo', 'xyz.openbmc_project.cpuinfo.service', '', d)}"
26
Ed Tanous9936f862022-09-19 09:13:20 -070027inherit cmake pkgconfig systemd
28inherit obmc-phosphor-ipmiprovider-symlink
29
30EXTRA_OECMAKE = "-DYOCTO=ON"
31
Jie Yang720e4b02021-07-23 02:30:19 -070032FILES:${PN}:append = " ${libdir}/ipmid-providers/lib*${SOLIBS}"
33FILES:${PN}:append = " ${libdir}/blob-ipmid/lib*${SOLIBS}"
Ed Tanous9936f862022-09-19 09:13:20 -070034FILES:${PN}-dev:append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV}"
35
Jie Yang720e4b02021-07-23 02:30:19 -070036BLOBIPMI_PROVIDER_LIBRARY += "${@bb.utils.contains('PACKAGECONFIG', 'smbios-ipmi-blob', 'libsmbiosstore.so', '', d)}"