summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-01-25 17:43:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-04 13:17:15 +0000
commitef98ff5ba562eb710b5a6fbd181fb1c4380010b2 (patch)
tree46f54ad1c235e4bcd8af5de44ded967ba1dfa8a7
parent94557b500ad38a49aec40629015ed0b24e167f76 (diff)
downloadopenembedded-core-ef98ff5ba562eb710b5a6fbd181fb1c4380010b2.tar.gz
openembedded-core-ef98ff5ba562eb710b5a6fbd181fb1c4380010b2.tar.bz2
openembedded-core-ef98ff5ba562eb710b5a6fbd181fb1c4380010b2.zip
scripts/wipe-sysroot: add script to safely wipe the sysroots
Add a script to wipe the sysroots and all of the relevant stamps, so that it will be correctly re-populated. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rwxr-xr-xscripts/wipe-sysroot34
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/wipe-sysroot b/scripts/wipe-sysroot
new file mode 100755
index 0000000000..e751a91e92
--- /dev/null
+++ b/scripts/wipe-sysroot
@@ -0,0 +1,34 @@
+#! /bin/sh
+
+# Wipe out all of the sysroots and all of the stamps that populated it.
+# Author: Ross Burton <ross.burton@intel.com>
+#
+# Copyright (c) 2012 Intel Corporation
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+if [ -z "$BUILDDIR" ]; then
+ echo >&2 "Error: BUILDDIR is not defined, please initialise the build system."
+ return 1
+fi
+
+# The sysroots themselves
+rm -rf $BUILDDIR/tmp/sysroots/
+
+# The stamps that said the sysroot was populated
+rm -rf $BUILDDIR/tmp/stamps/*/*/*.do_populate_sysroot.*
+rm -rf $BUILDDIR/tmp/stamps/*/*/*.do_populate_sysroot_setscene.*
+
+# The sstate manifests
+rm -rf $BUILDDIR/tmp/sstate-control/manifest-*.populate-sysroot