diff options
author | Michael Lauer <mickey@vanille-media.de> | 2004-05-16 12:13:11 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2004-05-16 12:13:11 +0000 |
commit | 8e707b1b2b7049b02e62a693b7c287d53b39b920 (patch) | |
tree | 2b7752218dfde15c4de26c70888f09b946939eef | |
parent | f470fd8bef7baa04181e895c3f78b8270bcedd14 (diff) |
fix compilation of changedfiles-modules
BKrev: 40a75ad7lQdUIdVYzMUGxHT7l6RvaA
-rw-r--r-- | changedfiles/changedfiles-modules_1.0-rc1.oe | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/changedfiles/changedfiles-modules_1.0-rc1.oe b/changedfiles/changedfiles-modules_1.0-rc1.oe index dd3c3debb3..346b20f166 100644 --- a/changedfiles/changedfiles-modules_1.0-rc1.oe +++ b/changedfiles/changedfiles-modules_1.0-rc1.oe @@ -11,14 +11,21 @@ S = "${WORKDIR}/changedfiles-${PV}/module" inherit module do_compile() { - changedfiles.o: changedfiles.c - ${CC} -Wall -DMODULE -D__KERNEL__ -I${KERNEL_PATH} -c changedfiles.c + ${CC} -Wall -DMODULE -D__KERNEL__ -I${KERNEL_PATH}/include -c changedfiles.c } -#install-exec-hook: -# (/bin/mknod /dev/changedfiles c 40 0; exit 0 ) -# chmod 0600 /dev/changedfiles -#FIXME perhaps package also readtest in an init script? +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}/lib/modules/${KERNEL_VERSION}/kernel/fs/changedfiles/ |