Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 #
0003 # Copyright (c) 2000-2005 Silicon Graphics, Inc.
0004 # All Rights Reserved.
0005 #
0006 
0007 ccflags-y += -I $(srctree)/$(src)               # needed for trace events
0008 ccflags-y += -I $(srctree)/$(src)/libxfs
0009 
0010 obj-$(CONFIG_XFS_FS)            += xfs.o
0011 
0012 # this one should be compiled first, as the tracing macros can easily blow up
0013 xfs-y                           += xfs_trace.o
0014 
0015 # build the libxfs code first
0016 xfs-y                           += $(addprefix libxfs/, \
0017                                    xfs_ag.o \
0018                                    xfs_alloc.o \
0019                                    xfs_alloc_btree.o \
0020                                    xfs_attr.o \
0021                                    xfs_attr_leaf.o \
0022                                    xfs_attr_remote.o \
0023                                    xfs_bit.o \
0024                                    xfs_bmap.o \
0025                                    xfs_bmap_btree.o \
0026                                    xfs_btree.o \
0027                                    xfs_btree_staging.o \
0028                                    xfs_da_btree.o \
0029                                    xfs_defer.o \
0030                                    xfs_dir2.o \
0031                                    xfs_dir2_block.o \
0032                                    xfs_dir2_data.o \
0033                                    xfs_dir2_leaf.o \
0034                                    xfs_dir2_node.o \
0035                                    xfs_dir2_sf.o \
0036                                    xfs_dquot_buf.o \
0037                                    xfs_ialloc.o \
0038                                    xfs_ialloc_btree.o \
0039                                    xfs_iext_tree.o \
0040                                    xfs_inode_fork.o \
0041                                    xfs_inode_buf.o \
0042                                    xfs_log_rlimit.o \
0043                                    xfs_ag_resv.o \
0044                                    xfs_rmap.o \
0045                                    xfs_rmap_btree.o \
0046                                    xfs_refcount.o \
0047                                    xfs_refcount_btree.o \
0048                                    xfs_sb.o \
0049                                    xfs_symlink_remote.o \
0050                                    xfs_trans_inode.o \
0051                                    xfs_trans_resv.o \
0052                                    xfs_types.o \
0053                                    )
0054 # xfs_rtbitmap is shared with libxfs
0055 xfs-$(CONFIG_XFS_RT)            += $(addprefix libxfs/, \
0056                                    xfs_rtbitmap.o \
0057                                    )
0058 
0059 # highlevel code
0060 xfs-y                           += xfs_aops.o \
0061                                    xfs_attr_inactive.o \
0062                                    xfs_attr_list.o \
0063                                    xfs_bmap_util.o \
0064                                    xfs_bio_io.o \
0065                                    xfs_buf.o \
0066                                    xfs_dir2_readdir.o \
0067                                    xfs_discard.o \
0068                                    xfs_error.o \
0069                                    xfs_export.o \
0070                                    xfs_extent_busy.o \
0071                                    xfs_file.o \
0072                                    xfs_filestream.o \
0073                                    xfs_fsmap.o \
0074                                    xfs_fsops.o \
0075                                    xfs_globals.o \
0076                                    xfs_health.o \
0077                                    xfs_icache.o \
0078                                    xfs_ioctl.o \
0079                                    xfs_iomap.o \
0080                                    xfs_iops.o \
0081                                    xfs_inode.o \
0082                                    xfs_itable.o \
0083                                    xfs_iwalk.o \
0084                                    xfs_message.o \
0085                                    xfs_mount.o \
0086                                    xfs_mru_cache.o \
0087                                    xfs_pwork.o \
0088                                    xfs_reflink.o \
0089                                    xfs_stats.o \
0090                                    xfs_super.o \
0091                                    xfs_symlink.o \
0092                                    xfs_sysfs.o \
0093                                    xfs_trans.o \
0094                                    xfs_xattr.o \
0095                                    kmem.o
0096 
0097 # low-level transaction/log code
0098 xfs-y                           += xfs_log.o \
0099                                    xfs_log_cil.o \
0100                                    xfs_bmap_item.o \
0101                                    xfs_buf_item.o \
0102                                    xfs_buf_item_recover.o \
0103                                    xfs_dquot_item_recover.o \
0104                                    xfs_extfree_item.o \
0105                                    xfs_attr_item.o \
0106                                    xfs_icreate_item.o \
0107                                    xfs_inode_item.o \
0108                                    xfs_inode_item_recover.o \
0109                                    xfs_iunlink_item.o \
0110                                    xfs_refcount_item.o \
0111                                    xfs_rmap_item.o \
0112                                    xfs_log_recover.o \
0113                                    xfs_trans_ail.o \
0114                                    xfs_trans_buf.o
0115 
0116 # optional features
0117 xfs-$(CONFIG_XFS_QUOTA)         += xfs_dquot.o \
0118                                    xfs_dquot_item.o \
0119                                    xfs_trans_dquot.o \
0120                                    xfs_qm_syscalls.o \
0121                                    xfs_qm_bhv.o \
0122                                    xfs_qm.o \
0123                                    xfs_quotaops.o
0124 
0125 # xfs_rtbitmap is shared with libxfs
0126 xfs-$(CONFIG_XFS_RT)            += xfs_rtalloc.o
0127 
0128 xfs-$(CONFIG_XFS_POSIX_ACL)     += xfs_acl.o
0129 xfs-$(CONFIG_SYSCTL)            += xfs_sysctl.o
0130 xfs-$(CONFIG_COMPAT)            += xfs_ioctl32.o
0131 xfs-$(CONFIG_EXPORTFS_BLOCK_OPS)        += xfs_pnfs.o
0132 
0133 # notify failure
0134 ifeq ($(CONFIG_MEMORY_FAILURE),y)
0135 xfs-$(CONFIG_FS_DAX)            += xfs_notify_failure.o
0136 endif
0137 
0138 # online scrub/repair
0139 ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y)
0140 
0141 # Tracepoints like to blow up, so build that before everything else
0142 
0143 xfs-y                           += $(addprefix scrub/, \
0144                                    trace.o \
0145                                    agheader.o \
0146                                    alloc.o \
0147                                    attr.o \
0148                                    bmap.o \
0149                                    btree.o \
0150                                    common.o \
0151                                    dabtree.o \
0152                                    dir.o \
0153                                    fscounters.o \
0154                                    health.o \
0155                                    ialloc.o \
0156                                    inode.o \
0157                                    parent.o \
0158                                    refcount.o \
0159                                    rmap.o \
0160                                    scrub.o \
0161                                    symlink.o \
0162                                    )
0163 
0164 xfs-$(CONFIG_XFS_RT)            += scrub/rtbitmap.o
0165 xfs-$(CONFIG_XFS_QUOTA)         += scrub/quota.o
0166 
0167 # online repair
0168 ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y)
0169 xfs-y                           += $(addprefix scrub/, \
0170                                    agheader_repair.o \
0171                                    bitmap.o \
0172                                    repair.o \
0173                                    )
0174 endif
0175 endif