Skip to contentSkip to conversation

kbuild: fix modules_install

PATCH New Sam Ravnborg 1 participant 1 message Apr 14, 2004 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: fix modules_install

The directory .tmp_versions/ was deleted during make vmlinux. This eliminated the list of modules used for moudles_install. The effect was that the following scenario failed:
make
make install
make modules_install

The solution is to only cleanup .tmp_versions when building modules.

===== Makefile 1.478 vs edited =====

Makefile +3 -1
@@ -624,8 +624,10 @@
 endif
 
 prepare0: prepare1 include/linux/version.h include/asm include/config/MARKER
+ifneq ($(KBUILD_MODULES),)
 	$(Q)rm -rf $(MODVERDIR)
-	$(if $(CONFIG_MODULES),$(Q)mkdir -p $(MODVERDIR))
+	$(Q)mkdir -p $(MODVERDIR)
+endif
 
 # All the preparing..
 prepare-all: prepare0 prepare