[l-u-m] [PATCH 2/2] UBUNTU: Fix patch detection of aufs
Julian Andres Klode
juliank at ubuntu.com
Wed Jan 30 11:32:43 UTC 2008
---
ubuntu/fs/aufs/Makefile | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ubuntu/fs/aufs/Makefile b/ubuntu/fs/aufs/Makefile
index 8d80085..cc46283 100644
--- a/ubuntu/fs/aufs/Makefile
+++ b/ubuntu/fs/aufs/Makefile
@@ -1,6 +1,11 @@
#!/usr/bin/make -f
# Makefile for building the aufs module in Debian
-
+# hack for l-u-m
+ifndef KSRC
+ifdef srctree
+KSRC=$(srctree)
+endif
+endif
# Parts from conf.mk
# Configuration for aufs in Debian
export CONFIG_AUFS = m
@@ -40,8 +45,8 @@ export EXTRA_CFLAGS += -DCONFIG_AUFS_SYSFS_GET_DENTRY_PATCH
endif
# put_filp patch
ifneq (,$(shell grep '^.*[[:space:]]put_filp[[:space:]]vmlinux[[:space:]]EXPORT_SYMBOL' $(KSRC)/Module.symvers))
-export CONFIG_AUFS_PUT_FLIP_PATCH = y
-export EXTRA_CFLAGS += -DCONFIG_AUFS_PUT_FLIP_PATCH
+export CONFIG_AUFS_PUT_FILP_PATCH = y
+export EXTRA_CFLAGS += -DCONFIG_AUFS_PUT_FILP_PATCH
DISABLE_FAKE_DM=y
endif
# Check for sec_perm patch
--
1.5.2.5
More information about the kernel-team
mailing list