summaryrefslogtreecommitdiffstats
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:18:28 +0000
commitca976824bf48bbfa09a82bf4738ca3aff09b4dec (patch)
treea4d8532dfc09a773ac2292d3129d4f2ee5b31ada
parent4872ba3ee47c92a4a2e350ba6c9f2738929e4ad0 (diff)
downloadpoky-ca976824bf48bbfa09a82bf4738ca3aff09b4dec.tar.gz
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. (From OE-Core rev: ef98ff5ba562eb710b5a6fbd181fb1c4380010b2) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 @@
1#! /bin/sh
2
3# Wipe out all of the sysroots and all of the stamps that populated it.
4# Author: Ross Burton <ross.burton@intel.com>
5#
6# Copyright (c) 2012 Intel Corporation
7#
8# This program is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License version 2 as
10# published by the Free Software Foundation.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15# See the GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
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
20
21if [ -z "$BUILDDIR" ]; then
22 echo >&2 "Error: BUILDDIR is not defined, please initialise the build system."
23 return 1
24fi
25
26# The sysroots themselves
27rm -rf $BUILDDIR/tmp/sysroots/
28
29# The stamps that said the sysroot was populated
30rm -rf $BUILDDIR/tmp/stamps/*/*/*.do_populate_sysroot.*
31rm -rf $BUILDDIR/tmp/stamps/*/*/*.do_populate_sysroot_setscene.*
32
33# The sstate manifests
34rm -rf $BUILDDIR/tmp/sstate-control/manifest-*.populate-sysroot