summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/wipe-sysroot10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/wipe-sysroot b/scripts/wipe-sysroot
index 7ca26fe750..c22d39a405 100755
--- a/scripts/wipe-sysroot
+++ b/scripts/wipe-sysroot
@@ -20,6 +20,12 @@
20 20
21set -e 21set -e
22 22
23if [ $# -gt 0 ]; then
24 echo "Wipe all sysroots and sysroot-related stamps for the current build directory." >&2
25 echo "Usage: $0" >&2
26 exit 1
27fi
28
23ENVS=`mktemp --suffix -wipe-sysroot-envs` 29ENVS=`mktemp --suffix -wipe-sysroot-envs`
24bitbake -p -e > $ENVS 30bitbake -p -e > $ENVS
25 31
@@ -29,10 +35,12 @@ eval `grep -F STAMPS_DIR= $ENVS`
29rm -f $ENVS 35rm -f $ENVS
30 36
31if [ -z "$SSTATE_MANIFESTS" -o -z "$STAGING_DIR" -o -z "$STAMPS_DIR" ]; then 37if [ -z "$SSTATE_MANIFESTS" -o -z "$STAGING_DIR" -o -z "$STAMPS_DIR" ]; then
32 echo "Could not determine SSTATE_MANIFESTS/STAGING_DIR/STAMPS_DIR, check above for errors" 38 echo "Could not determine SSTATE_MANIFESTS/STAGING_DIR/STAMPS_DIR from bitbake, check above for errors"
33 exit 1 39 exit 1
34fi 40fi
35 41
42echo "Deleting the sysroots in $STAGING_DIR, and selected stamps in $SSTATE_MANIFESTS and $STAMPS_DIR."
43
36# The sysroots themselves 44# The sysroots themselves
37rm -rf $STAGING_DIR 45rm -rf $STAGING_DIR
38 46