aboutsummaryrefslogtreecommitdiffstats
path: root/module/spl/Makefile.in
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/spl/Makefile.in
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/spl/Makefile.in')
-rw-r--r--module/spl/Makefile.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/module/spl/Makefile.in b/module/spl/Makefile.in
index 7e8aac502..34b480127 100644
--- a/module/spl/Makefile.in
+++ b/module/spl/Makefile.in
@@ -1,12 +1,10 @@
# Makefile.in for spl kernel module
MODULE := spl
-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 module
-obj-m := $(MODULE).o
+obj-$(CONFIG_SPL) := $(MODULE).o
$(MODULE)-objs += @top_srcdir@/module/spl/spl-debug.o
$(MODULE)-objs += @top_srcdir@/module/spl/spl-proc.o