aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_build_files.sh
diff options
context:
space:
mode:
authorAlexander Shishkin <virtuoso@slind.org>2010-07-15 17:39:24 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2010-07-18 23:57:49 +0200
commitdaf286cda559dd1eff0c9db46a4562c0255e76f1 (patch)
treedf5dd52c1ff42488303236ea50bbef371bcfde7b /scripts/gen_build_files.sh
parentfb4cb1c41697b4009608527a343dbd8265ad7993 (diff)
downloadbusybox-w32-daf286cda559dd1eff0c9db46a4562c0255e76f1.tar.gz
busybox-w32-daf286cda559dd1eff0c9db46a4562c0255e76f1.tar.bz2
busybox-w32-daf286cda559dd1eff0c9db46a4562c0255e76f1.zip
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>
Diffstat (limited to 'scripts/gen_build_files.sh')
-rwxr-xr-xscripts/gen_build_files.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh
index 968158758..18c172d5a 100755
--- a/scripts/gen_build_files.sh
+++ b/scripts/gen_build_files.sh
@@ -53,8 +53,8 @@ fi
53 53
54 src="$srctree/$d/Kbuild.src" 54 src="$srctree/$d/Kbuild.src"
55 dst="$d/Kbuild" 55 dst="$d/Kbuild"
56 mkdir -p -- "$d" 2>/dev/null
57 if test -f "$src"; then 56 if test -f "$src"; then
57 mkdir -p -- "$d" 2>/dev/null
58 #echo " CHK $dst" 58 #echo " CHK $dst"
59 59
60 s=`sed -n 's@^//kbuild:@@p' -- "$srctree/$d"/*.c` 60 s=`sed -n 's@^//kbuild:@@p' -- "$srctree/$d"/*.c`
@@ -73,8 +73,8 @@ fi
73 73
74 src="$srctree/$d/Config.src" 74 src="$srctree/$d/Config.src"
75 dst="$d/Config.in" 75 dst="$d/Config.in"
76 mkdir -p -- "$d" 2>/dev/null
77 if test -f "$src"; then 76 if test -f "$src"; then
77 mkdir -p -- "$d" 2>/dev/null
78 #echo " CHK $dst" 78 #echo " CHK $dst"
79 79
80 s=`sed -n 's@^//config:@@p' -- "$srctree/$d"/*.c` 80 s=`sed -n 's@^//config:@@p' -- "$srctree/$d"/*.c`