Message ID | 20241111093247.202588-1-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBD2ZDGN6SEKRBRU6Y64QMGQES4RKPWY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=Acqj/XBh; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::137; helo=mail-lf1-x137.google.com; envelope-from=swupdate+bncbd2zdgn6sekrbru6y64qmgqes4rkpwy@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lf1-x137.google.com (mail-lf1-x137.google.com [IPv6:2a00:1450:4864:20::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Xn48s6HD4z1xty for <incoming@patchwork.ozlabs.org>; Mon, 11 Nov 2024 20:33:00 +1100 (AEDT) Received: by mail-lf1-x137.google.com with SMTP id 2adb3069b0e04-539e4cd976dsf2826001e87.0 for <incoming@patchwork.ozlabs.org>; Mon, 11 Nov 2024 01:33:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1731317576; cv=pass; d=google.com; s=arc-20240605; b=fSZGIX+E8+oT3WdsCJ0YkjPhLJTbOA01q+6PvL8+luSIdxEy/FDuc9bSC1gJC0QFuQ ycfdVvNPTWVH/45FqecPKqZ0lnolyJOIfaeXwo/WTF7/AM2DKrbsk/YiHFAub5Ay4Dab FvopfvhcuHnM8nTjrwoftKZTnD8RnttSJigtijlVR9TmRUfOUE6k5xy/iUM0wuWQEFW4 jUJBXhPHbfViADQj+bd6wAjK731/G5dX2T0T5iSDCy1zOiiEXildog8m1Q761+UARbFa LB2tSSuA4BUYYXtGUMbmqXtj+Bs7+0yyCgJrs2eRsm3Embqn+NF/9AVIeJHjdgkeTbO4 BlOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:ui-outboundreport:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=CeF4bzGe2FMguAEumLYtIF8/4zbLj/dRURqYel71zow=; fh=6HpFXbZXtWxttzaNanhS1WIRnGF9wVB9G30frv2bvos=; b=hq3X+zOC/cfAyRSx8iQXUFYy9Mj8p1ridmI//ax+LUjwk72CF0dD/rShFkD4yqj9n+ ojIMSYop363je0stOwGP3DgYu3D3tgBNACsOE/MMNZKmRRt7uRtrZQlpE4JqkPH6BKEe uPy7hbrXKsWv++vGFiFvSy6jqGZ9REn4jBQMjLepdj5DtzBvuHLAjtmnJEVHMl8jlqMT jYJjc78ZvxUwRGQPF4eybCrhRm4QgrPjeNDrjY+YlJJdNBH8VecqfjR1Ve8aBRAbRGfM dpTVASxcE75M20Qq3j/419+fRsH9dWzrID4Q2k6bEH9ToVNcPNpsmcb0m1/uNELIcIWJ Z53Q==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=X8ksvty1; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1731317576; x=1731922376; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:ui-outboundreport:mime-version:message-id:date :subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=CeF4bzGe2FMguAEumLYtIF8/4zbLj/dRURqYel71zow=; b=Acqj/XBhBHcSDo2SQ+XylISy2zPbZtpVvCzSO+v+VR3pB9vqvvOcJOyF7KjOlTFYml AlpqfBgb+unIklm+EVmINHxpAbJA1dfASl7ylT/JtWmRn3LeVJg/pmO0qS2E984vWxvt QgVEDAZmq0H/IW0mkBVVnBmTTR58Ig1JVY1yw2//++qPW2BHui3uuaN2qr7HcgEwb2E2 C6mfb9nfk1GrbwG5jkVCFBszNJIS/wI13Ok5xwA2iXvu1ziU/3zPyYoiJqXJ+i37EkPm PrObKGC1A5UMuvLKXPEcQ3f6vKyG4OAYrIwkyNDCcQXts6QI6zQABdoO1GFuEqPbdODC wPkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731317576; x=1731922376; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :ui-outboundreport:mime-version:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=CeF4bzGe2FMguAEumLYtIF8/4zbLj/dRURqYel71zow=; b=GOG22j800uZr6ZIyq7b96DiC7FcEtVHkUhxwzZL6xpOgeOAEvTzVLv3HVQOpVigGoW 9hAEGBzTp2x2jLbG3KO3J3yEUoE/n6mf5FMjwMAve0g1kVuL8L8vum49J7HB0q0C/qJL hXpW8CeIjkxvUR3rS9aFRB9oql1Xmk3xOM8n0MMmeCGbvDA7sPqBUke4hcbUvBWA3k1n wFwfDyuX89EYkC3IFeJmrX3wPkBADVLl5sOZGDzat7vw/hnLuPB8jGER/fnRdQpI7HSk e91YTgrTmG8dSv0yxqDz1fPv/LTFwDA7QNKFTcdDh3Zwvogbt5TVcBZy+jSQXKLI7hLR KNEA== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCX0q4eEihOI6yPMf4bFE4Z9gMqIkWLbzHAJxnToNHX1zh8pqbuf2ejfUHmMDf8WecbgV5hbYroj2g==@patchwork.ozlabs.org X-Gm-Message-State: AOJu0Yyf5FIBgZKa73LUIbJasZVeCxJInkCgoK7Ke5Kf5onUdv1i242d avtkBxPxCU8z8TUPXhxeDzdajnnHSU8kl2DEOQvoR7hRB8Cbn3+/ X-Google-Smtp-Source: AGHT+IHuJ6AeV9GVllfgLMqS8w/rOrRaQhZZJ818JdsgdKvps4YJG15BclXL4Lt03yBK5M5SujgIHg== X-Received: by 2002:a05:6512:110d:b0:536:5625:511a with SMTP id 2adb3069b0e04-53d86278985mr5239241e87.47.1731317575691; Mon, 11 Nov 2024 01:32:55 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:ac4:b0:53c:5873:6327 with SMTP id 2adb3069b0e04-53d8177a239ls114502e87.1.-pod-prod-01-eu; Mon, 11 Nov 2024 01:32:52 -0800 (PST) X-Received: by 2002:a05:6512:b9c:b0:539:fb7f:6288 with SMTP id 2adb3069b0e04-53d8626cb10mr5260490e87.35.1731317572062; Mon, 11 Nov 2024 01:32:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731317572; cv=none; d=google.com; s=arc-20240605; b=Uok5gFfi9hZ15jI+vk9YKOiYrShrkRlYQjLVsxiIg45+H33EO/2EQeTl8+b58HPWIJ z3egeNTsx5Tv+wp9slmBxO/eOr8WriF+cJxz/7k3FIRVkoi4j9lezQ9SDnM4kQjU+vq+ /SwMDj8y4FvmEvyfRiYG3YxuASAQhcFan4b0JfjHUzC4+xjwaqoNEPUUS06MYXTBiF2m uGqd0NdQLgFz/f6lLr6py9Ra5OMsRrTWAY6MqHCL8BZYQ+OpOaR91k5aMWrzn1XqpTWt TREHu8pynyNXQnW1JALBTQDVWocYZ/GkJUjnJYD5MdzMjW+CfB1WBKKH44Cec5fS1YYj cwnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=ui-outboundreport:content-transfer-encoding:mime-version:message-id :date:subject:cc:to:from:dkim-signature; bh=jclWitr3aGPfrkgAn02PGwYqsaKMrMgNT6kqfpchreg=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=dtlP4TOF/N5m1tMv3D21OFtDCC/yniZTzh4kwj4zyeY9FxBHrHKCdTruDITaVUwllI 4Z1jIWRk9OciBxzRnyGuijAHqOczBvPGUZ8n4IjgbBxuEBgR0yHoViyMw8HhqNimpsFh 5415T/2KkC9x/KbfjOxKPOqhy+tmZwMBioeBR0TSmfPdOEgbSpoUvVh1m+RU0NPu7sdy vwxZVR5x0b+0D4HykOJ8p7GnNDD05Ny7d0BuMsCXECiQWbyW8q5bKtl+937zqJVWRVim b6POqrY8PEZ8QUdGuhL6m5vFjs1+95flIfInEFSnPmX1YPC7pW/eW/nB2pSpJ1H+tVbB 4tSw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=X8ksvty1; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [217.72.192.75]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-53d826a7c37si174671e87.9.2024.11.11.01.32.51 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 01:32:51 -0800 (PST) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) client-ip=217.72.192.75; X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from paperello.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1M6DOg-1t8Ew704CW-0040pI; Mon, 11 Nov 2024 10:32:51 +0100 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [meta-swupdate][PATCH] Use IMAGE_NAME_SUFFIX in the artifact name Date: Mon, 11 Nov 2024 10:32:47 +0100 Message-ID: <20241111093247.202588-1-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:TBDqzhmvqFCri/DK8gPHJgbcIfhitTA2mM0fVikZqLfu5ABc4kc 3sY8oPkKqcVVzh9nIimv3Gqg/gUUqzaMaREvf7DOemo7ggfjjJ5ntMIVyXiJL7SiO10H3+0 ZOZ9sTKN3WUai4l1A+Tn/uySBYXCQ2R6p5cnizwyKN+fg7If/SQmRUP3+p35/K8x4ombMlc KkYPqnCpdNUekxkjI3PnA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:1oEWqBaiaIY=;apF/1W3GXHSNVJdDBzjOk0Kthfp iLvG88oV5z1u8VMDEGbDAojfBCbjyKGhz62ygHrZ0IMVqWysYbQlBwOcJhbr5k7RgadrYapxV gTNrZoeWWs0NuiFNKrqua0RTqv7yOQLKD3/ZGeLbBFv7sePG2maUn9+Tg+lddmrYJ9WvjWCJ7 TACEF4L5gK0wpwKJ0XlZA1k1FcBBqsm04NGfof4lhXf0uFdt+WEYfKY9BtnOcd6jNFbeFe7gR wVLUW1tip1a3rLxNGmghV2JteHjKs06vDmY5WpWqp7lzkYoZBPkDlkraXE3F3SGUKX6u+/9GA 0FnBTOrLXtugd1Zex5J7TbQx9PpspFsEp8Qg4nbd4b2ZouPz4G5SK0/Pno4jwPZrMhJZcZicY a41+Uu0Jz7k3XI58uHEwmU3gSmTpFNAqi7a8lFnTL8/jGSiuyGiTXBycp67er1qIRkqIZhoOh PTO1DSZp5tMiZwbYklxVujZA2LDayu9203jZys4CeUBL6k/TUccN/B+rytrLqxNhRi7DOElS6 +O9XO61Et+yh1l745s/POVe0MJrAaLVZRkHsWsnqiIO3aIE510ofCJa5Px7UQrIvRYWe2951D Boey6AlpeV/Ztgkill1dmyY7IQOw/2c5VoxnNm7PSGeobtriXUFl0eS4ujeDlqH7RppE41YH+ dfb1QUAaw6zNl3goqEaD3ru6OxQ8gsKg4oABFDpfkyc64lTydiWKHyiZo/68BmKH2cHZRj36K kfLBZJ0AV0QUh+c4sX8wGgvzmCz31TNTA== X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=X8ksvty1; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
[meta-swupdate] Use IMAGE_NAME_SUFFIX in the artifact name
|
expand
|
diff --git a/classes-recipe/swupdate-image.bbclass b/classes-recipe/swupdate-image.bbclass index 0ca7b2d..32afc1f 100644 --- a/classes-recipe/swupdate-image.bbclass +++ b/classes-recipe/swupdate-image.bbclass @@ -20,7 +20,9 @@ SWUPDATE_IMAGES += "${IMAGE_BASENAME}" python () { image = d.getVar('IMAGE_BASENAME') - if d.getVarFlag("SWUPDATE_IMAGES_FSTYPES", image) is None: + t = d.getVarFlag("SWUPDATE_IMAGES_FSTYPES", image) + suffix = d.getVar("IMAGE_NAME_SUFFIX") or "" + if t is None: flag = d.getVarFlag("SWUPDATE_IMAGES_FSTYPES", d.getVar('IMAGE_BASENAME')) if flag: d.setVarFlag("SWUPDATE_IMAGES_FSTYPES", image, flag) @@ -30,8 +32,10 @@ python () { bb.fatal("SWUPDATE_IMAGES_FSTYPES[%s] is not set !" % image) for t in fstypes: bb.warn("SWUPDATE_IMAGES_FSTYPES[%s] not set, setting to %s" % (image, t)) - d.setVarFlag("SWUPDATE_IMAGES_FSTYPES", image, "." + t) + d.setVarFlag("SWUPDATE_IMAGES_FSTYPES", image, suffix + "." + t) break + else: + d.setVarFlag("SWUPDATE_IMAGES_FSTYPES", image, suffix + t) } python do_swupdate_copy_swdescription() {
Since scarthgap, IMAGE_NAME_SUFFIX is set as default and this causes breakages because the suffix must be added to SWUPDATE_IMAGE_FSTYPES, else the artifact is not found. Fix this by adding the suffix to the artifact name. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- classes-recipe/swupdate-image.bbclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) -- 2.43.0