Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 1 | SUMMARY = "MCTP stack" |
| 2 | DESCRIPTION = "MCTP library implementing the MCTP base specification" |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 3 | HOMEPAGE = "https://github.com/openbmc/libmctp" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=0d30807bb7a4f16d36e96b78f9ed8fae" |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 6 | DEPENDS += "autoconf-archive-native \ |
| 7 | systemd \ |
George Liu | 948c7b4 | 2021-06-24 11:13:15 +0800 | [diff] [blame] | 8 | " |
Andrew Geissler | 85a1165 | 2022-10-16 18:31:59 -0500 | [diff] [blame] | 9 | SRCREV = "695deed810e5bb15468bbef099777c08236cf0a0" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 10 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} pcap" |
| 11 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}, \ |
| 12 | --without-systemdsystemunitdir,systemd" |
| 13 | PACKAGECONFIG[astlpc-raw-kcs] = "--enable-astlpc-raw-kcs,--disable-astlpc-raw-kcs,udev,udev" |
| 14 | PACKAGECONFIG[pcap] = "--enable-capture,--disable-capture,libpcap," |
| 15 | PV = "1.0+git${SRCPV}" |
| 16 | PR = "r1" |
| 17 | |
| 18 | SRC_URI = "git://github.com/openbmc/libmctp;branch=master;protocol=https \ |
| 19 | file://default" |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 20 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 21 | SYSTEMD_SERVICE:${PN} = "mctp-demux.service \ |
George Liu | 948c7b4 | 2021-06-24 11:13:15 +0800 | [diff] [blame] | 22 | mctp-demux.socket \ |
| 23 | " |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 24 | S = "${WORKDIR}/git" |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 25 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 26 | inherit systemd |
| 27 | inherit autotools pkgconfig |
Andrew Jeffery | d957f03 | 2021-05-12 22:31:34 +0930 | [diff] [blame] | 28 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 29 | do_install:append() { |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 30 | install -d ${D}${sysconfdir}/default |
| 31 | install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/mctp |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 32 | } |
| 33 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 34 | CONFFILES:${PN} = "${sysconfdir}/default/mctp" |