Btrfs: Fix makefile for builing btrfs static
authorSage Weil <sage@newdream.net>
Thu, 9 Oct 2008 15:52:35 +0000 (11:52 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 9 Oct 2008 15:52:35 +0000 (11:52 -0400)
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>
fs/btrfs/Makefile

index 48b7909ca8d15bca9ba9a9e941d08a639d754717..7125716e142b4a75aa411b8b758c632877065cec 100644 (file)
@@ -1,7 +1,7 @@
 ifneq ($(KERNELRELEASE),)
 # kbuild part of makefile
 
-obj- := 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 \
@@ -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
This page took 0.02676 seconds and 5 git commands to generate.