OK, everything builds now. My initial intent was to place all of
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
This commit is contained in:
parent
1735fa73f4
commit
a0aadf5666
|
@ -1,9 +1,10 @@
|
||||||
AUTOMAKE_OPTIONS = foreign dist-zip
|
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 = aclocal.m4 config.guess config.sub
|
||||||
CONFIG_CLEAN_FILES += depcomp install-sh missing mkinstalldirs
|
CONFIG_CLEAN_FILES += depcomp install-sh missing mkinstalldirs
|
||||||
EXTRA_DIST = autogen.sh
|
EXTRA_DIST = autogen.sh
|
||||||
|
|
||||||
rpms: dist Makefile
|
rpms: dist Makefile
|
||||||
rpmbuild -ta $(distdir).tar.gz
|
rpmbuild -ta $(distdir).tar.gz
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,4 @@ AM_CFLAGS = -g -O2 -W -Wall -Wstrict-prototypes -Wshadow
|
||||||
INCLUDES = -I$(top_srcdir)/include
|
INCLUDES = -I$(top_srcdir)/include
|
||||||
sbin_PROGRAMS = splat
|
sbin_PROGRAMS = splat
|
||||||
splat_SOURCES = splat.c
|
splat_SOURCES = splat.c
|
||||||
splat_LDFLAGS = $(top_builddir)/src/lib/libcommon.la
|
splat_LDFLAGS = $(top_builddir)/lib/libcommon.la
|
||||||
|
|
10
configure.ac
10
configure.ac
|
@ -109,11 +109,11 @@ AC_SUBST(KERNELCPPFLAGS)
|
||||||
AC_SUBST(KERNELCFLAGS)
|
AC_SUBST(KERNELCFLAGS)
|
||||||
|
|
||||||
AC_CONFIG_FILES([ Makefile
|
AC_CONFIG_FILES([ Makefile
|
||||||
src/Makefile
|
lib/Makefile
|
||||||
src/lib/Makefile
|
cmd/Makefile
|
||||||
src/cmd/Makefile
|
modules/Makefile
|
||||||
src/spl/Makefile
|
modules/spl/Makefile
|
||||||
src/splat/Makefile
|
modules/splat/Makefile
|
||||||
include/Makefile
|
include/Makefile
|
||||||
scripts/Makefile
|
scripts/Makefile
|
||||||
scripts/spl.spec
|
scripts/spl.spec
|
||||||
|
|
|
@ -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@ $@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,13 +13,12 @@ spl-objs += linux-kmem.o
|
||||||
spl-objs += linux-thread.o
|
spl-objs += linux-thread.o
|
||||||
spl-objs += linux-taskq.o
|
spl-objs += linux-taskq.o
|
||||||
spl-objs += linux-rwlock.o
|
spl-objs += linux-rwlock.o
|
||||||
|
spl-objs += linux-generic.o
|
||||||
|
|
||||||
splmodule := spl.ko
|
splmodule := spl.ko
|
||||||
splmoduledir := @kmoduledir@/kernel/lib/
|
splmoduledir := @kmoduledir@/kernel/lib/
|
||||||
|
|
||||||
all: all-spec
|
install:
|
||||||
|
|
||||||
install: all
|
|
||||||
mkdir -p $(DESTDIR)$(splmoduledir)
|
mkdir -p $(DESTDIR)$(splmoduledir)
|
||||||
$(INSTALL) -m 644 $(splmodule) $(DESTDIR)$(splmoduledir)/$(splmodule)
|
$(INSTALL) -m 644 $(splmodule) $(DESTDIR)$(splmoduledir)/$(splmodule)
|
||||||
-/sbin/depmod -a
|
-/sbin/depmod -a
|
||||||
|
@ -39,6 +38,3 @@ maintainer-clean: distclean
|
||||||
|
|
||||||
distdir: $(DISTFILES)
|
distdir: $(DISTFILES)
|
||||||
cp -p $(DISTFILES) $(distdir)
|
cp -p $(DISTFILES) $(distdir)
|
||||||
|
|
||||||
all-spec:
|
|
||||||
$(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules
|
|
|
@ -23,9 +23,7 @@ splat-objs += splat-time.o
|
||||||
splatmodule := splat.ko
|
splatmodule := splat.ko
|
||||||
splatmoduledir := @kmoduledir@/kernel/lib/
|
splatmoduledir := @kmoduledir@/kernel/lib/
|
||||||
|
|
||||||
all: all-spec
|
install:
|
||||||
|
|
||||||
install: all
|
|
||||||
mkdir -p $(DESTDIR)$(splatmoduledir)
|
mkdir -p $(DESTDIR)$(splatmoduledir)
|
||||||
$(INSTALL) -m 644 $(splatmodule) $(DESTDIR)$(splatmoduledir)/$(splatmodule)
|
$(INSTALL) -m 644 $(splatmodule) $(DESTDIR)$(splatmoduledir)/$(splatmodule)
|
||||||
-/sbin/depmod -a
|
-/sbin/depmod -a
|
||||||
|
@ -45,6 +43,3 @@ maintainer-clean: distclean
|
||||||
|
|
||||||
distdir: $(DISTFILES)
|
distdir: $(DISTFILES)
|
||||||
cp -p $(DISTFILES) $(distdir)
|
cp -p $(DISTFILES) $(distdir)
|
||||||
|
|
||||||
all-spec:
|
|
||||||
$(MAKE) -C @kernelsrc@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ modules
|
|
|
@ -1 +0,0 @@
|
||||||
SUBDIRS = lib cmd spl splat
|
|
Loading…
Reference in New Issue