From 06c34f6cfab06b6c884c2930b20e8642fffc285b Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 12 Feb 2002 01:48:50 +0000 Subject: [PATCH] Only run depmod if installing to / and kernel is the same --- Makefile.modbuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.modbuild b/Makefile.modbuild index 510164c6..dc01e8da 100644 --- a/Makefile.modbuild +++ b/Makefile.modbuild @@ -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 -- 2.26.2