diff options
-rwxr-xr-x | scripts/wipe-sysroot | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/scripts/wipe-sysroot b/scripts/wipe-sysroot deleted file mode 100755 index 5e6b1a4e2a..0000000000 --- a/scripts/wipe-sysroot +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
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 | |||
21 | set -e | ||
22 | |||
23 | if [ $# -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 | ||
27 | fi | ||
28 | |||
29 | ENVS=`mktemp --suffix -wipe-sysroot-envs` | ||
30 | bitbake -p -e > $ENVS | ||
31 | |||
32 | eval `grep -F SSTATE_MANIFESTS= $ENVS` | ||
33 | eval `grep -F STAGING_DIR= $ENVS` | ||
34 | eval `grep -F STAMPS_DIR= $ENVS` | ||
35 | rm -f $ENVS | ||
36 | |||
37 | if [ -z "$SSTATE_MANIFESTS" -o -z "$STAGING_DIR" -o -z "$STAMPS_DIR" ]; then | ||
38 | echo "Could not determine SSTATE_MANIFESTS/STAGING_DIR/STAMPS_DIR from bitbake, check above for errors" | ||
39 | exit 1 | ||
40 | fi | ||
41 | |||
42 | echo "Deleting the sysroots in $STAGING_DIR, and selected stamps in $SSTATE_MANIFESTS and $STAMPS_DIR." | ||
43 | |||
44 | # The sysroots themselves | ||
45 | rm -rf $STAGING_DIR ${STAGING_DIR}-uninative | ||
46 | |||
47 | # The stamps that said the sysroot was populated | ||
48 | rm -rf $STAMPS_DIR/*/*/*.do_populate_sysroot.* | ||
49 | rm -rf $STAMPS_DIR/*/*/*.do_populate_sysroot_setscene.* | ||
50 | rm -rf $STAMPS_DIR/*/*/*.do_packagedata.* | ||
51 | rm -rf $STAMPS_DIR/*/*/*.do_packagedata_setscene.* | ||
52 | |||
53 | # The sstate manifests | ||
54 | rm -rf $SSTATE_MANIFESTS/manifest-*.populate_sysroot | ||