[oe-commits] Bernhard Guillon : aufs: fix cross compiling, delete old patch and bump PR

GIT User account git at amethyst.openembedded.net
Wed Feb 11 14:01:48 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 5082491d1df9f027c5409750f78992a6d877b990
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5082491d1df9f027c5409750f78992a6d877b990

Author: Bernhard Guillon <Bernhard.Guillon at opensimpad.org>
Date:   Wed Feb 11 14:57:39 2009 +0100

aufs: fix cross compiling, delete old patch and bump PR

---

 packages/aufs/aufs/aufs_create_no_manpage.patch |   34 -----------------------
 packages/aufs/aufs_cvs.bb                       |   18 +++++++-----
 2 files changed, 11 insertions(+), 41 deletions(-)

diff --git a/packages/aufs/aufs/aufs_create_no_manpage.patch b/packages/aufs/aufs/aufs_create_no_manpage.patch
deleted file mode 100644
index ec7c0c1..0000000
--- a/packages/aufs/aufs/aufs_create_no_manpage.patch
+++ /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 *~ .*~
diff --git a/packages/aufs/aufs_cvs.bb b/packages/aufs/aufs_cvs.bb
index cf98e08..815a24f 100644
--- a/packages/aufs/aufs_cvs.bb
+++ b/packages/aufs/aufs_cvs.bb
@@ -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}





More information about the Openembedded-commits mailing list