summaryrefslogtreecommitdiffstats
path: root/scripts/wipe-sysroot
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/wipe-sysroot')
-rwxr-xr-xscripts/wipe-sysroot24
1 files changed, 17 insertions, 7 deletions
diff --git a/scripts/wipe-sysroot b/scripts/wipe-sysroot
index e751a91e92..2d2cbeac8c 100755
--- a/scripts/wipe-sysroot
+++ b/scripts/wipe-sysroot
@@ -18,17 +18,27 @@
18# along with this program; if not, write to the Free Software 18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 20
21if [ -z "$BUILDDIR" ]; then 21set -e
22 echo >&2 "Error: BUILDDIR is not defined, please initialise the build system." 22
23 return 1 23ENVS=`mktemp --suffix -wipe-sysroot-envs`
24bitbake -p -e > $ENVS
25
26eval `grep -F SSTATE_MANIFESTS= $ENVS`
27eval `grep -F STAGING_DIR= $ENVS`
28eval `grep -F STAMPS_DIR= $ENVS`
29rm -f $ENVS
30
31if [ -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"
33 exit 1
24fi 34fi
25 35
26# The sysroots themselves 36# The sysroots themselves
27rm -rf $BUILDDIR/tmp/sysroots/ 37rm -rf "$STAGING_DIR"
28 38
29# The stamps that said the sysroot was populated 39# The stamps that said the sysroot was populated
30rm -rf $BUILDDIR/tmp/stamps/*/*/*.do_populate_sysroot.* 40rm -rf "$STAMPS_DIR/*/*/*.do_populate_sysroot.*"
31rm -rf $BUILDDIR/tmp/stamps/*/*/*.do_populate_sysroot_setscene.* 41rm -rf "$STAMPS_DIR/*/*/*.do_populate_sysroot_setscene.*"
32 42
33# The sstate manifests 43# The sstate manifests
34rm -rf $BUILDDIR/tmp/sstate-control/manifest-*.populate-sysroot 44rm -rf "$SSTATE_MANIFESTS/manifest-*.populate-sysroot"