1 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2005 Silicon Graphics, Inc.
7 ccflags-y
+= -I
$(src
) # needed for trace events
8 ccflags-y
+= -I
$(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
/, \
50 xfs_refcount_btree.o \
52 xfs_symlink_remote.o \
58 # xfs_rtbitmap is shared with libxfs
59 xfs-
$(CONFIG_XFS_RT
) += $(addprefix libxfs
/, \
103 # low-level transaction/log code
108 xfs_buf_item_recover.o \
109 xfs_dquot_item_recover.o \
110 xfs_exchmaps_item.o \
115 xfs_inode_item_recover.o \
117 xfs_refcount_item.o \
124 xfs-
$(CONFIG_XFS_QUOTA
) += xfs_dquot.o \
132 # xfs_rtbitmap is shared with libxfs
133 xfs-
$(CONFIG_XFS_RT
) += xfs_rtalloc.o
135 xfs-
$(CONFIG_XFS_POSIX_ACL
) += xfs_acl.o
136 xfs-
$(CONFIG_SYSCTL
) += xfs_sysctl.o
137 xfs-
$(CONFIG_COMPAT
) += xfs_ioctl32.o
138 xfs-
$(CONFIG_EXPORTFS_BLOCK_OPS
) += xfs_pnfs.o
141 ifeq ($(CONFIG_MEMORY_FAILURE
),y
)
142 xfs-
$(CONFIG_FS_DAX
) += xfs_notify_failure.o
145 xfs-
$(CONFIG_XFS_DRAIN_INTENTS
) += xfs_drain.o
146 xfs-
$(CONFIG_XFS_LIVE_HOOKS
) += xfs_hooks.o
147 xfs-
$(CONFIG_XFS_MEMORY_BUFS
) += xfs_buf_mem.o
148 xfs-
$(CONFIG_XFS_BTREE_IN_MEM
) += libxfs
/xfs_btree_mem.o
150 # online scrub/repair
151 ifeq ($(CONFIG_XFS_ONLINE_SCRUB
),y
)
153 # Tracepoints like to blow up, so build that before everything else
155 xfs-y
+= $(addprefix scrub
/, \
186 xfs-
$(CONFIG_XFS_ONLINE_SCRUB_STATS
) += scrub
/stats.o
188 xfs-
$(CONFIG_XFS_RT
) += $(addprefix scrub
/, \
193 xfs-
$(CONFIG_XFS_QUOTA
) += $(addprefix scrub
/, \
200 ifeq ($(CONFIG_XFS_ONLINE_REPAIR
),y
)
201 xfs-y
+= $(addprefix scrub
/, \
210 fscounters_repair.o \
227 xfs-
$(CONFIG_XFS_RT
) += $(addprefix scrub
/, \
232 xfs-
$(CONFIG_XFS_QUOTA
) += $(addprefix scrub
/, \
234 quotacheck_repair.o \