lkml.org 
[lkml]   [2009]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 21/21] ceph: Kconfig, Makefile
Date
Kconfig options and Makefile.

Signed-off-by: Sage Weil <sage@newdream.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


\
 
 \ /
  Last update: 2009-06-20 00:45    [from the cache]
©2003-2011 Jasper Spaans