aboutsummaryrefslogtreecommitdiffstats
path: root/packages/unionfs/unionfs-modules.inc
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-14 19:53:48 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-14 19:53:48 +0000
commiteb58ba04e02ae24fe01debb64c1edd6e96d12810 (patch)
tree654e184d6dc708fd4ec005bced777c5bb8e35058 /packages/unionfs/unionfs-modules.inc
parent8758c420d31de08695b946a8e11921ff2cff6b7b (diff)
downloadopenembedded-eb58ba04e02ae24fe01debb64c1edd6e96d12810.tar.gz
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/01/14 13:53:47-06:00 ti.com!kergoth Clean up the unionfs modules build to use the KERNEL_OBJECT_SUFFIX variable. 2005/01/14 13:40:24-06:00 ti.com!kergoth Fix the unionfs modules to build and install correctly when building for 2.6. BKrev: 41e8234cp9Vrd2hKjFkWoeegw6g0JA
Diffstat (limited to 'packages/unionfs/unionfs-modules.inc')
-rw-r--r--packages/unionfs/unionfs-modules.inc23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/unionfs/unionfs-modules.inc b/packages/unionfs/unionfs-modules.inc
index e69de29bb2..ab7852a2c8 100644
--- a/packages/unionfs/unionfs-modules.inc
+++ b/packages/unionfs/unionfs-modules.inc
@@ -0,0 +1,23 @@
+unionutils = "unionctl uniondbg"
+
+include unionfs.inc
+inherit module
+CFLAGS =+ "-D__KERNEL__ -DMODULE -I${STAGING_KERNEL_DIR}/include"
+EXTRA_OEMAKE = "'CC=${KERNEL_CC}' 'LD=${KERNEL_LD}' \
+ 'KERNELVER=${KERNEL_VERSION}' \
+ 'LINUXSRC=${STAGING_KERNEL_DIR}' \
+ 'CROSS_COMPILE=${TARGET_PREFIX}' \
+ 'OS=${TARGET_OS}'"
+
+do_compile () {
+ unset CFLAGS LDFLAGS
+ oe_runmake unionfs${KERNEL_OBJECT_SUFFIX}
+}
+
+do_install () {
+ install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/fs
+ install -m 0644 unionfs${KERNEL_OBJECT_SUFFIX} ${D}/lib/modules/${KERNEL_VERSION}/kernel/fs/
+
+ install -d ${D}/${mandir}/man4
+ install -m 0644 man/unionfs.4 ${D}/${mandir}/man4/
+}