Commit fca1dff2 authored by Pavel Roskin's avatar Pavel Roskin Committed by Sam Ravnborg
Browse files

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: default avatarPavel Roskin <>
Signed-off-by: Sam Ravnborg's avatarSam Ravnborg <>
parent c8d8b837
......@@ -796,8 +796,8 @@ prepare2: prepare3 outputmakefile
prepare1: prepare2 include/linux/version.h include/asm \
ifneq ($(KBUILD_MODULES),)
$(Q)rm -rf $(MODVERDIR)
$(Q)mkdir -p $(MODVERDIR)
$(Q)rm -f $(MODVERDIR)/*
archprepare: prepare1 scripts_basic
......@@ -1086,8 +1086,8 @@ else # KBUILD_EXTMOD
PHONY += crmodverdir
$(Q)rm -rf $(MODVERDIR)
$(Q)mkdir -p $(MODVERDIR)
$(Q)rm -f $(MODVERDIR)/*
PHONY += $(objtree)/Module.symvers
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