Makefile 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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_attr_item.o \
  100. xfs_icreate_item.o \
  101. xfs_inode_item.o \
  102. xfs_inode_item_recover.o \
  103. xfs_iunlink_item.o \
  104. xfs_refcount_item.o \
  105. xfs_rmap_item.o \
  106. xfs_log_recover.o \
  107. xfs_trans_ail.o \
  108. xfs_trans_buf.o
  109. # optional features
  110. xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \
  111. xfs_dquot_item.o \
  112. xfs_trans_dquot.o \
  113. xfs_qm_syscalls.o \
  114. xfs_qm_bhv.o \
  115. xfs_qm.o \
  116. xfs_quotaops.o
  117. # xfs_rtbitmap is shared with libxfs
  118. xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
  119. xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
  120. xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o
  121. xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o
  122. xfs-$(CONFIG_EXPORTFS_BLOCK_OPS) += xfs_pnfs.o
  123. # notify failure
  124. ifeq ($(CONFIG_MEMORY_FAILURE),y)
  125. xfs-$(CONFIG_FS_DAX) += xfs_notify_failure.o
  126. endif
  127. # online scrub/repair
  128. ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y)
  129. # Tracepoints like to blow up, so build that before everything else
  130. xfs-y += $(addprefix scrub/, \
  131. trace.o \
  132. agheader.o \
  133. alloc.o \
  134. attr.o \
  135. bmap.o \
  136. btree.o \
  137. common.o \
  138. dabtree.o \
  139. dir.o \
  140. fscounters.o \
  141. health.o \
  142. ialloc.o \
  143. inode.o \
  144. parent.o \
  145. refcount.o \
  146. rmap.o \
  147. scrub.o \
  148. symlink.o \
  149. )
  150. xfs-$(CONFIG_XFS_RT) += scrub/rtbitmap.o
  151. xfs-$(CONFIG_XFS_QUOTA) += scrub/quota.o
  152. # online repair
  153. ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y)
  154. xfs-y += $(addprefix scrub/, \
  155. agheader_repair.o \
  156. bitmap.o \
  157. repair.o \
  158. )
  159. endif
  160. endif