[oe-commits] Chris Larson : clean.bbclass: add pstage bits, for use with srctree

git version control git at git.openembedded.org
Tue Apr 6 21:28:40 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 03983dc2b0b4a95ae53b715ac7c05181be5ce25d
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=03983dc2b0b4a95ae53b715ac7c05181be5ce25d

Author: Chris Larson <chris_larson at mentor.com>
Date:   Tue Apr  6 14:27:59 2010 -0700

clean.bbclass: add pstage bits, for use with srctree

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 classes/clean.bbclass |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/classes/clean.bbclass b/classes/clean.bbclass
index 65c1ab5..fc53a63 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)





More information about the Openembedded-commits mailing list