add unionfs modules and userland utilities 1.0.13
authorMichael Lauer <mickey@vanille-media.de>
Fri, 29 Jul 2005 12:04:49 +0000 (12:04 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 29 Jul 2005 12:04:49 +0000 (12:04 +0000)
packages/unionfs/unionfs-modules.inc
packages/unionfs/unionfs-modules_1.0.13.bb [new file with mode: 0644]
packages/unionfs/unionfs-utils.inc
packages/unionfs/unionfs-utils_1.0.13.bb [new file with mode: 0644]
packages/unionfs/unionfs.inc

index ceada47..5e87288 100644 (file)
@@ -3,6 +3,8 @@ unionutils = "unionctl uniondbg"
 include unionfs.inc
 inherit module
 
+SECTION = "kernel/modules"
+
 EXTRA_OEMAKE = "'CC=${KERNEL_CC}' 'LD=${KERNEL_LD}' \
                'KERNELVER=${KERNEL_VERSION}' \
                'LINUXSRC=${STAGING_KERNEL_DIR}' \
@@ -13,6 +15,7 @@ EXTRA_OEMAKE = "'CC=${KERNEL_CC}' 'LD=${KERNEL_LD}' \
 KCFLAGS = "-D__KERNEL__ -DMODULE -DFISTGEN \
           -DUNIONFS_UNSUPPORTED -DNODEBUG \
           -I. -I${STAGING_KERNEL_DIR}/include \
+           -DUNIONFS_VERSION=\"${PV}\" \
           ${CFLAGS}"
 
 def get_flags(d, bb):
diff --git a/packages/unionfs/unionfs-modules_1.0.13.bb b/packages/unionfs/unionfs-modules_1.0.13.bb
new file mode 100644 (file)
index 0000000..2ff8ff5
--- /dev/null
@@ -0,0 +1,9 @@
+PARALLEL_MAKE = ""
+
+include unionfs-modules.inc
+
+KERNEL_MAJMIN = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')[:3]}"
+
+do_compile() {
+       oe_runmake unionfs${KERNEL_MAJMIN}
+}
index 18b3bc2..6620e91 100644 (file)
@@ -2,8 +2,7 @@ unionutils = "unionctl uniondbg"
 
 include unionfs.inc
 
-FILES_${PN} = "${sbindir}/unionctl"
-FILES_${PN}-dev = "${sbindir}/uniondbg"
+SECTION = "kernel/userland"
 
 do_compile () {
        oe_runmake ${unionutils}
@@ -18,3 +17,7 @@ do_install () {
                install -m 0644 man/$m.8 ${D}${mandir}/man8/ || exit 1
        done
 }
+
+FILES_${PN} = "${sbindir}/unionctl"
+FILES_${PN}-dev = "${sbindir}/uniondbg"
+
diff --git a/packages/unionfs/unionfs-utils_1.0.13.bb b/packages/unionfs/unionfs-utils_1.0.13.bb
new file mode 100644 (file)
index 0000000..be08882
--- /dev/null
@@ -0,0 +1,2 @@
+include unionfs-utils.inc
+
index 392a1cd..72d4ed1 100644 (file)
@@ -10,5 +10,5 @@ SRC_URI = "ftp://ftp.fsl.cs.sunysb.edu/pub/unionfs/unionfs-${PV}.tar.gz \
 S = "${WORKDIR}/unionfs-${PV}"
 FILESPATH = "${FILE_DIRNAME}/unionfs-${PV}:${FILE_DIRNAME}/unionfs:${FILE_DIRNAME}/files:${FILE_DIRNAME}"
 
-export UCFLAGS := "${CFLAGS} -DNODEBUG"
+export UCFLAGS = '${CFLAGS} -DNODEBUG -DUNIONFS_VERSION=\\"${PV}\\"'
 CFLAGS = "${BUILD_OPTIMIZATION}"