aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2006-04-24 15:55:27 -0400
committerSam Ravnborg <sam@mars.ravnborg.org>2006-04-30 17:48:03 -0400
commitfca1dff218163ffd34d1e9e0b9b244e8c8803601 (patch)
tree15ad03f21c320c9a6f8112321c014bc698eb6b3a /Makefile
parentc8d8b837ebe4b4f11e1b0c4a2bdc358c697692ed (diff)
kbuild: removing .tmp_versions considered harmful
Remove *.mod files but not .tmp_versions for external builds When "make install" is run as root, .tmp_versions is re-created and becomes owned by root. Subsequent "make" run by user fails because .tmp_versions cannot be removed. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6bf99624bd4c..8517f7ba2473 100644
--- a/Makefile
+++ b/Makefile
@@ -796,8 +796,8 @@ prepare2: prepare3 outputmakefile
796prepare1: prepare2 include/linux/version.h include/asm \ 796prepare1: prepare2 include/linux/version.h include/asm \
797 include/config/MARKER 797 include/config/MARKER
798ifneq ($(KBUILD_MODULES),) 798ifneq ($(KBUILD_MODULES),)
799 $(Q)rm -rf $(MODVERDIR)
800 $(Q)mkdir -p $(MODVERDIR) 799 $(Q)mkdir -p $(MODVERDIR)
800 $(Q)rm -f $(MODVERDIR)/*
801endif 801endif
802 802
803archprepare: prepare1 scripts_basic 803archprepare: prepare1 scripts_basic
@@ -1086,8 +1086,8 @@ else # KBUILD_EXTMOD
1086KBUILD_MODULES := 1 1086KBUILD_MODULES := 1
1087PHONY += crmodverdir 1087PHONY += crmodverdir
1088crmodverdir: 1088crmodverdir:
1089 $(Q)rm -rf $(MODVERDIR)
1090 $(Q)mkdir -p $(MODVERDIR) 1089 $(Q)mkdir -p $(MODVERDIR)
1090 $(Q)rm -f $(MODVERDIR)/*
1091 1091
1092PHONY += $(objtree)/Module.symvers 1092PHONY += $(objtree)/Module.symvers
1093$(objtree)/Module.symvers: 1093$(objtree)/Module.symvers: