Patrick Williams | 314e833 | 2023-10-06 17:41:44 -0500 | [diff] [blame] | 1 | HOMEPAGE = "https://github.com/openbmc/pldm" |
| 2 | LICENSE = "Apache-2.0" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" |
| 4 | SRC_URI = "git://github.com/openbmc/pldm;branch=master;protocol=https" |
Andrew Geissler | b7064a0 | 2024-06-11 03:10:47 -0500 | [diff] [blame] | 5 | SRCREV = "a881c170b5d699e2533a343e4e27324ec61649ee" |
Patrick Williams | 314e833 | 2023-10-06 17:41:44 -0500 | [diff] [blame] | 6 | |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 7 | SUMMARY = "PLDM Stack" |
| 8 | DESCRIPTION = "Implementation of the PLDM specifications" |
Tom Joseph | f6785aa | 2021-06-15 07:12:34 -0700 | [diff] [blame] | 9 | DEPENDS += "function2" |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 10 | DEPENDS += "systemd" |
Matt Spinler | e2375b5 | 2020-01-20 14:09:47 -0600 | [diff] [blame] | 11 | DEPENDS += "sdeventplus" |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 12 | DEPENDS += "phosphor-dbus-interfaces" |
| 13 | DEPENDS += "nlohmann-json" |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 14 | DEPENDS += "cli11" |
Manojkiran Eda | c593475 | 2022-09-27 13:59:35 -0500 | [diff] [blame] | 15 | DEPENDS += "libpldm" |
Riya Dixit | 1b22133 | 2023-03-28 01:42:41 -0500 | [diff] [blame] | 16 | DEPENDS += "phosphor-logging" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 17 | PV = "1.0+git${SRCPV}" |
| 18 | PR = "r1" |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 19 | |
| 20 | S = "${WORKDIR}/git" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 21 | SYSTEMD_SERVICE:${PN} += "pldmd.service" |
| 22 | SYSTEMD_SERVICE:${PN} += "pldmSoftPowerOff.service" |
Deepak Kodihalli | a748201 | 2020-06-22 05:25:35 -0500 | [diff] [blame] | 23 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 24 | inherit meson pkgconfig |
| 25 | inherit systemd |
| 26 | |
Andrew Jeffery | d828408 | 2023-10-22 21:43:37 +1030 | [diff] [blame] | 27 | PACKAGECONFIG[transport-mctp-demux] = "-Dtransport-implementation=mctp-demux" |
| 28 | PACKAGECONFIG[transport-af-mctp] = "-Dtransport-implementation=af-mctp" |
George Liu | 72f9534 | 2024-01-04 09:52:52 +0800 | [diff] [blame] | 29 | PACKAGECONFIG[oem-ibm] = "-Doem-ibm=enabled, -Doem-ibm=disabled, , squashfs-tools" |
Archana Kakani | 9e6dedf | 2024-04-12 02:28:50 -0500 | [diff] [blame] | 30 | PACKAGECONFIG[system-specific-bios-json] = "-Dsystem-specific-bios-json=enabled, -Dsystem-specific-bios-json=disabled" |
Andrew Jeffery | d828408 | 2023-10-22 21:43:37 +1030 | [diff] [blame] | 31 | PACKAGECONFIG ??= "" |
| 32 | PACKAGECONFIG:append:df-mctp = " transport-af-mctp" |
| 33 | |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 34 | EXTRA_OEMESON = " \ |
| 35 | -Dtests=disabled \ |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 36 | " |
Andrew Geissler | 0c3d0e2 | 2020-10-28 16:43:35 -0500 | [diff] [blame] | 37 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 38 | pkg_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 Geissler | 0c3d0e2 | 2020-10-28 16:43:35 -0500 | [diff] [blame] | 44 | # Install pldmSoftPowerOff.service in correct targets |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 45 | pkg_postinst:${PN} () { |
Manojkiran Eda | 842eb7f | 2021-09-15 18:47:42 +0530 | [diff] [blame] | 46 | 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 Geissler | 0c3d0e2 | 2020-10-28 16:43:35 -0500 | [diff] [blame] | 48 | TARGET="../pldmSoftPowerOff.service" |
| 49 | ln -s $TARGET $LINK |
Manojkiran Eda | 842eb7f | 2021-09-15 18:47:42 +0530 | [diff] [blame] | 50 | 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 Geissler | 0c3d0e2 | 2020-10-28 16:43:35 -0500 | [diff] [blame] | 52 | TARGET="../pldmSoftPowerOff.service" |
| 53 | ln -s $TARGET $LINK |
| 54 | } |