Commit 4670ef7a authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Linus Torvalds

[PATCH] 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.
parent c49429a6
...@@ -624,8 +624,10 @@ ifneq ($(KBUILD_SRC),) ...@@ -624,8 +624,10 @@ ifneq ($(KBUILD_SRC),)
endif endif
prepare0: prepare1 include/linux/version.h include/asm include/config/MARKER prepare0: prepare1 include/linux/version.h include/asm include/config/MARKER
ifneq ($(KBUILD_MODULES),)
$(Q)rm -rf $(MODVERDIR) $(Q)rm -rf $(MODVERDIR)
$(if $(CONFIG_MODULES),$(Q)mkdir -p $(MODVERDIR)) $(Q)mkdir -p $(MODVERDIR)
endif
# All the preparing.. # All the preparing..
prepare-all: prepare0 prepare prepare-all: prepare0 prepare
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment