~ubuntu-branches/ubuntu/quantal/aufs/quantal

« back to all changes in this revision

Viewing changes to fs/aufs/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2008-04-01 18:26:37 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080401182637-ujuqq47eiggw4y5w
Tags: 0+20080401-1
* New upstream snapshot
  - Remove bashisms in script (Closes: #471288)
* debian/conf.mk, linux-patch-aufs.kpatches.sysfs_get_dentry:
  - Remove support for this patch, no longer used
* debian/conf.mk:
  - Add hacks for arm to armel (Closes: #473767)
* debian/control:
  - Add Dm-Upload-Allowed
* debian/copyright:
  - Use http://wiki.debian.org/Proposals/CopyrightFormat
* debian/linux-patch-aufs.kpatches.{splice,put_filp}:
  - Add support for Kernel 2.6.24 (and 2.6.25)
* debian/patches:
  - 01_vserver_apparmor: Update patch
  - 06_rt: Add patch for realtime kernel
  - 07_splice_hack: Add hack to support splice operations (Closes: #473430)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# AUFS Makefile for the Linux 2.6.16 and later
2
 
# $Id: Makefile,v 1.39 2007/12/17 03:30:17 sfjro Exp $
 
2
# $Id: Makefile,v 1.41 2008/03/31 07:40:26 sfjro Exp $
3
3
 
4
4
# the environment variables are not inherited since 2.6.23
5
5
ifdef AUFS_EXTRA_CFLAGS
18
18
 
19
19
ifdef CONFIG_AUFS_WORKAROUND_FUSE
20
20
# it isn't defined in a header file
21
 
fuse = $(shell grep '\#.*define.*FUSE_SUPER_MAGIC' ${srctree}/fs/fuse/inode.c | \
 
21
fuse_f = ${srctree}/fs/fuse/inode.c
 
22
ifeq ($(strip $(shell test -e ${fuse_f} && echo t)),t)
 
23
fuse = $(shell grep '\#.*define.*FUSE_SUPER_MAGIC' ${fuse_f} | \
22
24
        head -n 1 | \
23
25
        awk '{print $$3}')
24
26
EXTRA_CFLAGS += -DFUSE_SUPER_MAGIC=${fuse}
 
27
else
 
28
$(warning Ignoring FUSE_SUPER_MAGIC)
 
29
endif
25
30
endif
26
31
 
 
32
ifdef CONFIG_XFS_FS
 
33
# it isn't defined in a header file
27
34
ifeq ($(strip $(shell test ${SUBLEVEL} -ge 24 && echo t)),t)
28
 
ifdef CONFIG_XFS_FS
29
 
# it isn't defined in a header file
30
 
xfs = $(shell grep '\#.*define.*XFS_SB_MAGIC' ${srctree}/fs/xfs/xfs_sb.h | \
 
35
xfs_f=${srctree}/fs/xfs/xfs_sb.h
 
36
ifeq ($(strip $(shell test -e ${xfs_f} && echo t)),t)
 
37
xfs = $(shell grep '\#.*define.*XFS_SB_MAGIC' ${xfs_f} | \
31
38
        head -n 1 | \
32
39
        awk '{print $$3}')
33
40
EXTRA_CFLAGS += -DXFS_SB_MAGIC=${xfs}
 
41
else
 
42
$(warning Ignoring XFS_SB_MAGIC)
 
43
endif
34
44
endif
35
45
endif
36
46
 
37
47
ifdef CONFIG_TMPFS
38
48
# it isn't defined in a header file
39
 
tmpfs = $(shell grep '\#.*define.*TMPFS_MAGIC' ${srctree}/mm/shmem.c | \
 
49
tmpfs_f=${srctree}/mm/shmem.c
 
50
ifeq ($(strip $(shell test -e ${tmpfs_f} && echo t)),t)
 
51
tmpfs = $(shell grep '\#.*define.*TMPFS_MAGIC' ${tmpfs_f} | \
40
52
        head -n 1 | \
41
53
        awk '{print $$3}')
42
54
EXTRA_CFLAGS += -DTMPFS_MAGIC=${tmpfs}
43
 
endif
 
55
else
 
56
$(warning Ignoring TMPFS_MAGIC)
 
57
endif
 
58
endif
 
59
 
 
60
#$(warning ${EXTRA_CFLAGS})
44
61
 
45
62
########################################
46
63
 
59
76
aufs-$(CONFIG_AUFS_EXPORT) += export.o
60
77
#aufs-$(CONFIG_DEBUGFS) += dbgfs.o
61
78
aufs-$(CONFIG_AUFS_DEBUG) += debug.o
 
79
 
 
80
# cf. aufs.h
 
81
ifdef CONFIG_AUFS_DEBUG
 
82
ifeq "yes" "$(shell test ${SUBLEVEL} -ge 18 && echo yes)"
 
83
aufs-$(CONFIG_MAGIC_SYSRQ) += sysrq.o
 
84
endif
 
85
endif