summaryrefslogtreecommitdiff
path: root/fs/aufs/conf.mk
blob: 0bbb2d3a528594f31e5f231c691a7b2f72a90a5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

AuConfStr = CONFIG_AUFS_FS=${CONFIG_AUFS_FS}

define AuConf
ifdef ${1}
AuConfStr += ${1}=${${1}}
endif
endef

AuConfAll = BRANCH_MAX_127 BRANCH_MAX_511 BRANCH_MAX_1023 BRANCH_MAX_32767 \
	SBILIST \
	HNOTIFY HFSNOTIFY \
	EXPORT INO_T_64 \
	XATTR \
	FHSM \
	RDU \
	SHWH \
	BR_RAMFS \
	BR_FUSE POLL \
	BR_HFSPLUS \
	BDEV_LOOP \
	DEBUG MAGIC_SYSRQ
$(foreach i, ${AuConfAll}, \
	$(eval $(call AuConf,CONFIG_AUFS_${i})))

AuConfName = ${obj}/conf.str
${AuConfName}.tmp: FORCE
	@echo ${AuConfStr} | tr ' ' '\n' | sed -e 's/^/"/' -e 's/$$/\\n"/' > $@
${AuConfName}: ${AuConfName}.tmp
	@diff -q $< $@ > /dev/null 2>&1 || { \
	echo '  GEN    ' $@; \
	cp -p $< $@; \
	}
FORCE:
clean-files += ${AuConfName} ${AuConfName}.tmp
${obj}/sysfs.o: ${AuConfName}

-include ${srctree}/${src}/conf_priv.mk