From 7c902a5178496f1321ecb9f33df743a77278089e Mon Sep 17 00:00:00 2001 From: Arvind Sankar Date: Thu, 25 Jun 2020 14:04:50 -0400 Subject: [PATCH] Include FreeBSD sources in module dist Add os/freebsd and Makefile.bsd into distdir target. Reviewed-by: Brian Behlendorf Signed-off-by: Arvind Sankar Closes #10501 --- module/Makefile.in | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/module/Makefile.in b/module/Makefile.in index 34e61945b..59b485d55 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -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