From 1e12d64f70cce8bc16594a85d33dbb883f6c76ee Mon Sep 17 00:00:00 2001 From: Shiping Ji Date: Sun, 10 Oct 2021 21:37:33 -0700 Subject: Add recipe for driverctl Signed-off-by: Khem Raj --- .../packagegroups/packagegroup-meta-oe.bb | 1 + meta-oe/recipes-support/driverctl/driverctl_git.bb | 28 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 meta-oe/recipes-support/driverctl/driverctl_git.bb diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb index ffb8aa665e..c35c6cb950 100644 --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb @@ -718,6 +718,7 @@ RDEPENDS:packagegroup-meta-oe-support ="\ anthy \ atop \ ace-cloud-editor \ + driverctl \ frame \ ${@bb.utils.contains("DISTRO_FEATURES", "x11", "geis", "", d)} \ grail \ diff --git a/meta-oe/recipes-support/driverctl/driverctl_git.bb b/meta-oe/recipes-support/driverctl/driverctl_git.bb new file mode 100644 index 0000000000..7404f40c21 --- /dev/null +++ b/meta-oe/recipes-support/driverctl/driverctl_git.bb @@ -0,0 +1,28 @@ +SUMMARY = "driverctl is a device driver control utility for Linux" +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1-only;md5=1a6d268fd218675ffea8be556788b780" + +REQUIRED_DISTRO_FEATURES = "systemd" + +DEPENDS = "systemd" +RDEPENDS:${PN} += "bash bash-completion" + +SRC_URI = " git://gitlab.com/driverctl/driverctl.git" +SRCREV = "fa9dce43d1a667d6e6e26895fbed01b3b04362c9" + +S = "${WORKDIR}/git" + +inherit pkgconfig systemd features_check + +FILES:${PN} += "${libdir}" +FILES:${PN} += "${libdir}/udev" +FILES:${PN} += "${libdir}/udev/rules.d" +FILES:${PN} += "${systemd_unitdir}" +FILES:${PN} += "${systemd_unitdir}/system" +FILES:${PN} += "${datadir}" +FILES:${PN} += "${datadir}/bash-completion" +FILES:${PN} += "${datadir}/bash-completion/completions" + +do_install () { + oe_runmake install DESTDIR=${D} +} -- cgit v1.2.3-54-g00ecf