summaryrefslogtreecommitdiffhomepage
path: root/scripts/test_make_O
blob: a0ee6a8680e98c8dc41b36f98a479c54d71056a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

b=`basename $PWD`
test "${b#busybox}" != "$b" || { echo "Must be run in busybox tree"; exit 1; }

rm -rf ../testdir_make_O.$$
mkdir ../testdir_make_O.$$
odir=`cd ../testdir_make_O.$$ && pwd`
test -d "$odir" || exit 1

make O="$odir" $MAKEOPTS "$@" defconfig busybox 2>&1 | tee test_make_O.log