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 | cbf87dd | 2023-10-04 19:50:09 -0500 | [diff] [blame] | 9 | SRCREV = "400766f94322a00981b012e714734cab0ed52e68" |
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" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 13 | PACKAGECONFIG[pcap] = "--enable-capture,--disable-capture,libpcap," |
| 14 | PV = "1.0+git${SRCPV}" |
| 15 | PR = "r1" |
| 16 | |
| 17 | SRC_URI = "git://github.com/openbmc/libmctp;branch=master;protocol=https \ |
| 18 | file://default" |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 19 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 20 | SYSTEMD_SERVICE:${PN} = "mctp-demux.service \ |
George Liu | 948c7b4 | 2021-06-24 11:13:15 +0800 | [diff] [blame] | 21 | mctp-demux.socket \ |
| 22 | " |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 23 | S = "${WORKDIR}/git" |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 24 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 25 | inherit systemd |
| 26 | inherit autotools pkgconfig |
Andrew Jeffery | d957f03 | 2021-05-12 22:31:34 +0930 | [diff] [blame] | 27 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 28 | do_install:append() { |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 29 | install -d ${D}${sysconfdir}/default |
| 30 | install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/mctp |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 31 | } |
| 32 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 33 | CONFFILES:${PN} = "${sysconfdir}/default/mctp" |