summaryrefslogtreecommitdiff
path: root/recipes/changedfiles/changedfiles-modules_1.0-rc1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/changedfiles/changedfiles-modules_1.0-rc1.bb')
-rw-r--r--recipes/changedfiles/changedfiles-modules_1.0-rc1.bb28
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes/changedfiles/changedfiles-modules_1.0-rc1.bb b/recipes/changedfiles/changedfiles-modules_1.0-rc1.bb
new file mode 100644
index 0000000000..c24a473beb
--- /dev/null
+++ b/recipes/changedfiles/changedfiles-modules_1.0-rc1.bb
@@ -0,0 +1,28 @@
+require changedfiles.inc
+
+PR = "r2"
+B = "${WORKDIR}/changedfiles-${PV}/module"
+
+inherit module
+
+do_compile() {
+ ${CC} -Wall -DMODULE -D__KERNEL__ -I${STAGING_KERNEL_DIR}/include -c changedfiles.c
+}
+
+pkg_postinst() {
+#!/bin/sh
+if [ -n $D ]; then exit 1; fi
+/bin/mknod /dev/changedfiles c 40 0; exit 0
+chmod 0600 /dev/changedfiles
+}
+
+pkg_postrm() {
+#!/bin/sh
+if [ -n $D ]; then exit 1; fi
+rm -f /dev/changedfiles
+}
+
+do_install() {
+ install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/fs/changedfiles/
+ install -m 0644 changedfiles.o ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/fs/changedfiles/
+}