blob: e1176e4202a09410f50dc4c6c216f88ac96f5b67 [file] [log] [blame]
Patrick Williams314e8332023-10-06 17:41:44 -05001HOMEPAGE = "https://github.com/openbmc/pldm"
2LICENSE = "Apache-2.0"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
4SRC_URI = "git://github.com/openbmc/pldm;branch=master;protocol=https"
Andrew Geisslerc9387692024-05-13 10:50:34 -05005SRCREV = "15ce5a18e226e8495ddc9467c56eedaa6c9df618"
Patrick Williams314e8332023-10-06 17:41:44 -05006
Deepak Kodihalli7a113ee2019-10-14 01:23:27 -05007SUMMARY = "PLDM Stack"
8DESCRIPTION = "Implementation of the PLDM specifications"
Tom Josephf6785aa2021-06-15 07:12:34 -07009DEPENDS += "function2"
Deepak Kodihalli7a113ee2019-10-14 01:23:27 -050010DEPENDS += "systemd"
Matt Spinlere2375b52020-01-20 14:09:47 -060011DEPENDS += "sdeventplus"
Deepak Kodihalli7a113ee2019-10-14 01:23:27 -050012DEPENDS += "phosphor-dbus-interfaces"
13DEPENDS += "nlohmann-json"
Deepak Kodihalli7a113ee2019-10-14 01:23:27 -050014DEPENDS += "cli11"
Manojkiran Edac5934752022-09-27 13:59:35 -050015DEPENDS += "libpldm"
Riya Dixit1b221332023-03-28 01:42:41 -050016DEPENDS += "phosphor-logging"
Ed Tanous9936f862022-09-19 09:13:20 -070017PV = "1.0+git${SRCPV}"
18PR = "r1"
Deepak Kodihalli7a113ee2019-10-14 01:23:27 -050019
20S = "${WORKDIR}/git"
Patrick Williams12fc9392021-08-06 09:16:53 -050021SYSTEMD_SERVICE:${PN} += "pldmd.service"
22SYSTEMD_SERVICE:${PN} += "pldmSoftPowerOff.service"
Deepak Kodihallia7482012020-06-22 05:25:35 -050023
Ed Tanous9936f862022-09-19 09:13:20 -070024inherit meson pkgconfig
25inherit systemd
26
Andrew Jefferyd8284082023-10-22 21:43:37 +103027PACKAGECONFIG[transport-mctp-demux] = "-Dtransport-implementation=mctp-demux"
28PACKAGECONFIG[transport-af-mctp] = "-Dtransport-implementation=af-mctp"
George Liu72f95342024-01-04 09:52:52 +080029PACKAGECONFIG[oem-ibm] = "-Doem-ibm=enabled, -Doem-ibm=disabled, , squashfs-tools"
Archana Kakani9e6dedf2024-04-12 02:28:50 -050030PACKAGECONFIG[system-specific-bios-json] = "-Dsystem-specific-bios-json=enabled, -Dsystem-specific-bios-json=disabled"
Andrew Jefferyd8284082023-10-22 21:43:37 +103031PACKAGECONFIG ??= ""
32PACKAGECONFIG:append:df-mctp = " transport-af-mctp"
33
Deepak Kodihalli7a113ee2019-10-14 01:23:27 -050034EXTRA_OEMESON = " \
35 -Dtests=disabled \
Deepak Kodihalli7a113ee2019-10-14 01:23:27 -050036 "
Andrew Geissler0c3d0e22020-10-28 16:43:35 -050037
Ed Tanous9936f862022-09-19 09:13:20 -070038pkg_prerm:${PN} () {
39 LINK="$D$systemd_system_unitdir/obmc-host-shutdown@0.target.wants/pldmSoftPowerOff.service"
40 rm $LINK
41 LINK="$D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.wants/pldmSoftPowerOff.service"
42 rm $LINK
43}
Andrew Geissler0c3d0e22020-10-28 16:43:35 -050044# Install pldmSoftPowerOff.service in correct targets
Patrick Williams12fc9392021-08-06 09:16:53 -050045pkg_postinst:${PN} () {
Manojkiran Eda842eb7f2021-09-15 18:47:42 +053046 mkdir -p $D$systemd_system_unitdir/obmc-host-shutdown@0.target.wants
47 LINK="$D$systemd_system_unitdir/obmc-host-shutdown@0.target.wants/pldmSoftPowerOff.service"
Andrew Geissler0c3d0e22020-10-28 16:43:35 -050048 TARGET="../pldmSoftPowerOff.service"
49 ln -s $TARGET $LINK
Manojkiran Eda842eb7f2021-09-15 18:47:42 +053050 mkdir -p $D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.wants
51 LINK="$D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.wants/pldmSoftPowerOff.service"
Andrew Geissler0c3d0e22020-10-28 16:43:35 -050052 TARGET="../pldmSoftPowerOff.service"
53 ln -s $TARGET $LINK
54}