Explorar o código

swupdate-image: do not rely on IMAGE_LINK_NAME

IMAGE_LINK_NAME was changed since scarthgap and this mismatches with the
class. Use IMAGE_BASENAME instead.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Stefano Babic hai 1 ano
pai
achega
c9cbca5442
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      classes-recipe/swupdate-image.bbclass

+ 2 - 2
classes-recipe/swupdate-image.bbclass

@@ -16,10 +16,10 @@ inherit image-artifact-names
 S = "${WORKDIR}/${PN}"
 
 SRC_URI += "file://sw-description"
-SWUPDATE_IMAGES += "${IMAGE_LINK_NAME}"
+SWUPDATE_IMAGES += "${IMAGE_BASENAME}"
 
 python () {
-    image = d.getVar('IMAGE_LINK_NAME')
+    image = d.getVar('IMAGE_BASENAME')
     if d.getVarFlag("SWUPDATE_IMAGES_FSTYPES", image) is None:
        flag = d.getVarFlag("SWUPDATE_IMAGES_FSTYPES", d.getVar('IMAGE_BASENAME'))
        if flag: