-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
68 lines (52 loc) · 1.58 KB
/
Makefile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
# Makefile for the linux filesystem, AEON.
#
#CONFIG_AEON_FS_XATTR=y
#CONFIG_AEON_FS_SECURITY=y
#CONFIG_AEON_FS_COMPRESSION=y
#CONFIG_AEON_FS_DEBUG_MODE=y
#CONFIG_AEON_FS_AEON_RW=y
# If both CONFIG_AEON_FS_PERCPU_FREELIST
# and CONFIG_AEON_FS_NUMA are enabled,
# file system uses the code for numa so far.
#
# Not working numa correctly in this version.
# 4ge32/aeon-gevanni repo was used for
# the experiment with real numa nvdimm architecture machine.
#CONFIG_AEON_FS_PERCPU_FREELIST=y
#CONFIG_AEON_FS_NUMA=y
#CONFIG_AEON_FS_PERCPU_INODEMAP=y
ifdef CONFIG_AEON_FS_XATTR
ccflags-y += -DCONFIG_AEON_FS_XATTR
endif
ifdef CONFIG_AEON_FS_SECURITY
ccflags-y += -DCONFIG_AEON_FS_SECURITY
endif
ifdef CONFIG_AEON_FS_COMPRESSION
ccflags-y += -DCONFIG_AEON_FS_COMPRESSION
endif
ifdef CONFIG_AEON_FS_DEBUG_MODE
ccflags-y += -DCONFIG_AEON_FS_DEBUG_MODE
endif
ifdef CONFIG_AEON_FS_PERCPU_FREELIST
ccflags-y += -DCONFIG_AEON_FS_PERCPU
endif
ifdef CONFIG_AEON_FS_NUMA
ccflags-y += -DCONFIG_AEON_FS_NUMA
endif
ifdef CONFIG_AEON_FS_PERCPU_INODEMAP
ccflags-y += -DCONFIG_AEON_FS_PERCPU_INODEMAP
endif
ifdef CONFIG_AEON_FS_AEON_RW
ccflags-y += -DCONFIG_AEON_FS_AEON_RW
endif
obj-m += aeon.o
aeon-y += super.o balloc.o inode.o mprotect.o namei.o dir.o \
file.o new_extents.o rebuild.o symlink.o debug.o ioctl.o \
aeon-$(CONFIG_AEON_FS_XATTR) += xattr.o xattr_user.o xattr_trusted.o
aeon-$(CONFIG_AEON_FS_SECURITY) += xattr_security.o
aeon-$(CONFIG_AEON_FS_COMPRESSION) += compression.o cfile.o
all:
make -C /lib/modules/$(shell uname -r)/build M=`pwd`
clean:
make -C /lib/modules/$(shell uname -r)/build M=`pwd` clean