mirror of https://github.com/openzfs/zfs.git
Include FreeBSD sources in module dist
Add os/freebsd and Makefile.bsd into distdir target. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Closes #10501
This commit is contained in:
parent
67c0f0dedc
commit
7c902a5178
|
@ -97,7 +97,7 @@ modules_install: modules_install-@ac_system@
|
|||
modules_uninstall-Linux:
|
||||
@# Uninstall the kernel modules
|
||||
kmoddir=$(DESTDIR)$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@ \
|
||||
list='$(ZFS_MODULES)'; for objdir in $$list; do \
|
||||
for objdir in $(ZFS_MODULES); do \
|
||||
$(RM) -R $$kmoddir/$(INSTALL_MOD_DIR)/$$objdir; \
|
||||
done
|
||||
|
||||
|
@ -107,10 +107,9 @@ modules_uninstall-FreeBSD:
|
|||
modules_uninstall: modules_uninstall-@ac_system@
|
||||
|
||||
distdir:
|
||||
list='$(ZFS_MODULES)'; for objdir in $$list os/linux/spl os/linux/zfs; do \
|
||||
(cd @top_srcdir@/module && find $$objdir -name '*.[chS]' | \
|
||||
while read path; do \
|
||||
mkdir -p @abs_top_builddir@/module/$$distdir/$${path%/*}; \
|
||||
cp $$path @abs_top_builddir@/module/$$distdir/$$path; \
|
||||
done); \
|
||||
done
|
||||
(cd @srcdir@ && find $(ZFS_MODULES) os -name '*.[chS]') | \
|
||||
while read path; do \
|
||||
mkdir -p $$distdir/$${path%/*}; \
|
||||
cp @srcdir@/$$path $$distdir/$$path; \
|
||||
done; \
|
||||
cp @srcdir@/Makefile.bsd $$distdir/Makefile.bsd
|
||||
|
|
Loading…
Reference in New Issue