Now that 'make install' does not replace the original wacom.ko or
wacom_w8001.ko file, users have to run 'depmod -a' to rebuild the
kernel's module dependencies before the updated modules will be
used. Because it is easy to forget this step and the exact command
may vary depending on the build target, include it as a step in the
install process.

Signed-off-by: Jason Gerecke <jason.gere...@wacom.com>
---
 2.6.30/Makefile.in | 2 ++
 2.6.36/Makefile.in | 2 ++
 2.6.38/Makefile.in | 2 ++
 3.17/Makefile.in   | 2 ++
 3.7/Makefile.in    | 2 ++
 configure.ac       | 1 +
 6 files changed, 11 insertions(+)

diff --git a/2.6.30/Makefile.in b/2.6.30/Makefile.in
index 84cd005..6ed762c 100644
--- a/2.6.30/Makefile.in
+++ b/2.6.30/Makefile.in
@@ -16,6 +16,7 @@ else  # We were called from command line
 PWD  := $(shell pwd)
 
 WCM_KERNEL_DIR := @WCM_KERNEL_DIR@
+MODUTS := @MODUTS@
 
 all:
        @echo '    Building input-wacom drivers for 2.6 kernel.'
@@ -26,6 +27,7 @@ clean:
 
 install modules_install:
        $(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) modules_install
+       PATH="$(PATH):/bin:/sbin" depmod -a $(MODUTS)
 
 endif  # End kbuild check
 
diff --git a/2.6.36/Makefile.in b/2.6.36/Makefile.in
index 84cd005..6ed762c 100644
--- a/2.6.36/Makefile.in
+++ b/2.6.36/Makefile.in
@@ -16,6 +16,7 @@ else  # We were called from command line
 PWD  := $(shell pwd)
 
 WCM_KERNEL_DIR := @WCM_KERNEL_DIR@
+MODUTS := @MODUTS@
 
 all:
        @echo '    Building input-wacom drivers for 2.6 kernel.'
@@ -26,6 +27,7 @@ clean:
 
 install modules_install:
        $(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) modules_install
+       PATH="$(PATH):/bin:/sbin" depmod -a $(MODUTS)
 
 endif  # End kbuild check
 
diff --git a/2.6.38/Makefile.in b/2.6.38/Makefile.in
index 84cd005..6ed762c 100644
--- a/2.6.38/Makefile.in
+++ b/2.6.38/Makefile.in
@@ -16,6 +16,7 @@ else  # We were called from command line
 PWD  := $(shell pwd)
 
 WCM_KERNEL_DIR := @WCM_KERNEL_DIR@
+MODUTS := @MODUTS@
 
 all:
        @echo '    Building input-wacom drivers for 2.6 kernel.'
@@ -26,6 +27,7 @@ clean:
 
 install modules_install:
        $(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) modules_install
+       PATH="$(PATH):/bin:/sbin" depmod -a $(MODUTS)
 
 endif  # End kbuild check
 
diff --git a/3.17/Makefile.in b/3.17/Makefile.in
index 8cc7fd1..58d2af7 100644
--- a/3.17/Makefile.in
+++ b/3.17/Makefile.in
@@ -16,6 +16,7 @@ else  # We were called from command line
 PWD  := $(shell pwd)
 
 WCM_KERNEL_DIR := @WCM_KERNEL_DIR@
+MODUTS := @MODUTS@
 
 all:
        @echo '    Building input-wacom drivers for 2.6 kernel.'
@@ -26,6 +27,7 @@ clean:
 
 install modules_install:
        $(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) modules_install
+       PATH="$(PATH):/bin:/sbin" depmod -a $(MODUTS)
 
 endif  # End kbuild check
 
diff --git a/3.7/Makefile.in b/3.7/Makefile.in
index 84cd005..6ed762c 100644
--- a/3.7/Makefile.in
+++ b/3.7/Makefile.in
@@ -16,6 +16,7 @@ else  # We were called from command line
 PWD  := $(shell pwd)
 
 WCM_KERNEL_DIR := @WCM_KERNEL_DIR@
+MODUTS := @MODUTS@
 
 all:
        @echo '    Building input-wacom drivers for 2.6 kernel.'
@@ -26,6 +27,7 @@ clean:
 
 install modules_install:
        $(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) modules_install
+       PATH="$(PATH):/bin:/sbin" depmod -a $(MODUTS)
 
 endif  # End kbuild check
 
diff --git a/configure.ac b/configure.ac
index 4ee8b80..f584bc5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -130,6 +130,7 @@ echo
 WCM_SRC_SUBDIRS=". $WCM_KERNEL_VER"
 AC_SUBST(WCM_KERNEL_DIR)
 AC_SUBST(WCM_KERNEL_VER)
+AC_SUBST(MODUTS)
 
 AC_CONFIG_FILES([Makefile
                  2.6.30/Makefile
-- 
2.4.1


------------------------------------------------------------------------------
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to