aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2010-11-03 01:10:52 +0000
committerMichael Büsch <mb@bu3sch.de>2010-11-03 01:10:52 +0000
commit286a9a67ee84128855ac31fe275b2dbaba7cd565 (patch)
tree95ca5245bad849f2a6dd101428d0f28b434af2f9
parent9e13ee5627f6de7ccf0d854c88524013f2cb2983 (diff)
downloadupstream-286a9a67ee84128855ac31fe275b2dbaba7cd565.tar.gz
upstream-286a9a67ee84128855ac31fe275b2dbaba7cd565.tar.bz2
upstream-286a9a67ee84128855ac31fe275b2dbaba7cd565.zip
deptest: Add optional blacklisting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23811 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xscripts/deptest.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/deptest.sh b/scripts/deptest.sh
index 3a81659f7b..33dfa83376 100755
--- a/scripts/deptest.sh
+++ b/scripts/deptest.sh
@@ -7,6 +7,7 @@ BASEDIR="$SCRIPTDIR/.."
DIR="$BASEDIR/tmp/deptest"
STAMP_DIR_SUCCESS="$DIR/stamp-success"
STAMP_DIR_FAILED="$DIR/stamp-failed"
+STAMP_DIR_BLACKLIST="$DIR/stamp-blacklist"
BUILD_DIR="$DIR/build_dir/target"
BUILD_DIR_HOST="$DIR/build_dir/host"
STAGING_DIR="$DIR/staging_dir"
@@ -26,7 +27,8 @@ die()
die "The buildsystem is not configured. Please run make menuconfig."
cd "$BASEDIR" || die "Failed to enter base directory"
-mkdir -p "$STAMP_DIR_SUCCESS" "$STAMP_DIR_FAILED" "$BUILD_DIR" "$BUILD_DIR_HOST" "$LOG_DIR"
+mkdir -p "$STAMP_DIR_SUCCESS" "$STAMP_DIR_FAILED" "$STAMP_DIR_BLACKLIST" \
+ "$BUILD_DIR" "$BUILD_DIR_HOST" "$LOG_DIR"
[ -d "$STAGING_DIR_HOST_TMPL" ] || {
rm -rf staging_dir/host
@@ -43,12 +45,17 @@ for pkg in `cat tmp/.packagedeps | grep CONFIG_PACKAGE | grep -v curdir | sed -
done
STAMP_SUCCESS="$STAMP_DIR_SUCCESS/$pkg"
STAMP_FAILED="$STAMP_DIR_FAILED/$pkg"
+ STAMP_BLACKLIST="$STAMP_DIR_BLACKLIST/$pkg"
rm -f "$STAMP_FAILED"
[ -f "$STAMP_SUCCESS" ] && continue
[ -n "$SELECTED" ] || {
echo "Package $pkg is not selected"
continue
}
+ [ -f "$STAMP_BLACKLIST" ] && {
+ echo "Package $pkg is blacklisted"
+ continue
+ }
echo "Testing package $pkg..."
rm -rf "$STAGING_DIR"
mkdir -p "$STAGING_DIR"