Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC MBOX Daemon" |
| 2 | DESCRIPTION = "Phosphor OpenBMC MBOX Daemon" |
| 3 | PR = "r1" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
| 6 | |
| 7 | inherit autotools pkgconfig |
| 8 | inherit obmc-phosphor-systemd |
| 9 | |
| 10 | DEPENDS += "autoconf-archive-native" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 11 | |
| 12 | # Drop gnome-common-native if AX_CODE_COVERAGE ever comes back to |
| 13 | # autoconf-archive upstream. |
| 14 | DEPENDS += "gnome-common-native" |
| 15 | |
Andrew Jeffery | 5ade840 | 2017-04-21 10:18:24 +0930 | [diff] [blame] | 16 | DEPENDS += "systemd" |
Patrick Williams | f55db88 | 2017-06-30 12:01:49 -0500 | [diff] [blame] | 17 | DEPENDS += "phosphor-logging" |
Andrew Jeffery | 2c567ba | 2017-04-18 16:30:10 +0930 | [diff] [blame] | 18 | RDEPENDS_${PN} += "libsystemd" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 19 | |
| 20 | S = "${WORKDIR}/git" |
| 21 | |
Adriana Kobylak | 54c65d6 | 2017-06-10 09:47:58 -0500 | [diff] [blame] | 22 | SRC_URI += "git://github.com/openbmc/phosphor-mboxd.git" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 23 | |
| 24 | SRC_URI += "file://99-aspeed-mbox.rules" |
Andrew Jeffery | 2a0cb54 | 2017-01-25 13:17:13 +1030 | [diff] [blame] | 25 | SRC_URI += "file://99-aspeed-lpc-ctrl.rules" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 26 | SRC_URI += "file://aspeed-lpc-ctrl-h.patch" |
| 27 | |
Andrew Geissler | c9f7af2 | 2018-02-21 23:40:10 +0000 | [diff] [blame] | 28 | SRCREV="cafb002ebcbe8c9a828a1b3c15d2f9b95fb7e9ec" |
Andrew Jeffery | 2c567ba | 2017-04-18 16:30:10 +0930 | [diff] [blame] | 29 | |
| 30 | PROVIDES += "mboxctl" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 31 | |
| 32 | MBOXD_FLASH_SIZE ??= "32M" |
| 33 | SYSTEMD_SUBSTITUTIONS += "FLASH_SIZE:${MBOXD_FLASH_SIZE}:${PN}.service" |
| 34 | |
| 35 | # Hacks because ${STAGING_KERNEL_DIR} points to the kernel source tree, not the |
| 36 | # installed, pre-processed headers. Requires the aspeed-lpc-ctrl-h patch above. |
Saqib Khan | c8afc6a | 2017-03-09 10:28:09 -0600 | [diff] [blame] | 37 | CFLAGS_append = " -I include" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 38 | |
| 39 | do_install_append() { |
| 40 | install -d ${D}/lib/udev/rules.d |
| 41 | install -m 0644 ${WORKDIR}/99-aspeed-mbox.rules ${D}/lib/udev/rules.d |
Andrew Jeffery | 2a0cb54 | 2017-01-25 13:17:13 +1030 | [diff] [blame] | 42 | install -m 0644 ${WORKDIR}/99-aspeed-lpc-ctrl.rules ${D}/lib/udev/rules.d |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 43 | } |
Matt Spinler | 9f77d28 | 2017-01-20 15:32:07 -0600 | [diff] [blame] | 44 | |
| 45 | TMPL = "mboxd-reload@.service" |
Andrew Geissler | 5804119 | 2017-07-25 09:12:37 -0500 | [diff] [blame] | 46 | TGTFMT = "obmc-chassis-poweron@{0}.target" |
Matt Spinler | 9f77d28 | 2017-01-20 15:32:07 -0600 | [diff] [blame] | 47 | INSTFMT = "mboxd-reload@{0}.service" |
| 48 | FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}" |
| 49 | |
| 50 | SYSTEMD_SERVICE_${PN} += "mboxd.service" |
| 51 | SYSTEMD_SERVICE_${PN} += "mboxd-reload@.service" |
| 52 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" |
Deepak Kodihalli | dd05b96 | 2017-06-29 09:56:24 -0500 | [diff] [blame] | 53 | |
Brad Bishop | 09806a5 | 2018-03-09 00:40:41 -0500 | [diff] [blame] | 54 | # Enable virtual-pnor by DISTRO_FEATURE openpower-ubi-fs. |
| 55 | PACKAGECONFIG_append_df-openpower-ubi-fs = "virtual-pnor" |
Patrick Williams | 74d4dbc | 2017-08-09 16:36:51 -0500 | [diff] [blame] | 56 | PACKAGECONFIG[virtual-pnor] = "--enable-virtual-pnor,--disable-virtual-pnor" |