[OE-core] [RFC][PATCH] kdbus: add git version

Koen Kooi koen at dominion.thruhere.net
Mon Jan 20 16:40:04 UTC 2014


This builds the kernel portion of the kdbus implementation. Userspace support needs systemd git and/or a special glib-2.0 branch.

Due to the use of task_cgroup_path() a 3.11.x or newer kernel is needed.

Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
---
 meta/recipes-core/dbus/kdbus_git.bb |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta/recipes-core/dbus/kdbus_git.bb

diff --git a/meta/recipes-core/dbus/kdbus_git.bb b/meta/recipes-core/dbus/kdbus_git.bb
new file mode 100644
index 0000000..327901d
--- /dev/null
+++ b/meta/recipes-core/dbus/kdbus_git.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Kernel 'dbus-like' code for the Linux kernel"
+
+LICENSE = "LGPLv2+"
+LIC_FILES_CHKSUM = "file://bus.c;beginline=7;endline=10;md5=7d4e724c14885945ad54d05f469f6d0b"
+
+inherit module
+
+PV = "0.0"
+
+SRCREV = "cc55ddf6e5ab685a991fa587c0c7539cc2b95cdf"
+SRC_URI = "git://github.com/gregkh/kdbus.git;protocol=https"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = "KERNELDIR=${STAGING_KERNEL_DIR}"
+
+# there's no modules_install target and the install target uses 'uname -r', so install the module manually
+# '/lib/modules/${KERNEL_VERSION}' is lifted straight from module-strip.bbclass
+do_install() {
+	install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/kdbus
+	install -m0644 kdbus.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/kdbus
+}
-- 
1.7.10




More information about the Openembedded-core mailing list