summaryrefslogtreecommitdiff
path: root/recipes/changedfiles/changedfiles-modules_1.0-rc1.bb
blob: 6d1ce0cf5419c3c48665e5c74bccab83f1526071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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/
}

SRC_URI[md5sum] = "e44e2a833151632dae7b68e815400bc1"
SRC_URI[sha256sum] = "26991b827f96a49ebd164409852d781b0a74a765c385c56c21a7ae44d030ab42"