mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
31b2e0b070
- Kernel modules should be built using the LINUX_OBJ Makefiles and not the LINUX Makefiles to ensure the proper install paths are used. - Install modules in to addon/spl/ - Ensure no additional kernel module build products are packaged. - Simplified spl.spec.in which supports RHEL, CHAOS, SLES, FEDORA.
25 lines
555 B
Makefile
25 lines
555 B
Makefile
subdir-m += spl
|
|
subdir-m += splat
|
|
|
|
INSTALL=/usr/bin/install
|
|
|
|
modules clean:
|
|
$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
|
|
|
|
modules_install:
|
|
$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` \
|
|
INSTALL_MOD_PATH=$(DESTDIR) \
|
|
INSTALL_MOD_DIR=addon/spl $@
|
|
find ${DESTDIR}/lib/modules/ -name 'modules.*' | xargs ${RM}
|
|
|
|
distdir:
|
|
list='$(subdir-m)'; for subdir in $$list; do \
|
|
(find $$subdir -name '*.c' -o -name '*.h' | \
|
|
xargs /bin/cp -t $$distdir/$$subdir); \
|
|
done
|
|
|
|
distclean maintainer-clean: clean
|
|
install: modules_install
|
|
all: modules
|
|
check:
|