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:
|
modules_uninstall-Linux:
|
||||||
@# Uninstall the kernel modules
|
@# Uninstall the kernel modules
|
||||||
kmoddir=$(DESTDIR)$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@ \
|
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; \
|
$(RM) -R $$kmoddir/$(INSTALL_MOD_DIR)/$$objdir; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -107,10 +107,9 @@ modules_uninstall-FreeBSD:
|
||||||
modules_uninstall: modules_uninstall-@ac_system@
|
modules_uninstall: modules_uninstall-@ac_system@
|
||||||
|
|
||||||
distdir:
|
distdir:
|
||||||
list='$(ZFS_MODULES)'; for objdir in $$list os/linux/spl os/linux/zfs; do \
|
(cd @srcdir@ && find $(ZFS_MODULES) os -name '*.[chS]') | \
|
||||||
(cd @top_srcdir@/module && find $$objdir -name '*.[chS]' | \
|
while read path; do \
|
||||||
while read path; do \
|
mkdir -p $$distdir/$${path%/*}; \
|
||||||
mkdir -p @abs_top_builddir@/module/$$distdir/$${path%/*}; \
|
cp @srcdir@/$$path $$distdir/$$path; \
|
||||||
cp $$path @abs_top_builddir@/module/$$distdir/$$path; \
|
done; \
|
||||||
done); \
|
cp @srcdir@/Makefile.bsd $$distdir/Makefile.bsd
|
||||||
done
|
|
||||||
|
|
Loading…
Reference in New Issue