]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kbuild: Do not remove vmlinux when cleaning external module
authorPawel Moll <pawel.moll@arm.com>
Mon, 29 Oct 2012 11:23:02 +0000 (11:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:08 +0000 (08:46 -0800)
commita77af8b6ec02d86956f5252fc37f1d9af5a93b7d
tree50b20d802323a70769608422104ce7f6a46c736d
parentbf2c3394c626762602993707f728fdb07ba1ca4f
kbuild: Do not remove vmlinux when cleaning external module

commit bd1ee804af8bdf2fd5131234330615f8aecbd9ed upstream.

Since commit 1f2bfbd00e466ff3489b2ca5cc75b1cccd14c123 "kbuild:
link of vmlinux moved to a script" make clean with M=<dir>
argument (so cleaning external module) removes vmlinux,
System.map and couple of other files from the *main* kernel
build directory! This not what was happening before and almost
certainly not what one would expect.

This patch moves makes the clean target of the script called
only when !KBUILD_EXTMOD.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Makefile