mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
c167aadb27
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 <behlendorf1@llnl.gov> Issue zfsonlinux/zfs#851
28 lines
1.2 KiB
Makefile
28 lines
1.2 KiB
Makefile
# Makefile.in for spl kernel module
|
|
|
|
MODULE := spl
|
|
EXTRA_CFLAGS = $(SPL_MODULE_CFLAGS) @KERNELCPPFLAGS@
|
|
|
|
# Solaris porting layer module
|
|
obj-$(CONFIG_SPL) := $(MODULE).o
|
|
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-debug.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-proc.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-kmem.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-thread.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-taskq.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-rwlock.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-vnode.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-err.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-time.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-kobj.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-generic.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-atomic.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-mutex.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-kstat.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-condvar.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-xdr.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-cred.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-tsd.o
|
|
$(MODULE)-objs += @top_srcdir@/module/spl/spl-zlib.o
|