1 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2005 Silicon Graphics, Inc.
7 ccflags-y += -I $(srctree)/$(src) # needed for trace events
8 ccflags-y += -I $(srctree)/$(src)/libxfs
10 obj-$(CONFIG_XFS_FS) += xfs.o
12 # this one should be compiled first, as the tracing macros can easily blow up
15 # build the libxfs code first
16 xfs-y += $(addprefix libxfs/, \
47 xfs_refcount_btree.o \
49 xfs_symlink_remote.o \
54 # xfs_rtbitmap is shared with libxfs
55 xfs-$(CONFIG_XFS_RT) += $(addprefix libxfs/, \
98 # low-level transaction/log code
103 xfs_buf_item_recover.o \
104 xfs_dquot_item_recover.o \
109 xfs_inode_item_recover.o \
111 xfs_refcount_item.o \
118 xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \
126 # xfs_rtbitmap is shared with libxfs
127 xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
129 xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
130 xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o
131 xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o
132 xfs-$(CONFIG_EXPORTFS_BLOCK_OPS) += xfs_pnfs.o
135 ifeq ($(CONFIG_MEMORY_FAILURE),y)
136 xfs-$(CONFIG_FS_DAX) += xfs_notify_failure.o
139 xfs-$(CONFIG_XFS_DRAIN_INTENTS) += xfs_drain.o
141 # online scrub/repair
142 ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y)
144 # Tracepoints like to blow up, so build that before everything else
146 xfs-y += $(addprefix scrub/, \
171 xfs-$(CONFIG_XFS_ONLINE_SCRUB_STATS) += scrub/stats.o
173 xfs-$(CONFIG_XFS_RT) += $(addprefix scrub/, \
178 xfs-$(CONFIG_XFS_QUOTA) += scrub/quota.o
181 ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y)
182 xfs-y += $(addprefix scrub/, \