Skip to content

Commit

Permalink
Btrfs: Fix makefile for builing btrfs static
Browse files Browse the repository at this point in the history
This fixes the btrfs makefile for building in the tree and out of the tree
both as a module and static.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Sage Weil authored and Chris Mason committed Oct 9, 2008
1 parent 5b84e8d commit 61f8c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ifneq ($(KERNELRELEASE),)
# 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 \
file-item.o inode-item.o inode-map.o disk-io.o \
transaction.o inode.o file.o tree-defrag.o \
Expand All @@ -14,7 +14,7 @@ else

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

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

0 comments on commit 61f8c86

Please sign in to comment.