Fix out-of-tree build's recursion
authorAlexander Shishkin <virtuoso@slind.org>
Thu, 15 Jul 2010 14:39:24 +0000 (17:39 +0300)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 18 Jul 2010 21:57:49 +0000 (23:57 +0200)
commitdaf286cda559dd1eff0c9db46a4562c0255e76f1
treedf5dd52c1ff42488303236ea50bbef371bcfde7b
parentfb4cb1c41697b4009608527a343dbd8265ad7993
Fix out-of-tree build's recursion

While doing O=build build I've noticed that it was getting gradually
slower with each invocation. The reason turned out to be that the build
directory was inside the source tree and got recreated inside itself
with all its subdirectories.

This patch changes the behavior so that only the directories with
Kbuild.src or Config.src in them are created in the out-of-tree build
directory. A quick rebuild from scratch revealed no problems with this.

Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
scripts/gen_build_files.sh