aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Sankar <nivedita@alum.mit.edu>2020-06-25 14:04:50 -0400
committerBrian Behlendorf <behlendorf1@llnl.gov>2020-06-26 14:19:35 -0700
commit7c902a5178496f1321ecb9f33df743a77278089e (patch)
tree5122a87d1168b425c9df8bb83b28c5b03b0fdf01
parent67c0f0dedc5ce0096dd0f595fa8a188de8d84547 (diff)
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
-rw-r--r--module/Makefile.in15
1 files 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