Avoid installing kernel headers on FreeBSD

The kernel headers are installed for DKMS on linux, so don't install
them unless we're building on linux.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10506
This commit is contained in:
Arvind Sankar
2020-06-26 17:20:30 -04:00
committed by Brian Behlendorf
parent 67b1362f04
commit 4d8e68c42f
14 changed files with 23 additions and 20 deletions
+1 -4
View File
@@ -2,7 +2,4 @@ KERNEL_H = \
compiler.h \
types.h
if CONFIG_KERNEL
kerneldir = @prefix@/src/zfs-$(VERSION)/include/linux
kernel_HEADERS = $(KERNEL_H)
endif
noinst_HEADERS = $(KERNEL_H)
+1 -4
View File
@@ -1,7 +1,4 @@
KERNEL_H = \
acl_common.h
if CONFIG_KERNEL
kerneldir = @prefix@/src/zfs-$(VERSION)/include/spl/acl
kernel_HEADERS = $(KERNEL_H)
endif
noinst_HEADERS = $(KERNEL_H)
+1 -4
View File
@@ -1,7 +1,4 @@
KERNEL_H = \
xdr.h
if CONFIG_KERNEL
kerneldir = @prefix@/src/zfs-$(VERSION)/include/spl/rpc
kernel_HEADERS = $(KERNEL_H)
endif
noinst_HEADERS = $(KERNEL_H)
+1 -4
View File
@@ -69,7 +69,4 @@ KERNEL_H = \
zmod.h \
zone.h
if CONFIG_KERNEL
kerneldir = @prefix@/src/zfs-$(VERSION)/include/spl/sys
kernel_HEADERS = $(KERNEL_H)
endif
noinst_HEADERS = $(KERNEL_H)
+1 -4
View File
@@ -11,7 +11,4 @@ KERNEL_H = \
zfs_znode_impl.h \
zpl.h
if CONFIG_KERNEL
kerneldir = @prefix@/src/zfs-$(VERSION)/include/sys
kernel_HEADERS = $(KERNEL_H)
endif
noinst_HEADERS = $(KERNEL_H)
@@ -15,6 +15,8 @@ KERNEL_H = \
compiler_compat.h
if CONFIG_KERNEL
if BUILD_LINUX
kerneldir = @prefix@/src/zfs-$(VERSION)/include/linux
kernel_HEADERS = $(KERNEL_H)
endif
endif