From: Sam Ravnborg Date: Wed, 26 Sep 2007 17:38:44 +0000 (+0200) Subject: kbuild: fix infinite make recursion X-Git-Tag: v2.6.24-rc1~830^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f1127e204377cbd2a56d112d323466f668e8334;p=pandora-kernel.git kbuild: fix infinite make recursion Jan Engelhardt reported: You can cause a recursion in kbuild/make with the following: make O=$PWD kernel/time.o make mrproper Of course no one would use O=$PWD (that's just the testcase), but this happened too often: /ws/linux/linux-2.6.23$ make O=/ws/linux/linux-2.6.23 kernel/time.o (Oops - should have been O=/ws/linux/obj-2.6.23!) Fixed by an explicit test for this case - we error out if output directory and source directory are the same. Tested-by: Jan Engelhardt Signed-off-by: Sam Ravnborg --- Reading git-diff-tree failed