summaryrefslogtreecommitdiffstats
path: root/module/splat
diff options
context:
space:
mode:
authorEtienne Dechamps <[email protected]>2012-07-09 11:10:31 +0200
committerBrian Behlendorf <[email protected]>2012-07-26 15:13:09 -0700
commitc167aadb27d51b7be9ee7bd582e2795061a68480 (patch)
tree9908bf3d1f0158e9d3fe505facbced5f0104996f /module/splat
parent723aa3b0c2eed070f7eeadd2ce2d87f46da6d0f8 (diff)
Add script for builtin module building.
This commit introduces a "copy-builtin" script designed to prepare a kernel source tree for building SPL as a builtin module. The script makes a full copy of all needed files, thus making the kernel source tree fully independent of the spl source package. To achieve that, some compilation flags (-include, -I) have been moved to module/Makefile. This Makefile is only used when compiling external modules; when compiling builtin modules, a Kbuild file generated by the configure-builtin script is used instead. This makes sure Makefiles inside the kernel source tree does not contain references to the spl source package. Signed-off-by: Brian Behlendorf <[email protected]> Issue zfsonlinux/zfs#851
Diffstat (limited to 'module/splat')
-rw-r--r--module/splat/Makefile.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/module/splat/Makefile.in b/module/splat/Makefile.in
index 05007d42f..f4065196b 100644
--- a/module/splat/Makefile.in
+++ b/module/splat/Makefile.in
@@ -1,12 +1,10 @@
# Makefile.in for splat kernel module
MODULE := splat
-EXTRA_CFLAGS = @KERNELCPPFLAGS@
-EXTRA_CFLAGS += -I@abs_top_srcdir@/include
-EXTRA_CFLAGS += -include @abs_top_builddir@/spl_config.h
+EXTRA_CFLAGS = $(SPL_MODULE_CFLAGS) @KERNELCPPFLAGS@
# Solaris Porting LAyer Tests
-obj-m := $(MODULE).o
+obj-$(CONFIG_SPL) := $(MODULE).o
$(MODULE)-objs += @top_srcdir@/module/splat/splat-ctl.o
$(MODULE)-objs += @top_srcdir@/module/splat/splat-kmem.o