blob: c858d5b4b1207409bef5566109e1aff466b6653e [file] [log] [blame]
Patrick Venture30823b22018-03-30 11:23:16 -07001SUMMARY = "Phosphor OpenBMC Post Code Daemon"
2DESCRIPTION = "Phosphor OpenBMC Post Code Daemon"
Patrick Venturea9ac4e52018-09-28 19:21:26 -07003HOMEPAGE = "http://github.com/openbmc/phosphor-host-postd"
Patrick Venture30823b22018-03-30 11:23:16 -07004PR = "r1"
Patrick Venturea9ac4e52018-09-28 19:21:26 -07005PV = "0.1+git${SRCPV}"
6LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
Patrick Venture30823b22018-03-30 11:23:16 -07008
Kun Yi69c2c412020-05-02 22:13:53 -07009inherit meson
10inherit pkgconfig
Patrick Venturec7874222018-10-23 11:57:36 -070011inherit systemd
Patrick Venture30823b22018-03-30 11:23:16 -070012
Benjamin Faira41f2462020-04-07 11:48:40 -070013PACKAGECONFIG ?= ""
Kun Yi69c2c412020-05-02 22:13:53 -070014PACKAGECONFIG[7seg] = "-D7seg=enabled,-D7seg=disabled,,udev"
Benjamin Faira41f2462020-04-07 11:48:40 -070015
Patrick Venture30823b22018-03-30 11:23:16 -070016DEPENDS += "sdbusplus"
Kun Yicf492442018-09-12 11:01:33 -070017DEPENDS += "sdeventplus"
Patrick Venture30823b22018-03-30 11:23:16 -070018DEPENDS += "phosphor-dbus-interfaces"
19DEPENDS += "systemd"
20
Patrick Venturea9ac4e52018-09-28 19:21:26 -070021S = "${WORKDIR}/git"
22SRC_URI = "git://github.com/openbmc/phosphor-host-postd"
Andrew Geissler80109432020-05-15 19:31:07 +000023SRCREV = "bf002b46d5fb2f176fb22e48c6f1172bc970e17d"
Patrick Venturea9ac4e52018-09-28 19:21:26 -070024
Benjamin Fair8c605cf2018-06-29 13:00:14 -070025SNOOP_DEVICE ?= "aspeed-lpc-snoop0"
26POST_CODE_BYTES ?= "1"
27
28SERVICE_FILE = "lpcsnoop.service"
Patrick Venturec7874222018-10-23 11:57:36 -070029SYSTEMD_PACKAGES = "${PN}"
Benjamin Fair8c605cf2018-06-29 13:00:14 -070030SYSTEMD_SERVICE_${PN} += "${SERVICE_FILE}"
Patrick Venturec7874222018-10-23 11:57:36 -070031
Kun Yi69c2c412020-05-02 22:13:53 -070032EXTRA_OEMESON += "-Dsnoop-device=${SNOOP_DEVICE}"
33EXTRA_OEMESON += "-Dpost-code-bytes=${POST_CODE_BYTES}"
34EXTRA_OEMESON += "-Dsystemd-target=multi-user.target"
Benjamin Faira41f2462020-04-07 11:48:40 -070035
36POSTCODE_SEVENSEG_DEVICE ?= "seven_seg_disp_val"
37SERVICE_FILE_7SEG = " \
38 postcode-7seg@.service \
39 postcode-7seg@${POSTCODE_SEVENSEG_DEVICE}.service \
40"
41SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', '7seg', '${SERVICE_FILE_7SEG}', '', d)}"