]> granicus.if.org Git - spl/commitdiff
OK, everything builds now. My initial intent was to place all of
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Wed, 27 Feb 2008 20:52:44 +0000 (20:52 +0000)
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Wed, 27 Feb 2008 20:52:44 +0000 (20:52 +0000)
the directories at the top level but that proved troublesome.  The
kernel buildsystem and autoconf were conflicting too much.  To
resolve the issue I moved the kernel bits in to a modules directory
which can then only use the kernel build system.  We just pass
along the likely make targets to the kernel build system.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@11 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

21 files changed:
Makefile.am
cmd/Makefile.am
configure.ac
modules/Makefile.in [new file with mode: 0644]
modules/spl/Makefile.in [moved from spl/Makefile.in with 88% similarity]
modules/spl/linux-generic.c [moved from spl/linux-generic.c with 100% similarity]
modules/spl/linux-kmem.c [moved from spl/linux-kmem.c with 100% similarity]
modules/spl/linux-rwlock.c [moved from spl/linux-rwlock.c with 100% similarity]
modules/spl/linux-taskq.c [moved from spl/linux-taskq.c with 100% similarity]
modules/spl/linux-thread.c [moved from spl/linux-thread.c with 100% similarity]
modules/splat/Makefile.in [moved from splat/Makefile.in with 91% similarity]
modules/splat/splat-condvar.c [moved from splat/splat-condvar.c with 100% similarity]
modules/splat/splat-ctl.c [moved from splat/splat-ctl.c with 100% similarity]
modules/splat/splat-kmem.c [moved from splat/splat-kmem.c with 100% similarity]
modules/splat/splat-mutex.c [moved from splat/splat-mutex.c with 100% similarity]
modules/splat/splat-random.c [moved from splat/splat-random.c with 100% similarity]
modules/splat/splat-rwlock.c [moved from splat/splat-rwlock.c with 100% similarity]
modules/splat/splat-taskq.c [moved from splat/splat-taskq.c with 100% similarity]
modules/splat/splat-thread.c [moved from splat/splat-thread.c with 100% similarity]
modules/splat/splat-time.c [moved from splat/splat-time.c with 100% similarity]
src/Makefile.am [deleted file]

index 7abb6ee39b78e76e06a1c6fdefba983cbccaa867..1d219cd85a7c07880e12c06a452f40c0d6059633 100644 (file)
@@ -1,9 +1,10 @@
 AUTOMAKE_OPTIONS = foreign dist-zip
 
-SUBDIRS = src include scripts
+SUBDIRS = lib cmd modules include scripts
 CONFIG_CLEAN_FILES =  aclocal.m4 config.guess config.sub
 CONFIG_CLEAN_FILES += depcomp install-sh missing mkinstalldirs
 EXTRA_DIST = autogen.sh
 
 rpms: dist Makefile
        rpmbuild -ta $(distdir).tar.gz
+
index ae3961a9778e4535d9e0b07ffda3560f34e5eaf7..f211db18f2eb058c7a1d059eb9296738f7cc9201 100644 (file)
@@ -2,4 +2,4 @@ AM_CFLAGS = -g -O2 -W -Wall -Wstrict-prototypes -Wshadow
 INCLUDES = -I$(top_srcdir)/include
 sbin_PROGRAMS = splat
 splat_SOURCES = splat.c
-splat_LDFLAGS = $(top_builddir)/src/lib/libcommon.la
+splat_LDFLAGS = $(top_builddir)/lib/libcommon.la
index 215b5091c1796e519567db1a60152493e522f36a..3992520ac806b53aa6c55c34f5d9503ea0609e01 100644 (file)
@@ -109,11 +109,11 @@ AC_SUBST(KERNELCPPFLAGS)
 AC_SUBST(KERNELCFLAGS)
 
 AC_CONFIG_FILES([ Makefile
-                  src/Makefile
-                  src/lib/Makefile
-                  src/cmd/Makefile
-                  src/spl/Makefile
-                  src/splat/Makefile
+                  lib/Makefile
+                  cmd/Makefile
+                  modules/Makefile
+                  modules/spl/Makefile
+                  modules/splat/Makefile
                   include/Makefile
                   scripts/Makefile
                   scripts/spl.spec
diff --git a/modules/Makefile.in b/modules/Makefile.in
new file mode 100644 (file)
index 0000000..f1cb0ca
--- /dev/null
@@ -0,0 +1,12 @@
+subdir-m += spl
+subdir-m += splat
+
+all:
+       $(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules
+
+install uninstall clean distclean maintainer-clean distdir:
+       $(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
+
+
+
+
similarity index 88%
rename from spl/Makefile.in
rename to modules/spl/Makefile.in
index 82b45a287ab5005cc80bf7d92c976d4730a3c5fc..134d88227ff2ef0ef156259b54267eb42df0d092 100644 (file)
@@ -13,13 +13,12 @@ spl-objs += linux-kmem.o
 spl-objs += linux-thread.o
 spl-objs += linux-taskq.o
 spl-objs += linux-rwlock.o
+spl-objs += linux-generic.o
 
 splmodule := spl.ko
 splmoduledir := @kmoduledir@/kernel/lib/
 
-all: all-spec
-
-install: all
+install:
        mkdir -p $(DESTDIR)$(splmoduledir)
        $(INSTALL) -m 644 $(splmodule) $(DESTDIR)$(splmoduledir)/$(splmodule)
        -/sbin/depmod -a
@@ -39,6 +38,3 @@ maintainer-clean: distclean
 
 distdir: $(DISTFILES)
        cp -p $(DISTFILES) $(distdir)
-
-all-spec:
-       $(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules
similarity index 100%
rename from spl/linux-kmem.c
rename to modules/spl/linux-kmem.c
similarity index 100%
rename from spl/linux-taskq.c
rename to modules/spl/linux-taskq.c
similarity index 91%
rename from splat/Makefile.in
rename to modules/splat/Makefile.in
index ebc0fb6cf5eafbb3b24912f6459368d9210797b0..54155c8de23d5483b7b0c62d3d041cbb2282c81c 100644 (file)
@@ -23,9 +23,7 @@ splat-objs += splat-time.o
 splatmodule := splat.ko
 splatmoduledir := @kmoduledir@/kernel/lib/
 
-all: all-spec
-
-install: all
+install:
        mkdir -p $(DESTDIR)$(splatmoduledir)
        $(INSTALL) -m 644 $(splatmodule) $(DESTDIR)$(splatmoduledir)/$(splatmodule)
        -/sbin/depmod -a
@@ -45,6 +43,3 @@ maintainer-clean: distclean
 
 distdir: $(DISTFILES)
        cp -p $(DISTFILES) $(distdir)
-
-all-spec:
-       $(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules
similarity index 100%
rename from splat/splat-ctl.c
rename to modules/splat/splat-ctl.c
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644 (file)
index 51013b8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS = lib cmd spl splat