0001
0002
0003
0004 subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
0005 subdir-ccflags-y += -Wmissing-declarations
0006 subdir-ccflags-y += -Wmissing-format-attribute
0007 subdir-ccflags-y += -Wmissing-prototypes
0008 subdir-ccflags-y += -Wold-style-definition
0009 subdir-ccflags-y += -Wmissing-include-dirs
0010 condflags := \
0011 $(call cc-option, -Wunused-but-set-variable) \
0012 $(call cc-option, -Wunused-const-variable) \
0013 $(call cc-option, -Wpacked-not-aligned) \
0014 $(call cc-option, -Wstringop-truncation)
0015 subdir-ccflags-y += $(condflags)
0016
0017 subdir-ccflags-y += -Wno-missing-field-initializers
0018 subdir-ccflags-y += -Wno-sign-compare
0019 subdir-ccflags-y += -Wno-type-limits
0020 subdir-ccflags-y += -Wno-shift-negative-value
0021
0022 obj-$(CONFIG_BTRFS_FS) := btrfs.o
0023
0024 btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
0025 file-item.o inode-item.o disk-io.o \
0026 transaction.o inode.o file.o tree-defrag.o \
0027 extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
0028 extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \
0029 export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \
0030 compression.o delayed-ref.o relocation.o delayed-inode.o scrub.o \
0031 backref.o ulist.o qgroup.o send.o dev-replace.o raid56.o \
0032 uuid-tree.o props.o free-space-tree.o tree-checker.o space-info.o \
0033 block-rsv.o delalloc-space.o block-group.o discard.o reflink.o \
0034 subpage.o tree-mod-log.o
0035
0036 btrfs-$(CONFIG_BTRFS_FS_POSIX_ACL) += acl.o
0037 btrfs-$(CONFIG_BTRFS_FS_CHECK_INTEGRITY) += check-integrity.o
0038 btrfs-$(CONFIG_BTRFS_FS_REF_VERIFY) += ref-verify.o
0039 btrfs-$(CONFIG_BLK_DEV_ZONED) += zoned.o
0040 btrfs-$(CONFIG_FS_VERITY) += verity.o
0041
0042 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \
0043 tests/extent-buffer-tests.o tests/btrfs-tests.o \
0044 tests/extent-io-tests.o tests/inode-tests.o tests/qgroup-tests.o \
0045 tests/free-space-tree-tests.o tests/extent-map-tests.o