diff options
author | Pavel Roskin <proski@gnu.org> | 2006-04-24 21:55:27 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-04-30 23:48:03 +0200 |
commit | fca1dff218163ffd34d1e9e0b9b244e8c8803601 (patch) | |
tree | 15ad03f21c320c9a6f8112321c014bc698eb6b3a /Makefile | |
parent | kbuild: fix modpost segfault for 64bit mipsel kernel (diff) | |
download | linux-fca1dff218163ffd34d1e9e0b9b244e8c8803601.tar.xz linux-fca1dff218163ffd34d1e9e0b9b244e8c8803601.zip |
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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -796,8 +796,8 @@ prepare2: prepare3 outputmakefile prepare1: prepare2 include/linux/version.h include/asm \ include/config/MARKER ifneq ($(KBUILD_MODULES),) - $(Q)rm -rf $(MODVERDIR) $(Q)mkdir -p $(MODVERDIR) + $(Q)rm -f $(MODVERDIR)/* endif archprepare: prepare1 scripts_basic @@ -1086,8 +1086,8 @@ else # KBUILD_EXTMOD KBUILD_MODULES := 1 PHONY += crmodverdir crmodverdir: - $(Q)rm -rf $(MODVERDIR) $(Q)mkdir -p $(MODVERDIR) + $(Q)rm -f $(MODVERDIR)/* PHONY += $(objtree)/Module.symvers $(objtree)/Module.symvers: |