Makefile 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Copyright (c) 2000-2005 Silicon Graphics, Inc.
  4. # All Rights Reserved.
  5. #
  6. ccflags-y += -I $(srctree)/$(src) # needed for trace events
  7. ccflags-y += -I $(srctree)/$(src)/libxfs
  8. obj-$(CONFIG_XFS_FS) += xfs.o
  9. # this one should be compiled first, as the tracing macros can easily blow up
  10. xfs-y += xfs_trace.o
  11. # build the libxfs code first
  12. xfs-y += $(addprefix libxfs/, \
  13. xfs_ag.o \
  14. xfs_alloc.o \
  15. xfs_alloc_btree.o \
  16. xfs_attr.o \
  17. xfs_attr_leaf.o \
  18. xfs_attr_remote.o \
  19. xfs_bit.o \
  20. xfs_bmap.o \
  21. xfs_bmap_btree.o \
  22. xfs_btree.o \
  23. xfs_btree_staging.o \
  24. xfs_da_btree.o \
  25. xfs_defer.o \
  26. xfs_dir2.o \
  27. xfs_dir2_block.o \
  28. xfs_dir2_data.o \
  29. xfs_dir2_leaf.o \
  30. xfs_dir2_node.o \
  31. xfs_dir2_sf.o \
  32. xfs_dquot_buf.o \
  33. xfs_ialloc.o \
  34. xfs_ialloc_btree.o \
  35. xfs_iext_tree.o \
  36. xfs_inode_fork.o \
  37. xfs_inode_buf.o \
  38. xfs_log_rlimit.o \
  39. xfs_ag_resv.o \
  40. xfs_rmap.o \
  41. xfs_rmap_btree.o \
  42. xfs_refcount.o \
  43. xfs_refcount_btree.o \
  44. xfs_sb.o \
  45. xfs_symlink_remote.o \
  46. xfs_trans_inode.o \
  47. xfs_trans_resv.o \
  48. xfs_types.o \
  49. )
  50. # xfs_rtbitmap is shared with libxfs
  51. xfs-$(CONFIG_XFS_RT) += $(addprefix libxfs/, \
  52. xfs_rtbitmap.o \
  53. )
  54. # highlevel code
  55. xfs-y += xfs_aops.o \
  56. xfs_attr_inactive.o \
  57. xfs_attr_list.o \
  58. xfs_bmap_util.o \
  59. xfs_bio_io.o \
  60. xfs_buf.o \
  61. xfs_dir2_readdir.o \
  62. xfs_discard.o \
  63. xfs_error.o \
  64. xfs_export.o \
  65. xfs_extent_busy.o \
  66. xfs_file.o \
  67. xfs_filestream.o \
  68. xfs_fsmap.o \
  69. xfs_fsops.o \
  70. xfs_globals.o \
  71. xfs_health.o \
  72. xfs_icache.o \
  73. xfs_ioctl.o \
  74. xfs_iomap.o \
  75. xfs_iops.o \
  76. xfs_inode.o \
  77. xfs_itable.o \
  78. xfs_iwalk.o \
  79. xfs_message.o \
  80. xfs_mount.o \
  81. xfs_mru_cache.o \
  82. xfs_pwork.o \
  83. xfs_reflink.o \
  84. xfs_stats.o \
  85. xfs_super.o \
  86. xfs_symlink.o \
  87. xfs_sysfs.o \
  88. xfs_trans.o \
  89. xfs_xattr.o \
  90. kmem.o
  91. # low-level transaction/log code
  92. xfs-y += xfs_log.o \
  93. xfs_log_cil.o \
  94. xfs_bmap_item.o \
  95. xfs_buf_item.o \
  96. xfs_buf_item_recover.o \
  97. xfs_dquot_item_recover.o \
  98. xfs_extfree_item.o \
  99. xfs_icreate_item.o \
  100. xfs_inode_item.o \
  101. xfs_inode_item_recover.o \
  102. xfs_refcount_item.o \
  103. xfs_rmap_item.o \
  104. xfs_log_recover.o \
  105. xfs_trans_ail.o \
  106. xfs_trans_buf.o
  107. # optional features
  108. xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \
  109. xfs_dquot_item.o \
  110. xfs_trans_dquot.o \
  111. xfs_qm_syscalls.o \
  112. xfs_qm_bhv.o \
  113. xfs_qm.o \
  114. xfs_quotaops.o
  115. # xfs_rtbitmap is shared with libxfs
  116. xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
  117. xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
  118. xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o
  119. xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o
  120. xfs-$(CONFIG_EXPORTFS_BLOCK_OPS) += xfs_pnfs.o
  121. # online scrub/repair
  122. ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y)
  123. # Tracepoints like to blow up, so build that before everything else
  124. xfs-y += $(addprefix scrub/, \
  125. trace.o \
  126. agheader.o \
  127. alloc.o \
  128. attr.o \
  129. bmap.o \
  130. btree.o \
  131. common.o \
  132. dabtree.o \
  133. dir.o \
  134. fscounters.o \
  135. health.o \
  136. ialloc.o \
  137. inode.o \
  138. parent.o \
  139. refcount.o \
  140. rmap.o \
  141. scrub.o \
  142. symlink.o \
  143. )
  144. xfs-$(CONFIG_XFS_RT) += scrub/rtbitmap.o
  145. xfs-$(CONFIG_XFS_QUOTA) += scrub/quota.o
  146. # online repair
  147. ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y)
  148. xfs-y += $(addprefix scrub/, \
  149. agheader_repair.o \
  150. bitmap.o \
  151. repair.o \
  152. )
  153. endif
  154. endif