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 ccflags-
$(CONFIG_XFS_DEBUG
) += -g
12 obj-
$(CONFIG_XFS_FS
) += xfs.o
14 # this one should be compiled first, as the tracing macros can easily blow up
17 # build the libxfs code first
18 xfs-y
+= $(addprefix libxfs
/, \
49 xfs_refcount_btree.o \
51 xfs_symlink_remote.o \
55 # xfs_rtbitmap is shared with libxfs
56 xfs-
$(CONFIG_XFS_RT
) += $(addprefix libxfs
/, \
94 # low-level transaction/log code
102 xfs_refcount_item.o \
108 xfs_trans_extfree.o \
110 xfs_trans_refcount.o \
114 xfs-
$(CONFIG_XFS_QUOTA
) += xfs_dquot.o \
122 # xfs_rtbitmap is shared with libxfs
123 xfs-
$(CONFIG_XFS_RT
) += xfs_rtalloc.o
125 xfs-
$(CONFIG_XFS_POSIX_ACL
) += xfs_acl.o
126 xfs-
$(CONFIG_SYSCTL
) += xfs_sysctl.o
127 xfs-
$(CONFIG_COMPAT
) += xfs_ioctl32.o
128 xfs-
$(CONFIG_EXPORTFS_BLOCK_OPS
) += xfs_pnfs.o
130 # online scrub/repair
131 ifeq ($(CONFIG_XFS_ONLINE_SCRUB
),y
)
133 # Tracepoints like to blow up, so build that before everything else
135 xfs-y
+= $(addprefix scrub
/, \
154 xfs-
$(CONFIG_XFS_RT
) += scrub
/rtbitmap.o
155 xfs-
$(CONFIG_XFS_QUOTA
) += scrub
/quota.o
158 ifeq ($(CONFIG_XFS_ONLINE_REPAIR
),y
)
159 xfs-y
+= $(addprefix scrub
/, \