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
/, \
53 xfs_refcount_btree.o \
55 xfs_symlink_remote.o \
61 # xfs_rtbitmap is shared with libxfs
62 xfs-
$(CONFIG_XFS_RT
) += $(addprefix libxfs
/, \
107 # low-level transaction/log code
112 xfs_buf_item_recover.o \
113 xfs_dquot_item_recover.o \
114 xfs_exchmaps_item.o \
119 xfs_inode_item_recover.o \
121 xfs_refcount_item.o \
128 xfs-
$(CONFIG_XFS_QUOTA
) += xfs_dquot.o \
136 # xfs_rtbitmap is shared with libxfs
137 xfs-
$(CONFIG_XFS_RT
) += xfs_rtalloc.o
139 xfs-
$(CONFIG_XFS_POSIX_ACL
) += xfs_acl.o
140 xfs-
$(CONFIG_SYSCTL
) += xfs_sysctl.o
141 xfs-
$(CONFIG_COMPAT
) += xfs_ioctl32.o
142 xfs-
$(CONFIG_EXPORTFS_BLOCK_OPS
) += xfs_pnfs.o
145 ifeq ($(CONFIG_MEMORY_FAILURE
),y
)
146 xfs-
$(CONFIG_FS_DAX
) += xfs_notify_failure.o
149 xfs-
$(CONFIG_XFS_DRAIN_INTENTS
) += xfs_drain.o
150 xfs-
$(CONFIG_XFS_LIVE_HOOKS
) += xfs_hooks.o
151 xfs-
$(CONFIG_XFS_MEMORY_BUFS
) += xfs_buf_mem.o
152 xfs-
$(CONFIG_XFS_BTREE_IN_MEM
) += libxfs
/xfs_btree_mem.o
154 # online scrub/repair
155 ifeq ($(CONFIG_XFS_ONLINE_SCRUB
),y
)
157 # Tracepoints like to blow up, so build that before everything else
159 xfs-y
+= $(addprefix scrub
/, \
191 xfs-
$(CONFIG_XFS_ONLINE_SCRUB_STATS
) += scrub
/stats.o
193 xfs-
$(CONFIG_XFS_RT
) += $(addprefix scrub
/, \
199 xfs-
$(CONFIG_XFS_QUOTA
) += $(addprefix scrub
/, \
206 ifeq ($(CONFIG_XFS_ONLINE_REPAIR
),y
)
207 xfs-y
+= $(addprefix scrub
/, \
216 fscounters_repair.o \
233 xfs-
$(CONFIG_XFS_RT
) += $(addprefix scrub
/, \
238 xfs-
$(CONFIG_XFS_QUOTA
) += $(addprefix scrub
/, \
240 quotacheck_repair.o \