Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 1 | SUMMARY = "PLDM Stack" |
| 2 | DESCRIPTION = "Implementation of the PLDM specifications" |
| 3 | PR = "r1" |
| 4 | PV = "1.0+git${SRCPV}" |
| 5 | |
| 6 | inherit meson pkgconfig |
Deepak Kodihalli | a748201 | 2020-06-22 05:25:35 -0500 | [diff] [blame] | 7 | inherit systemd |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 8 | |
| 9 | require pldm.inc |
| 10 | |
Tom Joseph | f6785aa | 2021-06-15 07:12:34 -0700 | [diff] [blame] | 11 | DEPENDS += "function2" |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 12 | DEPENDS += "systemd" |
Matt Spinler | e2375b5 | 2020-01-20 14:09:47 -0600 | [diff] [blame] | 13 | DEPENDS += "sdeventplus" |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 14 | DEPENDS += "phosphor-dbus-interfaces" |
| 15 | DEPENDS += "nlohmann-json" |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 16 | DEPENDS += "cli11" |
| 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
Deepak Kodihalli | a748201 | 2020-06-22 05:25:35 -0500 | [diff] [blame] | 20 | SYSTEMD_SERVICE_${PN} += "pldmd.service" |
Chicago Duan | f42ff2c | 2020-08-27 15:07:55 +0800 | [diff] [blame] | 21 | SYSTEMD_SERVICE_${PN} += "pldmSoftPowerOff.service" |
Deepak Kodihalli | a748201 | 2020-06-22 05:25:35 -0500 | [diff] [blame] | 22 | |
Deepak Kodihalli | 7a113ee | 2019-10-14 01:23:27 -0500 | [diff] [blame] | 23 | EXTRA_OEMESON = " \ |
| 24 | -Dtests=disabled \ |
| 25 | -Doem-ibm=disabled \ |
| 26 | " |
Andrew Geissler | 0c3d0e2 | 2020-10-28 16:43:35 -0500 | [diff] [blame] | 27 | |
| 28 | # Install pldmSoftPowerOff.service in correct targets |
| 29 | pkg_postinst_${PN} () { |
| 30 | |
| 31 | mkdir -p $D$systemd_system_unitdir/obmc-host-shutdown@0.target.requires |
| 32 | LINK="$D$systemd_system_unitdir/obmc-host-shutdown@0.target.requires/pldmSoftPowerOff.service" |
| 33 | TARGET="../pldmSoftPowerOff.service" |
| 34 | ln -s $TARGET $LINK |
| 35 | |
| 36 | mkdir -p $D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.requires |
| 37 | LINK="$D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.requires/pldmSoftPowerOff.service" |
| 38 | TARGET="../pldmSoftPowerOff.service" |
| 39 | ln -s $TARGET $LINK |
| 40 | } |
| 41 | |
| 42 | pkg_prerm_${PN} () { |
| 43 | |
| 44 | LINK="$D$systemd_system_unitdir/obmc-host-shutdown@0.target.requires/pldmSoftPowerOff.service" |
| 45 | rm $LINK |
| 46 | |
| 47 | LINK="$D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.requires/pldmSoftPowerOff.service" |
| 48 | rm $LINK |
| 49 | } |