Bläddra i källkod

Merge pull request #22 from petermarko/fix/sstate-handling

Fix/sstate handling

Signed-off-by: Stefano Babic <sbabic@denx.de>
Stefano Babic 3 år sedan
förälder
incheckning
f853505464
2 ändrade filer med 7 tillägg och 1 borttagningar
  1. 1 1
      classes/swupdate-common.bbclass
  2. 6 0
      classes/swupdate-image.bbclass

+ 1 - 1
classes/swupdate-common.bbclass

@@ -11,7 +11,7 @@ DEPENDS += "\
 
 do_swuimage[umask] = "022"
 SSTATETASKS += "do_swuimage"
-SSTATE_SKIP_CREATION_task-swuimage = '1'
+SSTATE_SKIP_CREATION:task-swuimage = '1'
 SWUDEPLOYDIR = "${WORKDIR}/deploy-${PN}-swuimage"
 
 do_swuimage[dirs] = "${SWUDEPLOYDIR}"

+ 6 - 0
classes/swupdate-image.bbclass

@@ -51,6 +51,12 @@ python do_swupdate_copy_swdescription() {
 addtask swupdate_copy_swdescription before do_image_complete after do_unpack
 addtask swuimage after do_swupdate_copy_swdescription do_image_complete before do_build
 
+# define setscene task
+python do_swuimage_setscene () {
+    sstate_setscene(d)
+}
+addtask do_swuimage_setscene
+
 # Read all variables from sw-description file and add them to the vardeps of the do_swuimage task. Bitbake
 # cannot know that the do_swuimage task which evaluates the templated sw-description file needs to be executed
 # if a variable which is refered by the sw-description file but not by the recipe itself.