Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61f8c86e authored by Sage Weil's avatar Sage Weil Committed by Chris Mason
Browse files

Btrfs: Fix makefile for builing btrfs static



This fixes the btrfs makefile for building in the tree and out of the tree
both as a module and static.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 5b84e8d6
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
ifneq ($(KERNELRELEASE),)
ifneq ($(KERNELRELEASE),)
# kbuild part of makefile
# kbuild part of makefile


obj-m  := btrfs.o
obj-$(CONFIG_BTRFS_FS) := btrfs.o
btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
	   file-item.o inode-item.o inode-map.o disk-io.o \
	   file-item.o inode-item.o inode-map.o disk-io.o \
	   transaction.o inode.o file.o tree-defrag.o \
	   transaction.o inode.o file.o tree-defrag.o \
@@ -14,7 +14,7 @@ else


KERNELDIR := /lib/modules/`uname -r`/build
KERNELDIR := /lib/modules/`uname -r`/build
all:
all:
	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
	$(MAKE) -C $(KERNELDIR) M=`pwd` CONFIG_BTRFS_FS=m modules


modules_install:
modules_install:
	$(MAKE) -C $(KERNELDIR) M=`pwd` modules_install
	$(MAKE) -C $(KERNELDIR) M=`pwd` modules_install