[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1245450702-31343-22-git-send-email-sage@newdream.net>
Date: Fri, 19 Jun 2009 15:31:42 -0700
From: Sage Weil <sage@...dream.net>
To: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
greg@...ah.com
Cc: Sage Weil <sage@...dream.net>
Subject: [PATCH 21/21] ceph: Kconfig, Makefile
Kconfig options and Makefile.
Signed-off-by: Sage Weil <sage@...dream.net>
---
fs/staging/Kconfig | 2 ++
fs/staging/Makefile | 1 +
fs/staging/ceph/Kconfig | 14 ++++++++++++++
fs/staging/ceph/Makefile | 35 +++++++++++++++++++++++++++++++++++
4 files changed, 52 insertions(+), 0 deletions(-)
create mode 100644 fs/staging/ceph/Kconfig
create mode 100644 fs/staging/ceph/Makefile
diff --git a/fs/staging/Kconfig b/fs/staging/Kconfig
index 605d8ae..bed45e4 100644
--- a/fs/staging/Kconfig
+++ b/fs/staging/Kconfig
@@ -42,5 +42,7 @@ config FSSTAGING_EXCLUDE_BUILD
if !FSSTAGING_EXCLUDE_BUILD
+source "fs/staging/ceph/Kconfig"
+
endif # !FSSTAGING_EXCLUDE_BUILD
endif # FSSTAGING
diff --git a/fs/staging/Makefile b/fs/staging/Makefile
index 7ddeb16..38c9d39 100644
--- a/fs/staging/Makefile
+++ b/fs/staging/Makefile
@@ -3,3 +3,4 @@
# fix for build system bug...
obj-$(CONFIG_FSSTAGING) += fsstaging.o
+obj-$(CONFIG_CEPH_FS) += ceph/
\ No newline at end of file
diff --git a/fs/staging/ceph/Kconfig b/fs/staging/ceph/Kconfig
new file mode 100644
index 0000000..32090d3
--- /dev/null
+++ b/fs/staging/ceph/Kconfig
@@ -0,0 +1,14 @@
+config CEPH_FS
+ tristate "Ceph distributed file system (EXPERIMENTAL)"
+ depends on INET && EXPERIMENTAL
+ select LIBCRC32C
+ help
+ Choose Y or M here to include support for mounting the
+ experimental Ceph distributed file system. Ceph is an extremely
+ scalable file system designed to provide high performance,
+ reliable access to petabytes of storage.
+
+ More information at http://ceph.newdream.net/.
+
+ If unsure, say N.
+
diff --git a/fs/staging/ceph/Makefile b/fs/staging/ceph/Makefile
new file mode 100644
index 0000000..ba1e6a5
--- /dev/null
+++ b/fs/staging/ceph/Makefile
@@ -0,0 +1,35 @@
+#
+# Makefile for CEPH filesystem.
+#
+
+ifneq ($(KERNELRELEASE),)
+
+obj-$(CONFIG_CEPH_FS) += ceph.o
+
+ceph-objs := super.o inode.o dir.o file.o addr.o ioctl.o \
+ export.o caps.o snap.o \
+ messenger.o \
+ mds_client.o mdsmap.o \
+ mon_client.o \
+ osd_client.o osdmap.o crush/crush.o crush/mapper.o \
+ debugfs.o
+
+else
+#Otherwise we were called directly from the command
+# line; invoke the kernel build system.
+
+KERNELDIR ?= /lib/modules/$(shell uname -r)/build
+PWD := $(shell pwd)
+
+default: all
+
+all:
+ $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_FS=m modules
+
+modules_install:
+ $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_FS=m modules_install
+
+clean:
+ $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
+
+endif
--
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists