Only run depmod if installing to / and kernel is the same
authorDavid Schleef <ds@schleef.org>
Tue, 12 Feb 2002 01:48:50 +0000 (01:48 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 12 Feb 2002 01:48:50 +0000 (01:48 +0000)
Makefile.modbuild

index 510164c693195f9f3bc4b68a36a3d667263cc869..dc01e8da447d65507311d4d0012ba94a32ee4ad3 100644 (file)
@@ -69,7 +69,11 @@ config:      dummy
        env -i $(CONFIG_SHELL) ./configure --linuxdir $(LINUXDIR)
 
 modules_install:       $(patsubst %, _modinst_%, $(SUBDIRS))
-       depmod -a
+ifeq ($(INSTALL_MOD_PATH),)
+ifeq ($(KERNELRELEASE),$(shell uname -r))
+       /sbin/depmod -a
+endif
+endif
 
 _modinst_%:
        $(MAKE) -C $(patsubst _modinst_%, %, $@) modules_install