Skip to contentSkip to conversation

make depmod

PATCH In review Matt Mackall 1 participant 2 messages Dec 21, 2004 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make depmod

This patch exposes the modules_install depmod functionality as a convenience to external modules

Makefile +3 -1
Index: l/Makefile
===================================================================
@@ -867,7 +867,9 @@
 depmod_opts	:= -b $(INSTALL_MOD_PATH) -r
 endif
 .PHONY: _modinst_post
-_modinst_post: _modinst_
+_modinst_post: _modinst_ depmod
+
+depmod:
 	if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
 
 else # CONFIG_MODULES
Signature · 1 line
Mathematics is the supreme nostalgia of our time.
#1 lore raw
Quoted 8 lines · Matt Mackall

This patch exposes the modules_install depmod functionality as a convenience to external modules

Index: l/Makefile
===================================================================

Makefile line 875

Quoted 10 lines
Makefile +3 -1
@@ -867,7 +867,9 @@
 depmod_opts	:= -b $(INSTALL_MOD_PATH) -r
 endif
 .PHONY: _modinst_post
-_modinst_post: _modinst_
+_modinst_post: _modinst_ depmod
+
+depmod:
 	if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
 
 else # CONFIG_MODULES

As was pointed out to me privately, this is broken for make -j.

Signature · 1 line
Mathematics is the supreme nostalgia of our time.