diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-09 01:25:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-09 01:25:36 +0200 |
commit | 1883cb174619cfc90ca86da08598f470d3a11315 (patch) | |
tree | a1e849d0cf637894d166e66b4885d708713ba075 /scripts/test_make_O | |
parent | 1f0ab1dc6427e9340f50551d9e4f2212d03ec845 (diff) | |
download | busybox-w32-1883cb174619cfc90ca86da08598f470d3a11315.tar.gz busybox-w32-1883cb174619cfc90ca86da08598f470d3a11315.tar.bz2 busybox-w32-1883cb174619cfc90ca86da08598f470d3a11315.zip |
fix make O=dir build
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/test_make_O')
-rwxr-xr-x | scripts/test_make_O | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/test_make_O b/scripts/test_make_O new file mode 100755 index 000000000..a0ee6a868 --- /dev/null +++ b/scripts/test_make_O | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | b=`basename $PWD` | ||
4 | test "${b#busybox}" != "$b" || { echo "Must be run in busybox tree"; exit 1; } | ||
5 | |||
6 | rm -rf ../testdir_make_O.$$ | ||
7 | mkdir ../testdir_make_O.$$ | ||
8 | odir=`cd ../testdir_make_O.$$ && pwd` | ||
9 | test -d "$odir" || exit 1 | ||
10 | |||
11 | make O="$odir" $MAKEOPTS "$@" defconfig busybox 2>&1 | tee test_make_O.log | ||