]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Process `script` directory for all configs
authorDamian Szuberski <szuberskidamian@gmail.com>
Thu, 27 Oct 2022 23:45:14 +0000 (09:45 +1000)
committerGitHub <noreply@github.com>
Thu, 27 Oct 2022 23:45:14 +0000 (16:45 -0700)
Even when only building kmods process the scripts directory.  This
way the common.sh script will be generated and the zfs.sh script
can be used to load/unload the in-tree kernel modules.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #14027
Closes #14051

Makefile.am
scripts/Makefile.am

index 54d300e7d40be8e385f331d155c24e30c334353c..11e45dae82551e64c0fbd8fc23193827661877ff 100644 (file)
@@ -9,6 +9,7 @@ include $(top_srcdir)/config/Rules.am
 include $(top_srcdir)/config/CppCheck.am
 include $(top_srcdir)/config/Shellcheck.am
 include $(top_srcdir)/config/Substfiles.am
+include $(top_srcdir)/scripts/Makefile.am
 
 ACLOCAL_AMFLAGS = -I config
 
@@ -23,7 +24,6 @@ include $(srcdir)/%D%/contrib/Makefile.am
 include $(srcdir)/%D%/etc/Makefile.am
 include $(srcdir)/%D%/lib/Makefile.am
 include $(srcdir)/%D%/man/Makefile.am
-include $(srcdir)/%D%/scripts/Makefile.am
 include $(srcdir)/%D%/tests/Makefile.am
 if BUILD_LINUX
 include $(srcdir)/%D%/udev/Makefile.am
index 79719e621b69237e94b603bec5330432eaabde83..4175d27ea32a2a10da6a6d69e820326f5c0122c9 100644 (file)
@@ -1,11 +1,4 @@
 scriptsdir = $(datadir)/$(PACKAGE)
-dist_scripts_SCRIPTS = \
-       %D%/zfs-helpers.sh \
-       %D%/zfs-tests.sh \
-       %D%/zfs.sh \
-       %D%/zimport.sh \
-       %D%/zloop.sh
-
 dist_noinst_SCRIPTS = \
        %D%/commitcheck.sh \
        %D%/common.sh.in \
@@ -18,6 +11,19 @@ dist_noinst_SCRIPTS = \
        %D%/paxcheck.sh \
        %D%/zfs-tests-color.sh
 
+scripts_scripts = \
+       %D%/zfs-helpers.sh \
+       %D%/zfs-tests.sh \
+       %D%/zfs.sh \
+       %D%/zimport.sh \
+       %D%/zloop.sh
+
+if CONFIG_USER
+dist_scripts_SCRIPTS = $(scripts_scripts)
+else
+dist_noinst_SCRIPTS += $(scripts_scripts)
+endif
+
 dist_noinst_DATA += \
        %D%/cstyle.pl \
        %D%/enum-extract.pl \