wipe-sysroot 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. #! /bin/sh
  2. # Wipe out all of the sysroots and all of the stamps that populated it.
  3. # Author: Ross Burton <ross.burton@intel.com>
  4. #
  5. # Copyright (c) 2012 Intel Corporation
  6. #
  7. # This program is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License version 2 as
  9. # published by the Free Software Foundation.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. # See the GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. if [ -z "$BUILDDIR" ]; then
  20. echo >&2 "Error: BUILDDIR is not defined, please initialise the build system."
  21. return 1
  22. fi
  23. # The sysroots themselves
  24. rm -rf $BUILDDIR/tmp/sysroots/
  25. # The stamps that said the sysroot was populated
  26. rm -rf $BUILDDIR/tmp/stamps/*/*/*.do_populate_sysroot.*
  27. rm -rf $BUILDDIR/tmp/stamps/*/*/*.do_populate_sysroot_setscene.*
  28. # The sstate manifests
  29. rm -rf $BUILDDIR/tmp/sstate-control/manifest-*.populate-sysroot