| 1 |
|
| 2 |
|
| 3 |
|
| 4 | subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
|
| 5 | subdir-ccflags-y += -Wmissing-declarations
|
| 6 | subdir-ccflags-y += -Wmissing-format-attribute
|
| 7 | subdir-ccflags-y += -Wmissing-prototypes
|
| 8 | subdir-ccflags-y += -Wold-style-definition
|
| 9 | subdir-ccflags-y += -Wmissing-include-dirs
|
| 10 | condflags := \
|
| 11 | $(call cc-option, -Wunused-but-set-variable) \
|
| 12 | $(call cc-option, -Wunused-const-variable) \
|
| 13 | $(call cc-option, -Wpacked-not-aligned) \
|
| 14 | $(call cc-option, -Wstringop-truncation) \
|
| 15 | $(call cc-option, -Wmaybe-uninitialized)
|
| 16 | subdir-ccflags-y += $(condflags)
|
| 17 |
|
| 18 | subdir-ccflags-y += -Wno-missing-field-initializers
|
| 19 | subdir-ccflags-y += -Wno-sign-compare
|
| 20 | subdir-ccflags-y += -Wno-shift-negative-value
|
| 21 |
|
| 22 | obj-$(CONFIG_BTRFS_FS) := btrfs.o
|
| 23 |
|
| 24 | btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
|
| 25 | file-item.o inode-item.o disk-io.o \
|
| 26 | transaction.o inode.o file.o defrag.o \
|
| 27 | extent_map.o sysfs.o accessors.o xattr.o ordered-data.o \
|
| 28 | extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \
|
| 29 | export.o tree-log.o free-space-cache.o zlib.o lzo.o zstd.o \
|
| 30 | compression.o delayed-ref.o relocation.o delayed-inode.o scrub.o \
|
| 31 | backref.o ulist.o qgroup.o send.o dev-replace.o raid56.o \
|
| 32 | uuid-tree.o props.o free-space-tree.o tree-checker.o space-info.o \
|
| 33 | block-rsv.o delalloc-space.o block-group.o discard.o reflink.o \
|
| 34 | subpage.o tree-mod-log.o extent-io-tree.o fs.o messages.o bio.o \
|
| 35 | lru_cache.o raid-stripe-tree.o fiemap.o direct-io.o
|
| 36 |
|
| 37 | btrfs-$(CONFIG_BTRFS_FS_POSIX_ACL) += acl.o
|
| 38 | btrfs-$(CONFIG_BTRFS_DEBUG) += ref-verify.o
|
| 39 | btrfs-$(CONFIG_BLK_DEV_ZONED) += zoned.o
|
| 40 | btrfs-$(CONFIG_FS_VERITY) += verity.o
|
| 41 |
|
| 42 | btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \
|
| 43 | tests/extent-buffer-tests.o tests/btrfs-tests.o \
|
| 44 | tests/extent-io-tests.o tests/inode-tests.o tests/qgroup-tests.o \
|
| 45 | tests/free-space-tree-tests.o tests/extent-map-tests.o \
|
| 46 | tests/raid-stripe-tree-tests.o tests/delayed-refs-tests.o \
|
| 47 | tests/chunk-allocation-tests.o
|
| 48 |
|
| 49 | ifeq ($(CONFIG_BLK_DEV_ZONED),y)
|
| 50 | btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/zoned-tests.o
|
| 51 | endif
|