]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Linux 5.3 compat: Makefile subdir-m no longer supported
authorDominic Pearson <dsp@technoanimal.net>
Mon, 19 Aug 2019 22:22:52 +0000 (00:22 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 19 Aug 2019 22:22:52 +0000 (15:22 -0700)
Uses obj-m instead, due to kernel changes.

See LKML: Masahiro Yamada, Tue, 6 Aug 2019 19:03:23 +0900

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Dominic Pearson <dsp@technoanimal.net>
Closes #9169

.gitignore
module/Makefile.in

index 549fa59f3822253ee909db2cdde8051381400f06..ae9e22dfa7bb3aee716e7ce6f6c86c6e7e819005 100644 (file)
@@ -63,3 +63,14 @@ cscope.*
 *.log
 venv
 
+#
+# Module leftovers
+#
+/module/avl/zavl.mod
+/module/icp/icp.mod
+/module/lua/zlua.mod
+/module/nvpair/znvpair.mod
+/module/spl/spl.mod
+/module/unicode/zunicode.mod
+/module/zcommon/zcommon.mod
+/module/zfs/zfs.mod
index eca7691aedbb5f54996f02ff33d3b7edba47c14c..7477dbe56509421267b63683de540626085d35eb 100644 (file)
@@ -1,11 +1,11 @@
-subdir-m += avl
-subdir-m += icp
-subdir-m += lua
-subdir-m += nvpair
-subdir-m += spl
-subdir-m += unicode
-subdir-m += zcommon
-subdir-m += zfs
+obj-m += avl/
+obj-m += icp/
+obj-m += lua/
+obj-m += nvpair/
+obj-m += spl/
+obj-m += unicode/
+obj-m += zcommon/
+obj-m += zfs/
 
 INSTALL_MOD_DIR ?= extra
 
@@ -60,13 +60,13 @@ modules_install:
 modules_uninstall:
        @# Uninstall the kernel modules
        kmoddir=$(DESTDIR)$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@
-       list='$(subdir-m)'; for subdir in $$list; do \
-               $(RM) -R $$kmoddir/$(INSTALL_MOD_DIR)/$$subdir; \
+       list='$(obj-m)'; for objdir in $$list; do \
+               $(RM) -R $$kmoddir/$(INSTALL_MOD_DIR)/$$objdir; \
        done
 
 distdir:
-       list='$(subdir-m)'; for subdir in $$list; do \
-               (cd @top_srcdir@/module && find $$subdir \
+       list='$(obj-m)'; for objdir in $$list; do \
+               (cd @top_srcdir@/module && find $$objdir \
                -name '*.c' -o -name '*.h' -o -name '*.S' | \
                xargs cp --parents -t @abs_top_builddir@/module/$$distdir); \
        done