Commit | Line | Data |
---|---|---|
0b61f8a4 | 1 | # SPDX-License-Identifier: GPL-2.0 |
58b7983d AK |
2 | # |
3 | # Copyright (c) 2000-2005 Silicon Graphics, Inc. | |
4 | # All Rights Reserved. | |
5 | # | |
58b7983d | 6 | |
9cc342f6 MY |
7 | ccflags-y += -I $(srctree)/$(src) # needed for trace events |
8 | ccflags-y += -I $(srctree)/$(src)/libxfs | |
b6bede3b | 9 | |
58b7983d | 10 | obj-$(CONFIG_XFS_FS) += xfs.o |
269cdfaf | 11 | |
c59d87c4 CH |
12 | # this one should be compiled first, as the tracing macros can easily blow up |
13 | xfs-y += xfs_trace.o | |
58b7983d | 14 | |
69116a13 DC |
15 | # build the libxfs code first |
16 | xfs-y += $(addprefix libxfs/, \ | |
b16817b6 | 17 | xfs_ag.o \ |
30f712c9 DC |
18 | xfs_alloc.o \ |
19 | xfs_alloc_btree.o \ | |
20 | xfs_attr.o \ | |
21 | xfs_attr_leaf.o \ | |
22 | xfs_attr_remote.o \ | |
1cfc4a9c | 23 | xfs_bit.o \ |
30f712c9 DC |
24 | xfs_bmap.o \ |
25 | xfs_bmap_btree.o \ | |
26 | xfs_btree.o \ | |
e06536a6 | 27 | xfs_btree_staging.o \ |
30f712c9 | 28 | xfs_da_btree.o \ |
4e0cc29b | 29 | xfs_defer.o \ |
30f712c9 DC |
30 | xfs_dir2.o \ |
31 | xfs_dir2_block.o \ | |
32 | xfs_dir2_data.o \ | |
33 | xfs_dir2_leaf.o \ | |
34 | xfs_dir2_node.o \ | |
35 | xfs_dir2_sf.o \ | |
36 | xfs_dquot_buf.o \ | |
37 | xfs_ialloc.o \ | |
38 | xfs_ialloc_btree.o \ | |
6bdcf26a | 39 | xfs_iext_tree.o \ |
30f712c9 DC |
40 | xfs_inode_fork.o \ |
41 | xfs_inode_buf.o \ | |
42 | xfs_log_rlimit.o \ | |
3fd129b6 | 43 | xfs_ag_resv.o \ |
673930c3 | 44 | xfs_rmap.o \ |
035e00ac | 45 | xfs_rmap_btree.o \ |
bdf28630 | 46 | xfs_refcount.o \ |
1946b91c | 47 | xfs_refcount_btree.o \ |
69116a13 | 48 | xfs_sb.o \ |
30f712c9 | 49 | xfs_symlink_remote.o \ |
3f6d70e8 | 50 | xfs_trans_inode.o \ |
30f712c9 | 51 | xfs_trans_resv.o \ |
86210fbe | 52 | xfs_types.o \ |
30f712c9 DC |
53 | ) |
54 | # xfs_rtbitmap is shared with libxfs | |
55 | xfs-$(CONFIG_XFS_RT) += $(addprefix libxfs/, \ | |
56 | xfs_rtbitmap.o \ | |
69116a13 DC |
57 | ) |
58 | ||
c59d87c4 CH |
59 | # highlevel code |
60 | xfs-y += xfs_aops.o \ | |
fde2227c | 61 | xfs_attr_inactive.o \ |
abec5f2b | 62 | xfs_attr_list.o \ |
68988114 | 63 | xfs_bmap_util.o \ |
6ad5b325 | 64 | xfs_bio_io.o \ |
c59d87c4 | 65 | xfs_buf.o \ |
3cfb9290 | 66 | xfs_dahash_test.o \ |
4a8af273 | 67 | xfs_dir2_readdir.o \ |
c59d87c4 CH |
68 | xfs_discard.o \ |
69 | xfs_error.o \ | |
70 | xfs_export.o \ | |
efc27b52 | 71 | xfs_extent_busy.o \ |
c59d87c4 CH |
72 | xfs_file.o \ |
73 | xfs_filestream.o \ | |
e89c0413 | 74 | xfs_fsmap.o \ |
c59d87c4 | 75 | xfs_fsops.o \ |
c59d87c4 | 76 | xfs_globals.o \ |
6772c1f1 | 77 | xfs_health.o \ |
6d8b79cf | 78 | xfs_icache.o \ |
c59d87c4 CH |
79 | xfs_ioctl.o \ |
80 | xfs_iomap.o \ | |
81 | xfs_iops.o \ | |
30f712c9 | 82 | xfs_inode.o \ |
c59d87c4 | 83 | xfs_itable.o \ |
a211432c | 84 | xfs_iwalk.o \ |
c59d87c4 | 85 | xfs_message.o \ |
ff55068c | 86 | xfs_mount.o \ |
c59d87c4 | 87 | xfs_mru_cache.o \ |
40786717 | 88 | xfs_pwork.o \ |
3993baeb | 89 | xfs_reflink.o \ |
985ef4dc | 90 | xfs_stats.o \ |
19de7351 | 91 | xfs_super.o \ |
1fb7e48d | 92 | xfs_symlink.o \ |
a31b1d3d | 93 | xfs_sysfs.o \ |
7fd36c44 | 94 | xfs_trans.o \ |
19de7351 | 95 | xfs_xattr.o \ |
d905fdaa | 96 | kmem.o |
58b7983d | 97 | |
c59d87c4 CH |
98 | # low-level transaction/log code |
99 | xfs-y += xfs_log.o \ | |
100 | xfs_log_cil.o \ | |
6413a014 | 101 | xfs_bmap_item.o \ |
c59d87c4 | 102 | xfs_buf_item.o \ |
86ffa471 DW |
103 | xfs_buf_item_recover.o \ |
104 | xfs_dquot_item_recover.o \ | |
c59d87c4 | 105 | xfs_extfree_item.o \ |
fd920008 | 106 | xfs_attr_item.o \ |
30f712c9 | 107 | xfs_icreate_item.o \ |
c59d87c4 | 108 | xfs_inode_item.o \ |
86ffa471 | 109 | xfs_inode_item_recover.o \ |
784eb7d8 | 110 | xfs_iunlink_item.o \ |
baf4bcac | 111 | xfs_refcount_item.o \ |
5880f2d7 | 112 | xfs_rmap_item.o \ |
30f712c9 | 113 | xfs_log_recover.o \ |
58b7983d | 114 | xfs_trans_ail.o \ |
3f6d70e8 | 115 | xfs_trans_buf.o |
58b7983d | 116 | |
c59d87c4 CH |
117 | # optional features |
118 | xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \ | |
119 | xfs_dquot_item.o \ | |
120 | xfs_trans_dquot.o \ | |
121 | xfs_qm_syscalls.o \ | |
122 | xfs_qm_bhv.o \ | |
123 | xfs_qm.o \ | |
124 | xfs_quotaops.o | |
c963c619 DC |
125 | |
126 | # xfs_rtbitmap is shared with libxfs | |
30f712c9 | 127 | xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o |
c963c619 | 128 | |
c59d87c4 | 129 | xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o |
c59d87c4 CH |
130 | xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o |
131 | xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o | |
15d66ac2 | 132 | xfs-$(CONFIG_EXPORTFS_BLOCK_OPS) += xfs_pnfs.o |
36fd6e86 | 133 | |
6f643c57 SR |
134 | # notify failure |
135 | ifeq ($(CONFIG_MEMORY_FAILURE),y) | |
136 | xfs-$(CONFIG_FS_DAX) += xfs_notify_failure.o | |
137 | endif | |
138 | ||
d5c88131 DW |
139 | xfs-$(CONFIG_XFS_DRAIN_INTENTS) += xfs_drain.o |
140 | ||
36fd6e86 DW |
141 | # online scrub/repair |
142 | ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y) | |
143 | ||
144 | # Tracepoints like to blow up, so build that before everything else | |
145 | ||
146 | xfs-y += $(addprefix scrub/, \ | |
147 | trace.o \ | |
21fb4cb1 | 148 | agheader.o \ |
efa7a99c | 149 | alloc.o \ |
eec0482e | 150 | attr.o \ |
fed050f3 | 151 | bitmap.o \ |
99d9d8d0 | 152 | bmap.o \ |
537964bc | 153 | btree.o \ |
dcb660f9 | 154 | common.o \ |
7c4a07a4 | 155 | dabtree.o \ |
a5c46e5e | 156 | dir.o \ |
75efa57d | 157 | fscounters.o \ |
4860a05d | 158 | health.o \ |
3daa6641 | 159 | ialloc.o \ |
80e4e126 | 160 | inode.o \ |
0f28b257 | 161 | parent.o \ |
4c233b5c | 162 | readdir.o \ |
edc09b52 | 163 | refcount.o \ |
c7e693d9 | 164 | rmap.o \ |
36fd6e86 | 165 | scrub.o \ |
2a721dbb | 166 | symlink.o \ |
36fd6e86 | 167 | ) |
29b0767b DW |
168 | |
169 | xfs-$(CONFIG_XFS_RT) += scrub/rtbitmap.o | |
c2fc338c | 170 | xfs-$(CONFIG_XFS_QUOTA) += scrub/quota.o |
84d42ea6 DW |
171 | |
172 | # online repair | |
173 | ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y) | |
174 | xfs-y += $(addprefix scrub/, \ | |
d25522f1 | 175 | agheader_repair.o \ |
84d42ea6 DW |
176 | repair.o \ |
177 | ) | |
178 | endif | |
36fd6e86 | 179 | endif |