Julian Andres Klode: > > It used to be possible to build aufs without the full kernel sources,=20 > > but now this doesn't work, I get the following: ::: > See the attached patch. ::: > -EXTRA_CFLAGS +=3D -DXFS_SB_MAGIC=3D${xfs} > +EXTRA_CFLAGS +=3D -DXFS_SB_MAGIC=3D0x58465342
Right. Or I made a different patch though I don't like this silly style of au building system. Junjiro Okajima ---------------------------------------------------------------------- diff -x CVS -x RCS -x .pdiff -rup ../../sf.anon/aufs/README ./README --- ../../sf.anon/aufs/README 2008-01-28 14:20:59.000000000 +0900 +++ ./README 2008-01-31 14:02:07.000000000 +0900 @@ -157,6 +157,13 @@ When you configure aufs by modifying ./l leave it blank/unset when you disable an aufs configuration, instead of setting 'n.' +The aufs build system may refer some kernel source files for some +macros or internal functions which are not decleared in their header +files. It depends upon the configuration whether these files will be +refered or not. +Even if you don't have these source files in your build environment, +aufs can be built safely, but works less effeicently in some cases. + There is a contributed Makefile for aufs users. You might want to try it. Check http://sourceforge.net/mailarchive/forum.php?thread_name=9c4865a10707241831r189f9646n5f2c4a9c303797d1%40mail.gmail.com&forum_name=aufs-users diff -x CVS -x RCS -x .pdiff -rup ../../sf.anon/aufs/fs/aufs/Makefile ./fs/aufs/Makefile --- ../../sf.anon/aufs/fs/aufs/Makefile 2008-01-25 17:42:15.000000000 +0900 +++ ./fs/aufs/Makefile 2008-01-31 14:17:06.000000000 +0900 @@ -18,28 +18,50 @@ endif ifdef CONFIG_AUFS_WORKAROUND_FUSE # it isn't defined in a header file -fuse = $(shell grep '\#.*define.*FUSE_SUPER_MAGIC' ${srctree}/fs/fuse/inode.c | \ +f=${srctree}/fs/fuse/inode.c +ifeq ($(strip $(shell test -e ${f} && echo t)),t) +fuse = $(shell grep '\#.*define.*FUSE_SUPER_MAGIC' ${f} | \ head -n 1 | \ awk '{print $$3}') EXTRA_CFLAGS += -DFUSE_SUPER_MAGIC=${fuse} +else +$(warning Ignoring ${f}) +endif endif -ifeq ($(strip $(shell test ${SUBLEVEL} -ge 24 && echo t)),t) ifdef CONFIG_XFS_FS # it isn't defined in a header file -xfs = $(shell grep '\#.*define.*XFS_SB_MAGIC' ${srctree}/fs/xfs/xfs_sb.h | \ +f=${srctree}/fs/xfs/xfs_sb.h +ifeq ($(strip $(shell test ${SUBLEVEL} -ge 24 -a -e ${f} && echo t)),t) +xfs = $(shell grep '\#.*define.*XFS_SB_MAGIC' ${f} | \ head -n 1 | \ awk '{print $$3}') EXTRA_CFLAGS += -DXFS_SB_MAGIC=${xfs} +else +$(warning Ignoring ${f}) endif endif ifdef CONFIG_TMPFS # it isn't defined in a header file -tmpfs = $(shell grep '\#.*define.*TMPFS_MAGIC' ${srctree}/mm/shmem.c | \ +f=${srctree}/mm/shmem.c +ifeq ($(strip $(shell test -e ${f} && echo t)),t) +tmpfs = $(shell grep '\#.*define.*TMPFS_MAGIC' ${f} | \ head -n 1 | \ awk '{print $$3}') EXTRA_CFLAGS += -DTMPFS_MAGIC=${tmpfs} +else +$(warning Ignoring ${f}) +endif +endif + +ifdef CONFIG_AUFS_SYSFS_GET_DENTRY_PATCH +f=${srctree}/fs/sysfs/sysfs.h +ifneq ($(strip $(shell test -e ${f} && echo t)),t) +$(warning Ignoring CONFIG_AUFS_SYSFS_GET_DENTRY_PATCH since ${f} doesn't exist.) +EXTRA_CFLAGS += -UCONFIG_AUFS_SYSFS_GET_DENTRY_PATCH +CONFIG_AUFS_SYSFS_GET_DENTRY_PATCH= +endif endif ######################################## ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/