From: Chris Larson Date: Tue, 6 Apr 2010 21:27:59 +0000 (-0700) Subject: clean.bbclass: add pstage bits, for use with srctree X-Git-Tag: Release-2010-05/1~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03983dc2b0b4a95ae53b715ac7c05181be5ce25d;p=openembedded.git clean.bbclass: add pstage bits, for use with srctree Signed-off-by: Chris Larson --- diff --git a/classes/clean.bbclass b/classes/clean.bbclass index 65c1ab5d76..fc53a63f97 100644 --- a/classes/clean.bbclass +++ b/classes/clean.bbclass @@ -46,6 +46,13 @@ __do_clean_make () { } python do_clean () { + if bb.data.getVar("PSTAGING_ACTIVE", d, 1) == "1": + removepkg = bb.data.expand("${PSTAGE_PKGPN}", d) + pstage_cleanpackage(removepkg, d) + + stagepkg = bb.data.expand("${PSTAGE_PKG}", d) + bb.note("Removing staging package %s" % base_path_out(stagepkg, d)) + os.system('rm -rf ' + stagepkg) clean_stamps(d) clean_workdir(d) clean_builddir(d)