aboutsummaryrefslogtreecommitdiffstats
path: root/classes/clean.bbclass
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-06 14:27:59 -0700
committerChris Larson <chris_larson@mentor.com>2010-04-06 14:28:16 -0700
commit03983dc2b0b4a95ae53b715ac7c05181be5ce25d (patch)
treec909f23529e306fd39f8fe6089fa641bf51f8246 /classes/clean.bbclass
parent17604d29b952ae5be48d8d2617d4b91bbe107d84 (diff)
downloadopenembedded-03983dc2b0b4a95ae53b715ac7c05181be5ce25d.tar.gz
clean.bbclass: add pstage bits, for use with srctree
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes/clean.bbclass')
-rw-r--r--classes/clean.bbclass7
1 files changed, 7 insertions, 0 deletions
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)