aufs: fix cross compiling, delete old patch and bump PR
authorBernhard Guillon <Bernhard.Guillon@opensimpad.org>
Wed, 11 Feb 2009 13:57:39 +0000 (14:57 +0100)
committerBernhard Guillon <Bernhard.Guillon@opensimpad.org>
Wed, 11 Feb 2009 13:57:39 +0000 (14:57 +0100)
packages/aufs/aufs/aufs_create_no_manpage.patch [deleted file]
packages/aufs/aufs_cvs.bb

diff --git a/packages/aufs/aufs/aufs_create_no_manpage.patch b/packages/aufs/aufs/aufs_create_no_manpage.patch
deleted file mode 100644 (file)
index ec7c0c1..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-OE-only:
-comment: Not building the manpage is just a hack.
-
-diff -Nur aufs.vanilla/util/Makefile aufs/util/Makefile
---- aufs.vanilla/util/Makefile 2008-08-23 13:00:37.000000000 +0200
-+++ aufs/util/Makefile 2008-08-23 15:40:26.000000000 +0200
-@@ -1,25 +1,10 @@
- # $Id: Makefile,v 1.10 2008/05/26 04:02:40 sfjro Exp $
--all: aufs.5 aulchown
-+all: aulchown
-       test -x ./mount.aufs || chmod a+x ./mount.aufs
--aufs.5: aufs.in.5 ./c2tmac
--      ${RM} $@
--      ./c2tmac > $@
--      awk '{ \
--              gsub(/\140[^\047]*\047/, "\\[oq]&\\[cq]"); \
--              gsub(/\\\[oq\]\140/, "\\[oq]"); \
--              gsub(/\047\\\[cq\]/, "\\[cq]"); \
--              gsub(/\047/, "\\[aq]"); \
--              print; \
--      }' aufs.in.5 >> $@
--      chmod a-w $@
--
- CFLAGS += -O2 -Wall ${EXTRA_CFLAGS} ${ccflags-y}
--.INTERMEDIATE: c2tmac.o c2tmac
--c2tmac.o: c2tmac.c ../include/linux/aufs_type.h
--
- clean:
--      ${RM} c2tmac aulchown aufs.5 *~ .*~
-+      ${RM} aulchown *~ .*~
index cf98e08..815a24f 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Aufs is a stackable unification filesystem such as Unionfs, which
 HOMEPAGE = "http://aufs.sourceforge.net/"
 LICENSE = "GPL"
 PV = "cvs${SRCDATE}"
-PR = "r2"
+PR = "r3"
 
 RSUGGESTS_${PN} = "${PN}-tools"
 
@@ -10,12 +10,6 @@ inherit module
 
 S = "${WORKDIR}/aufs"
 
-# We do not create the manpage for aufs because we do not install it anyway.
-# If you want to have the manpage created you will need to add host cc to
-# the makefile else it will fail to crosscompile.
-# See http://svn.exactcode.de/t2/trunk/package/filesystem/aufs/compile.patch.cross
-# as an example how this could be done.
-
 SRC_URI = "cvs://anonymous@aufs.cvs.sourceforge.net/cvsroot/aufs;module=aufs;date=${SRCDATE}"
 
 EXTRA_OEMAKE = "KDIR=${STAGING_KERNEL_DIR} -f local.mk"
@@ -39,6 +33,16 @@ do_configure() {
        fi
 }
 
+do_compile_prepend() {
+#compile binaries for host     
+       cd ${S}/util
+       BRANCH_MAX=$(fgrep CONFIG_AUFS_BRANCH_MAX ../local.mk | grep y | cut -d " " -f 2)
+       ${BUILD_CC} -D ${BRANCH_MAX} c2tmac.c ../include/linux/aufs_type.h -o c2tmac
+       ${BUILD_CC} -D ${BRANCH_MAX} c2sh.c ../include/linux/aufs_type.h -o c2sh
+       cd ${S}
+}
+
+
 do_install() {
        install -d ${D}/${sbindir}
        install -m 0500 mount.aufs umount.aufs auplink aulchown ${D}/${sbindir}