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" |
| 3 | PR = "r1" |
| 4 | PV = "1.0+git${SRCPV}" |
| 5 | |
| 6 | inherit systemd |
| 7 | inherit autotools pkgconfig |
| 8 | |
| 9 | HOMEPAGE = "https://github.com/openbmc/libmctp" |
| 10 | LICENSE = "Apache-2.0" |
| 11 | LIC_FILES_CHKSUM = "file://LICENSE;md5=0d30807bb7a4f16d36e96b78f9ed8fae" |
Patrick Williams | bb99d22 | 2022-01-24 15:55:09 -0600 | [diff] [blame] | 12 | SRC_URI = "git://github.com/openbmc/libmctp;branch=master;protocol=https \ |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 13 | file://default" |
Andrew Geissler | d232279 | 2022-07-06 21:20:15 -0500 | [diff] [blame] | 14 | SRCREV = "fcb65abbe811bba5085b6c562fc40420b0ffc40e" |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 15 | |
| 16 | DEPENDS += "autoconf-archive-native \ |
| 17 | systemd \ |
George Liu | 948c7b4 | 2021-06-24 11:13:15 +0800 | [diff] [blame] | 18 | " |
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 | " |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 23 | |
Brad Bishop | 959aa76 | 2021-12-03 15:55:30 -0500 | [diff] [blame] | 24 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} pcap" |
Andrew Jeffery | d957f03 | 2021-05-12 22:31:34 +0930 | [diff] [blame] | 25 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}, \ |
| 26 | --without-systemdsystemunitdir,systemd" |
| 27 | |
Andrew Jeffery | 8e0e67f | 2021-05-11 13:40:40 +0930 | [diff] [blame] | 28 | PACKAGECONFIG[astlpc-raw-kcs] = "--enable-astlpc-raw-kcs,--disable-astlpc-raw-kcs,udev,udev" |
Brad Bishop | f4f6f17 | 2021-12-02 15:09:01 -0500 | [diff] [blame] | 29 | PACKAGECONFIG[pcap] = "--enable-capture,--disable-capture,libpcap," |
Andrew Jeffery | 8e0e67f | 2021-05-11 13:40:40 +0930 | [diff] [blame] | 30 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 31 | CONFFILES:${PN} = "${sysconfdir}/default/mctp" |
Andrew Jeffery | d957f03 | 2021-05-12 22:31:34 +0930 | [diff] [blame] | 32 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 33 | do_install:append() { |
Jeremy Kerr | 708f0cc | 2019-12-20 12:02:36 +0800 | [diff] [blame] | 34 | install -d ${D}${sysconfdir}/default |
| 35 | install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/mctp |
| 36 | } |
| 37 | |
| 38 | S = "${WORKDIR}/git" |