From 31b6cf91f20a26dfb18cf56f123c5f30fd86c0af Mon Sep 17 00:00:00 2001 From: Chanh Nguyen Date: Mon, 16 Dec 2024 08:22:01 +0000 Subject: mctp: upgrade 2.0 -> 2.1 Signed-off-by: Chanh Nguyen Signed-off-by: Khem Raj --- meta-networking/recipes-support/mctp/mctp_2.0.bb | 46 ------------------------ meta-networking/recipes-support/mctp/mctp_2.1.bb | 46 ++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 46 deletions(-) delete mode 100644 meta-networking/recipes-support/mctp/mctp_2.0.bb create mode 100644 meta-networking/recipes-support/mctp/mctp_2.1.bb diff --git a/meta-networking/recipes-support/mctp/mctp_2.0.bb b/meta-networking/recipes-support/mctp/mctp_2.0.bb deleted file mode 100644 index 24f974774d..0000000000 --- a/meta-networking/recipes-support/mctp/mctp_2.0.bb +++ /dev/null @@ -1,46 +0,0 @@ -SUMMARY = "Management Component Control Protocol utilities" -HOMEPAGE = "http://www.github.com/CodeConstruct/mctp" -SECTION = "net" -LICENSE = "GPL-2.0-only" - -LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21" - -SRCREV = "089dc53fa7387cca517cd713061c323ca06fb6dd" - -SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https" - -S = "${WORKDIR}/git" - -inherit meson pkgconfig systemd - -EXTRA_OEMESON = " \ - -Dtests=false \ -" - -PACKAGECONFIG ??= " \ - ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ -" - -# mctpd will only be built if pkg-config detects libsystemd; in which case -# we'll want to declare the dep and install the service. -PACKAGECONFIG[systemd] = ",,systemd,libsystemd" -SYSTEMD_SERVICE:${PN} = "mctpd.service mctp.target mctp-local.target" -SYSTEMD_AUTO_ENABLE:${PN} = "enable" - -do_install:append () { - if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'true', 'false', d)}; then - install -d ${D}${systemd_system_unitdir} - install -m 0644 ${S}/conf/mctpd.service \ - ${D}${systemd_system_unitdir}/mctpd.service - install -m 0644 ${S}/conf/*.target \ - ${D}${systemd_system_unitdir}/ - install -d ${D}${datadir}/dbus-1/system.d - install -m 0644 ${S}/conf/mctpd-dbus.conf \ - ${D}${datadir}/dbus-1/system.d/mctpd.conf - fi -} - -FILES:${PN} += " \ - ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \ - '${datadir}/dbus-1/system.d/mctpd.conf', '', d)} \ -" diff --git a/meta-networking/recipes-support/mctp/mctp_2.1.bb b/meta-networking/recipes-support/mctp/mctp_2.1.bb new file mode 100644 index 0000000000..931a4535aa --- /dev/null +++ b/meta-networking/recipes-support/mctp/mctp_2.1.bb @@ -0,0 +1,46 @@ +SUMMARY = "Management Component Control Protocol utilities" +HOMEPAGE = "http://www.github.com/CodeConstruct/mctp" +SECTION = "net" +LICENSE = "GPL-2.0-only" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21" + +SRCREV = "9042704131d270e713fc267d3cc84273bc995315" + +SRC_URI = "git://github.com/CodeConstruct/mctp;branch=main;protocol=https" + +S = "${WORKDIR}/git" + +inherit meson pkgconfig systemd + +EXTRA_OEMESON = " \ + -Dtests=false \ +" + +PACKAGECONFIG ??= " \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ +" + +# mctpd will only be built if pkg-config detects libsystemd; in which case +# we'll want to declare the dep and install the service. +PACKAGECONFIG[systemd] = ",,systemd,libsystemd" +SYSTEMD_SERVICE:${PN} = "mctpd.service mctp.target mctp-local.target" +SYSTEMD_AUTO_ENABLE:${PN} = "enable" + +do_install:append () { + if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'true', 'false', d)}; then + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${S}/conf/mctpd.service \ + ${D}${systemd_system_unitdir}/mctpd.service + install -m 0644 ${S}/conf/*.target \ + ${D}${systemd_system_unitdir}/ + install -d ${D}${datadir}/dbus-1/system.d + install -m 0644 ${S}/conf/mctpd-dbus.conf \ + ${D}${datadir}/dbus-1/system.d/mctpd.conf + fi +} + +FILES:${PN} += " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \ + '${datadir}/dbus-1/system.d/mctpd.conf', '', d)} \ +" -- cgit v1.2.3-54-g00ecf