summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/sstate.bbclass1
-rw-r--r--meta/classes/staging.bbclass7
2 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index d7d30c0121..4435abc347 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -238,7 +238,6 @@ def sstate_clean(ss, d):
238 238
239 oe.path.remove(d.getVar("STAMP", True) + ".do_" + ss['task'] + "*") 239 oe.path.remove(d.getVar("STAMP", True) + ".do_" + ss['task'] + "*")
240 240
241SCENEFUNCS += "sstate_cleanall"
242CLEANFUNCS += "sstate_cleanall" 241CLEANFUNCS += "sstate_cleanall"
243 242
244python sstate_cleanall() { 243python sstate_cleanall() {
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index 718b2f1f25..a713734c3f 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -65,6 +65,12 @@ SYSROOT_PREPROCESS_FUNCS ?= ""
65SYSROOT_DESTDIR = "${WORKDIR}/sysroot-destdir/" 65SYSROOT_DESTDIR = "${WORKDIR}/sysroot-destdir/"
66SYSROOT_LOCK = "${STAGING_DIR}/staging.lock" 66SYSROOT_LOCK = "${STAGING_DIR}/staging.lock"
67 67
68# We clean out any existing sstate from the sysroot if we rerun configure
69python sysroot_cleansstate () {
70 ss = sstate_state_fromvars(d, "populate_sysroot")
71 sstate_clean(ss, d)
72}
73do_configure[prefuncs] += "sysroot_cleansstate"
68 74
69python do_populate_sysroot () { 75python do_populate_sysroot () {
70 # 76 #
@@ -92,7 +98,6 @@ python do_populate_sysroot_setscene () {
92} 98}
93addtask do_populate_sysroot_setscene 99addtask do_populate_sysroot_setscene
94 100
95
96python () { 101python () {
97 if bb.data.getVar('do_stage', d, True) is not None: 102 if bb.data.getVar('do_stage', d, True) is not None:
98 bb.fatal("Legacy staging found for %s as it has a do_stage function. This will need conversion to a do_install or often simply removal to work with Poky" % bb.data.getVar("FILE", d, True)) 103 bb.fatal("Legacy staging found for %s as it has a do_stage function. This will need conversion to a do_install or often simply removal to work with Poky" % bb.data.getVar("FILE", d, True))