Jie Yang | 720e4b0 | 2021-07-23 02:30:19 -0700 | [diff] [blame] | 1 | SUMMARY = "Extract CPU and Memory Inventory from SMSMBIOS Table and PECI" |
| 2 | DESCRIPTION = "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 Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 3 | HOMEPAGE = "http://github.com/openbmc/smbios-mdr" |
Jie Yang | 720e4b0 | 2021-07-23 02:30:19 -0700 | [diff] [blame] | 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
Jie Yang | 720e4b0 | 2021-07-23 02:30:19 -0700 | [diff] [blame] | 6 | DEPENDS += " \ |
| 7 | boost \ |
| 8 | systemd \ |
| 9 | sdbusplus \ |
| 10 | phosphor-dbus-interfaces \ |
| 11 | phosphor-logging \ |
| 12 | " |
Andrew Geissler | db53c9c | 2022-09-23 10:11:26 -0500 | [diff] [blame] | 13 | SRCREV = "7393e48def95e9a9db400f0b0293e3ea088bb1a4" |
Jie Yang | 720e4b0 | 2021-07-23 02:30:19 -0700 | [diff] [blame] | 14 | PACKAGECONFIG ?= "cpuinfo" |
| 15 | PACKAGECONFIG[smbios-no-dimm] = "-DDIMM_DBUS=OFF,-DDIMM_DBUS=ON" |
| 16 | PACKAGECONFIG[cpuinfo] = "-DCPU_INFO=ON,-DCPU_INFO=OFF,libpeci i2c-tools" |
| 17 | PACKAGECONFIG[smbios-ipmi-blob] = "-DIPMI_BLOB=ON,-DIPMI_BLOB=OFF,phosphor-ipmi-blobs" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 18 | PV = "1.0+git${SRCPV}" |
| 19 | PR = "r1" |
Jie Yang | 720e4b0 | 2021-07-23 02:30:19 -0700 | [diff] [blame] | 20 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 21 | SRC_URI = "git://github.com/openbmc/smbios-mdr.git;branch=master;protocol=https" |
Jie Yang | 720e4b0 | 2021-07-23 02:30:19 -0700 | [diff] [blame] | 22 | |
| 23 | S = "${WORKDIR}/git" |
Jie Yang | 720e4b0 | 2021-07-23 02:30:19 -0700 | [diff] [blame] | 24 | SYSTEMD_SERVICE:${PN} += "smbios-mdrv2.service" |
| 25 | SYSTEMD_SERVICE:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'cpuinfo', 'xyz.openbmc_project.cpuinfo.service', '', d)}" |
| 26 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 27 | inherit cmake pkgconfig systemd |
| 28 | inherit obmc-phosphor-ipmiprovider-symlink |
| 29 | |
| 30 | EXTRA_OECMAKE = "-DYOCTO=ON" |
| 31 | |
Jie Yang | 720e4b0 | 2021-07-23 02:30:19 -0700 | [diff] [blame] | 32 | FILES:${PN}:append = " ${libdir}/ipmid-providers/lib*${SOLIBS}" |
| 33 | FILES:${PN}:append = " ${libdir}/blob-ipmid/lib*${SOLIBS}" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 34 | FILES:${PN}-dev:append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV}" |
| 35 | |
Jie Yang | 720e4b0 | 2021-07-23 02:30:19 -0700 | [diff] [blame] | 36 | BLOBIPMI_PROVIDER_LIBRARY += "${@bb.utils.contains('PACKAGECONFIG', 'smbios-ipmi-blob', 'libsmbiosstore.so', '', d)}" |