From: Michael Büsch Date: Tue, 2 Nov 2010 22:48:29 +0000 (+0000) Subject: deptest: Also make sure the toolchain is built in the initialization step. This makes... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=6f64b909028e2996a3b2829075b794eebc7a4962;hp=b339de78ca49ef817783c05a26acaf41088eea91;ds=sidebyside deptest: Also make sure the toolchain is built in the initialization step. This makes it possible to run the script from within a fresh tree. SVN-Revision: 23806 --- diff --git a/scripts/deptest.sh b/scripts/deptest.sh index 3ce4291b31..b82ac46587 100755 --- a/scripts/deptest.sh +++ b/scripts/deptest.sh @@ -12,13 +12,17 @@ LOG_DIR="$DIR/logs" mkdir -p "$STAMP_DIR_SUCCESS" "$STAMP_DIR_FAILED" "$BUILD_DIR" "$LOG_DIR" +die() +{ + echo "$@" + exit 1 +} + [ -d "$STAGING_DIR_HOST_TMPL" ] || { rm -rf staging_dir/host - make tools/install V=99 || { - echo "make tools/install failed, please check" - exit 1 - } + make tools/install V=99 || die "make tools/install failed, please check" cp -al staging_dir/host "$STAGING_DIR_HOST_TMPL" + make toolchain/install V=99 || die "make toolchain/install failed, please check" } for pkg in `cat tmp/.packagedeps | grep CONFIG_PACKAGE | grep -v curdir | sed -e 's,.*[/=]\s*,,' | sort -u`; do