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
+2
View File
@@ -9,6 +9,8 @@ libzfs_HEADERS = $(COMMON_H)
endif
if CONFIG_KERNEL
if BUILD_LINUX
kerneldir = @prefix@/src/zfs-$(VERSION)/include/sys/crypto
kernel_HEADERS = $(COMMON_H)
endif
endif