mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
775f2d34a3
Install the common zfs kernel development headers under /usr/src/zfs-<version>/ rather than in a kernel specific directory. The kernel specific build products such as zfs_config.h and Modules.symvers are left installed under /usr/src/zfs-<version>/<kernel>. This was done to be consistent with where dkms expects kernel module source to be packaged. It also allows for a common zfs-kmod-devel package which includes the headers, and per-kernel zfs-kmod-devel-<kernel> packages. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
22 lines
480 B
Makefile
22 lines
480 B
Makefile
COMMON_H =
|
|
|
|
KERNEL_H = \
|
|
$(top_srcdir)/include/linux/dcache_compat.h \
|
|
$(top_srcdir)/include/linux/xattr_compat.h \
|
|
$(top_srcdir)/include/linux/vfs_compat.h \
|
|
$(top_srcdir)/include/linux/blkdev_compat.h
|
|
|
|
USER_H =
|
|
|
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
|
|
|
if CONFIG_USER
|
|
libzfsdir = $(includedir)/libzfs/linux
|
|
libzfs_HEADERS = $(COMMON_H) $(USER_H)
|
|
endif
|
|
|
|
if CONFIG_KERNEL
|
|
kerneldir = /usr/src/zfs-$(VERSION)/include/linux
|
|
kernel_HEADERS = $(COMMON_H) $(KERNEL_H)
|
|
endif
|