~ubuntu-branches/ubuntu/raring/aufs/raring

« back to all changes in this revision

Viewing changes to debian/conf.mk

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2008-05-06 18:35:50 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080506183550-0b6c974kkgc46oeh
Tags: 0+20080506-1
* New upstream release, supports Kernel 2.6.25 (Closes: #479717)
* Fix building with older Kernels (Closes: #475042)
* Update the patches 01, 04 and 07 to also patch fs/aufs25

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# Configuration for aufs in Debian
3
3
define exported
4
 
ifneq (,$(shell grep '^.*[[:space:]]$(1)[[:space:]]vmlinux[[:space:]]EXPORT_SYMBOL' $(KSRC)/Module.symvers))
 
4
ifneq (,$(shell grep '^.*[[:space:]]$(1)[[:space:]]vmlinux[[:space:]]EXPORT_SYMBOL' $(srctree)/Module.symvers))
5
5
export $(2)=y
6
6
export EXTRA_CFLAGS += -D$(2)
7
7
endif
9
9
 
10
10
# Configuration for aufs in Debian
11
11
export CONFIG_AUFS                = m
 
12
export CONFIG_AUFS_LOCAL = y
12
13
export CONFIG_AUFS_BRANCH_MAX_127 = y
13
14
export CONFIG_AUFS_RR_SQUASHFS    = y
14
15
export EXTRA_CFLAGS               = -I $(M)/include \
15
16
                                    -DCONFIG_AUFS_BRANCH_MAX_127  -UCONFIG_AUFS \
16
17
                                    -DCONFIG_AUFS_MODULE \
17
 
                                    -DCONFIG_AUFS_SPLICE_PATCH \
 
18
                                    -DCONFIG_AUFS_LOCAL \
18
19
                                    -DCONFIG_AUFS_RR_SQUASHFS
19
20
 
20
21
# Disable sysaufs on ARM, as there is no cmpxchg
25
26
endif
26
27
endif
27
28
 
 
29
ifdef SUBLEVEL
 
30
ifeq "y" "$(shell test $(SUBLEVEL) -ge 23 && echo y)"
 
31
  export EXTRA_CFLAGS += -DCONFIG_AUFS_SPLICE_PATCH
 
32
endif
 
33
endif
28
34
 
29
 
ifneq (,$(KSRC))
 
35
ifneq (,$(srctree))
 
36
ifeq "y" "$(shell test $(SUBLEVEL) -lt 22 && echo y)"
30
37
$(eval $(call exported,ksize,CONFIG_AUFS_KSIZE_PATCH)) #ksize
 
38
endif
31
39
$(eval $(call exported,__lookup_hash,CONFIG_AUFS_LHASH_PATCH)) #lhash
32
40
$(eval $(call exported,put_filp,CONFIG_AUFS_PUT_FILP_PATCH)) #put_filp
33
41
$(eval $(call exported,do_splice_from,CONFIG_AUFS_SPLICE_PATCH2)) # splice_patches
41
49
export EXTRA_CFLAGS        += -DCONFIG_AUFS_FAKE_DM
42
50
endif
43
51
endif
 
52
 
 
53
ifdef CONFIG_AUFS_LHASH_PATCH
 
54
  export CONFIG_AUFS_BR_NFS = y
 
55
  export EXTRA_CFLAGS        += -DCONFIG_AUFS_BR_NFS
 
56
endif