{"id":2230244,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2230244/?format=json","web_url":"http://patchwork.ozlabs.org/project/swupdate/patch/20260429141258.616058-2-dario.binacchi@amarulasolutions.com/","project":{"id":58,"url":"http://patchwork.ozlabs.org/api/1.1/projects/58/?format=json","name":"swupdate development","link_name":"swupdate","list_id":"swupdate.googlegroups.com","list_email":"swupdate@googlegroups.com","web_url":"https://github.com/sbabic/swupdate","scm_url":"git://github.com/sbabic/swupdate","webscm_url":""},"msgid":"<20260429141258.616058-2-dario.binacchi@amarulasolutions.com>","date":"2026-04-29T14:12:57","name":"[meta-swupdate,1/2] classes: add support for DISTRO suffix in artifact names","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"6be29df20d4e4a7bb042272a0417454925805732","submitter":{"id":83038,"url":"http://patchwork.ozlabs.org/api/1.1/people/83038/?format=json","name":"Dario Binacchi","email":"dario.binacchi@amarulasolutions.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/swupdate/patch/20260429141258.616058-2-dario.binacchi@amarulasolutions.com/mbox/","series":[{"id":502073,"url":"http://patchwork.ozlabs.org/api/1.1/series/502073/?format=json","web_url":"http://patchwork.ozlabs.org/project/swupdate/list/?series=502073","date":"2026-04-29T14:12:56","name":"Add support for stm32mp25 boards","version":1,"mbox":"http://patchwork.ozlabs.org/series/502073/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2230244/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2230244/checks/","tags":{},"headers":{"Return-Path":"<swupdate+bncBCQ4XFG47UFRB45DZDHQMGQEWO2Z7DY@googlegroups.com>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=googlegroups.com header.i=@googlegroups.com\n header.a=rsa-sha256 header.s=20251104 header.b=bRD83Kgq;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com\n (client-ip=2a00:1450:4864:20::33b; helo=mail-wm1-x33b.google.com;\n envelope-from=swupdate+bncbcq4xfg47ufrb45dzdhqmgqewo2z7dy@googlegroups.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from mail-wm1-x33b.google.com (mail-wm1-x33b.google.com\n [IPv6:2a00:1450:4864:20::33b])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5K5k0YWXz1yK5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:13:13 +1000 (AEST)","by mail-wm1-x33b.google.com with SMTP id\n 5b1f17b1804b1-48a55d82e0esf67906265e9.1\n        for <incoming@patchwork.ozlabs.org>;\n Wed, 29 Apr 2026 07:13:13 -0700 (PDT)","by 2002:a05:600c:5290:b0:489:1c03:6cce with SMTP id\n 5b1f17b1804b1-4891c03702bls86463205e9.0.-pod-prod-03-eu; Wed, 29 Apr 2026\n 07:13:05 -0700 (PDT)","from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com.\n [2a00:1450:4864:20::32d])\n        by gmr-mx.google.com with ESMTPS id\n 5b1f17b1804b1-48a7c1bc621si354905e9.1.2026.04.29.07.13.05\n        for <swupdate@googlegroups.com>\n        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n        Wed, 29 Apr 2026 07:13:05 -0700 (PDT)","by mail-wm1-x32d.google.com with SMTP id\n 5b1f17b1804b1-488a9033b2cso132413185e9.2\n        for <swupdate@googlegroups.com>; Wed, 29 Apr 2026 07:13:05 -0700 (PDT)","from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it\n (host-82-56-22-134.retail.telecomitalia.it. [82.56.22.134])\n        by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a7c2ddc65sm30476145e9.4.2026.04.29.07.13.02\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Wed, 29 Apr 2026 07:13:03 -0700 (PDT)"],"ARC-Seal":["i=2; a=rsa-sha256; t=1777471990; cv=pass;\n        d=google.com; s=arc-20240605;\n        b=OQ2IV5lI/H0vS0lmTSma7FRlVKFYWrAKcTkGFhnGU71Dyit1uY2UCwj6vb1dIjUnX/\n         uziPUcYarbjuMqgEmq/Y6NBl2UyJp4oWjEndNlnbs0rojJFJIPQCM+W2Oyku6w7VBqre\n         tzltZDXUqxb29Vofm9sN4gK1fGVKeLb7zA60Fi3Mlc0JWvBV2HiAYfj2Rf8vBugBPxg2\n         2ecoB0RNUGL7qL0dhIQ45cvAj35N9Ml3zJ6mrc9C2vfxDh2dOQ1+2pYqcsPjjGbhPV6i\n         geUL5m9wpSuCAZ9rTByyPJRMeVXTMrElmyEoML+BOx1KShXECA4wJ06KZAtygXeT2vGJ\n         MRsQ==","i=1; a=rsa-sha256; t=1777471985; cv=none;\n        d=google.com; s=arc-20240605;\n        b=T2zbx/5J2fpasB9kwc48MkcX0bSFCHWHfDkjkhOPtGKSwM3H+ZUCDbAcfdqcFjbyQH\n         2Pk1WESQptCtIdk/I+KpxjNdnvpor8edHlGXL4yfoMgbJ2UzQGr0KhoWSgkcWmjQzgwd\n         +RRXc3UFyL4t8zSX1/1U0xkVbH+5E419huj9JYZJj2bvCwcbu91f9liYBDr+h50rH0jG\n         QaNuUN9PNHEOuz5AZXZDScitaeeNOyPLskppuuRoTsx6Q+on3iJk6GrXC12mwVHpS/uk\n         prO+yCnxH6gN917JoDWKCofIzuoDeiZIeH/kIglVkhDzfNil3+18celUcdK8vtQxNpSY\n         VSdQ=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:sender:dkim-signature;\n        bh=XTVzQIkw3FzF3hC0i1u42skuSwMFpdNHHQQqnVuFuHQ=;\n        fh=2bEoGzVCV1++np5fgyDaq+N0BWelFasVkbK3MOwfj30=;\n        b=CgOHlLcZFe2DO6xy4EpFkSCXOBqQUHW+TBu8RpEEJpaz46saDmv58gaV0cWgWVvV2H\n         j62Tgdjm7piNyhtm0OOuw6TKsF3e9z0qpCxvrJ//jKwKKgHzzj5DCTRd+cvfVLXdiXn+\n         8u7oUkrjj6DvAudaccWNKdOkE9YATNmSU0YFGJiFt6Xg3xjqxboor/9gSyTxnrmtKj+c\n         Wd0rKTdowmosQzqTksYniYrxOnSDYiX/FitCckuTH2ToEIh89O8Kh3PNjUzBzdnTz0Fb\n         ttZojOBsiex7I5ZBBMqnhOkskE+O0EC2uUU5ud6q9P/pF61+SvWRf9xjlXPeH0HKC28X\n         2BjA==;\n        darn=patchwork.ozlabs.org","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:dkim-signature;\n        bh=eJStLb4cSltdYehIVlVzO4CzVIexMZLhOBmEAGRMBM0=;\n        fh=PVQ6qK/apE8apMCQLUsBZ5FgEk1zvaf7+lv3UFNLduQ=;\n        b=j1qd44PuolcJOZS3qwyoQpvSJp8TD0o3SdvNe/MbkdMt0VfctVvPJP/1veIXI6BNHZ\n         JVip97U4csFQJq2QoKP6xhS3QUQg9681ZS1FmIsJeLhiSjImitcooVBYo+jrDhXYWVaf\n         fhqzKnK9HDCg6G+ylWI+IxxQ9Puc1zH3tQ6dYgajISSWlW6FIndp3msb8snMSiUFC516\n         9JGrcbaCb7XJsiWHfZwCme4wpDQmlrByfTD1eWl8erVqO6hFTYgDIfYFsFdTxpms5cxv\n         IF075TN2eBWwJJhrBK+Ah3IG5e8FRRNYhk0eCbf1iJUVY1TP1kcr2ZOVpDfh7LIV92G1\n         TzQA==;\n        dara=google.com"],"ARC-Authentication-Results":["i=2; gmr-mx.google.com;\n       dkim=pass header.i=@amarulasolutions.com header.s=google\n header.b=\"p/h1hzrF\";\n       spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com\n designates 2a00:1450:4864:20::32d as permitted sender)\n smtp.mailfrom=dario.binacchi@amarulasolutions.com;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;\n       dara=pass header.i=@googlegroups.com","i=1; gmr-mx.google.com;\n       dkim=pass header.i=@amarulasolutions.com header.s=google\n header.b=\"p/h1hzrF\";\n       spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com\n designates 2a00:1450:4864:20::32d as permitted sender)\n smtp.mailfrom=dario.binacchi@amarulasolutions.com;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;\n       dara=pass header.i=@googlegroups.com"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=googlegroups.com; s=20251104; t=1777471990; x=1778076790;\n darn=patchwork.ozlabs.org;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :list-id:mailing-list:precedence:x-original-authentication-results\n         :x-original-sender:mime-version:references:in-reply-to:message-id\n         :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=XTVzQIkw3FzF3hC0i1u42skuSwMFpdNHHQQqnVuFuHQ=;\n        b=bRD83Kgq/k8Zw8IsNRl40HxwzS4Mqdd8kdBTAEPBOGmtCYivoBK5ogf/EFKXhxoav4\n         3rjLWUXM8GvXg1mZQ6Q0R6xHtfdrIX6fNTNBRB/7bRzMTX3j+DZpHSVZXicljU18eB7r\n         QL2f/Vq+QeFIZXk3L8ViTbWoKUmvjXekZQFbryP1hCrMmOwvjoPfzp1l6ypzGW/1JMW6\n         jysMm2o6iy0GtayDTC7+HDp0vaHIrWgMJnYu6wQG627PUlO1s9dEM4PnX5nvZ4a95nS6\n         3F0f4IRolXbsXyikSmtzm7/wuZnAo8lwNueHCUJLinmsxJf4kWMB/xfGkUfz2KS5Kcdw\n         AwIA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1777471990; x=1778076790;\n        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post\n         :x-spam-checked-in-group:list-id:mailing-list:precedence\n         :x-original-authentication-results:x-original-sender:mime-version\n         :references:in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg\n         :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=XTVzQIkw3FzF3hC0i1u42skuSwMFpdNHHQQqnVuFuHQ=;\n        b=rVQqSQxz+lWpNCyDhBo+NC4iMFM0GJ/uTcgR4jemX3tlrabwQIp9aqv/wcYcrY8yYL\n         XGtnlMHilgSW6V+YL4c3Y8jm8Xppf39Nyz/Tp25KstAR6OJ2YqqfhYgOWsJ+lXXVgh6g\n         +cobGPEa1m4njC9xi1IpDEvLqJ3FspimmOhwTZJcS/8aQbvqy0G5RheRTNvV0zQ5S+Le\n         djCn7PkwvZ5InX8C1GWLn82sE+RkJbLv2HJerYFjpeXrF6Whmyz6qGJ8LAli2zg9W/PX\n         J/EnwXQSbw6TW8AstHHiDU5iRS551um06KkPE9kByx1LgaYwFRflAew8sc/IJzwJ6JS0\n         KxMg==","Sender":"swupdate@googlegroups.com","X-Forwarded-Encrypted":"i=2;\n AFNElJ+zV3W4Pnrk9cTpMTurmLidjC/AxU9pvtTZrvHGml9NZwGaABOSttn1uG7DWNxCI5HOkm8fCSgyxQ==@patchwork.ozlabs.org","X-Gm-Message-State":"AOJu0YxmtVZzmjYokGVuT0Ku9iatSjiDFjp7rVk+r9nzGwxXZU1SEMWC\n\t0BUFeCJilMDLxq6TVllV8iB0Hl/oNWAZO/L7K7xRibxS7IDJvLGYWjcS","X-Received":["by 2002:a05:600c:17d2:b0:48a:7a10:4f3d with SMTP id\n 5b1f17b1804b1-48a7a1050c1mr60479015e9.0.1777471989534;\n        Wed, 29 Apr 2026 07:13:09 -0700 (PDT)","by 2002:a05:600c:4f11:b0:48a:76a3:2b9b with SMTP id\n 5b1f17b1804b1-48a77b19bbcmr127874085e9.17.1777471985380;\n        Wed, 29 Apr 2026 07:13:05 -0700 (PDT)","by 2002:a05:600c:8b2f:b0:48a:58ae:9933 with SMTP id\n 5b1f17b1804b1-48a77b1990dmr121806645e9.18.1777471984512;\n        Wed, 29 Apr 2026 07:13:04 -0700 (PDT)"],"X-BeenThere":"swupdate@googlegroups.com;\n h=\"AUV6zMMczcGxJodCZrsHIBvuVGfyVdd/A3QdUE56tMDk2H52DA==\"","Received-SPF":"pass (google.com: domain of dario.binacchi@amarulasolutions.com\n designates 2a00:1450:4864:20::32d as permitted sender)\n client-ip=2a00:1450:4864:20::32d;","X-Gm-Gg":"AeBDiet5YXJYVpucYAw7GLYhCshxIALRKuNsBRA11RPq7H4t2A8au/ywRr1oZ4wN3KA\n\t0ujVNCnbz84YOoqvq4MGKzI1s4915Fp/llQqQuo0h+sMRwZjZApy+j5/IkzB43uK2G0HIt/3TEv\n\tqWiDqLY1xI5NyHJ343pyQ73Y+IwS15Dwi/HOyhqKPSga4dS0o7Q2pw4rfGwGIOxdMePmJ2MUbS8\n\trH5fi9iBl9ajJHOeSvDo8XIlxPn4Me1/EwwD1xlh7NBWMEnCQ3NMlS9xxH+acPlx6Vc6gmiH0BA\n\tKgaQjq1siSlwpqtRwxMDprTpodnB9g1Qe5xhKjpBB2TC5yLxU6sRKQJchOL+aGAWasm9MgC55Yv\n\tymRqFNarUFzxEzz4BSs2j9MU3T+CHq2kwT4F30FajhBK2ZnDScbco+QvS/TkPPdAbImnQ64igJS\n\t7YDRtFbpk//C2+fPhWI1ccT+Ptz9FhJiNb4L9nlMfHbJuUc1zU8147b8augwyWrJhoaIUfOL51F\n\t6nFSjkiLHPfeli4KTlcNnHaoJqYt1/xzhjoMhKNWq9lYmGmCfcTfE6Mv+QO0iUNY8Y4GRaMu/7e\n\to7vYXJAjUQmSFD/oh43cSGqZswLC4m1PbAg=","From":"Dario Binacchi <dario.binacchi@amarulasolutions.com>","To":"swupdate@googlegroups.com","Cc":"linux-amarula@amarulasolutions.com,\n\tDario Binacchi <dario.binacchi@amarulasolutions.com>","Subject":"[swupdate] [meta-swupdate][PATCH 1/2] classes: add support for DISTRO\n suffix in artifact names","Date":"Wed, 29 Apr 2026 16:12:57 +0200","Message-ID":"<20260429141258.616058-2-dario.binacchi@amarulasolutions.com>","X-Mailer":"git-send-email 2.43.0","In-Reply-To":"<20260429141258.616058-1-dario.binacchi@amarulasolutions.com>","References":"<20260429141258.616058-1-dario.binacchi@amarulasolutions.com>","MIME-Version":"1.0","X-Original-Sender":"dario.binacchi@amarulasolutions.com","X-Original-Authentication-Results":"gmr-mx.google.com;       dkim=pass\n header.i=@amarulasolutions.com header.s=google header.b=\"p/h1hzrF\";\n       spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com\n designates 2a00:1450:4864:20::32d as permitted sender)\n smtp.mailfrom=dario.binacchi@amarulasolutions.com;\n       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;\n       dara=pass header.i=@googlegroups.com","Content-Type":"text/plain; charset=\"UTF-8\"","Precedence":"list","Mailing-list":"list swupdate@googlegroups.com;\n 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>,\n <mailto:swupdate@googlegroups.com>","List-Help":"<https://groups.google.com/support/>,\n <mailto:swupdate+help@googlegroups.com>","List-Archive":"<https://groups.google.com/group/swupdate","List-Subscribe":"<https://groups.google.com/group/swupdate/subscribe>,\n <mailto:swupdate+subscribe@googlegroups.com>","List-Unsubscribe":"\n <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>,\n <https://groups.google.com/group/swupdate/subscribe>"},"content":"Currently, only images containing the MACHINE name are supported. With\nthis change, when both SWUPDATE_IMAGES_NOAPPEND_DISTRO\nand SWUPDATE_IMAGES_NOAPPEND_MACHINE are set to 0, rootfs formatted as\n<image-name>-<DISTRO>-<MACHINE> will be searched too.\n\nThis is particularly useful for STMicroelectronics (OpenSTLinux)\nBSPs, where the generated rootfs for a selected image always\ncontains both the distro and the machine names.\n\nFor example:\n\ncore-image-full-cmdline-openstlinux-weston-stm32mp25-eval.rootfs.ext4.gz\n\nSigned-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>\n---\n classes-recipe/swupdate-common.bbclass | 5 ++++-\n classes-recipe/swupdate.bbclass        | 7 ++++---\n 2 files changed, 8 insertions(+), 4 deletions(-)","diff":"diff --git a/classes-recipe/swupdate-common.bbclass b/classes-recipe/swupdate-common.bbclass\nindex 80a5d5b2c917..a5ad10672154 100644\n--- a/classes-recipe/swupdate-common.bbclass\n+++ b/classes-recipe/swupdate-common.bbclass\n@@ -296,8 +296,11 @@ def swupdate_add_artifacts(d, list_for_cpio):\n         fstypes = (d.getVarFlag(\"SWUPDATE_IMAGES_FSTYPES\", image) or \"\").split()\n         encrypted = (d.getVarFlag(\"SWUPDATE_IMAGES_ENCRYPTED\", image) or \"\")\n         if fstypes:\n+            noappend_distro = d.getVarFlag(\"SWUPDATE_IMAGES_NOAPPEND_DISTRO\", image)\n             noappend_machine = d.getVarFlag(\"SWUPDATE_IMAGES_NOAPPEND_MACHINE\", image)\n-            if noappend_machine == \"0\":  # Search for a file explicitly with MACHINE\n+            if noappend_distro == \"0\" and noappend_machine == \"0\":  # Search for a file explicitly with DISTRO and MACHINE\n+                imagebases = [ image + '-' + d.getVar('DISTRO') + '-' + d.getVar('MACHINE') ]\n+            elif noappend_machine == \"0\":  # Search for a file explicitly with MACHINE\n                 imagebases = [ image + '-' + d.getVar('MACHINE') ]\n             elif noappend_machine == \"1\":  # Search for a file explicitly without MACHINE\n                 imagebases = [ image ]\ndiff --git a/classes-recipe/swupdate.bbclass b/classes-recipe/swupdate.bbclass\nindex 5390c9b314f1..f6e500947649 100644\n--- a/classes-recipe/swupdate.bbclass\n+++ b/classes-recipe/swupdate.bbclass\n@@ -23,9 +23,10 @@\n #     SWUPDATE_IMAGES = \"core-image-full-cmdline\"\n #     SWUPDATE_IMAGES_FSTYPES[core-image-full-cmdline] = \".ext4.gz\"\n #   For this example either a file core-image-full-cmdline-${MACHINE}.ext4.gz or a file\n-#   core-image-full-cmdline.ext4.gz gets added the swu archive. Optionally the variable\n-#   SWUPDATE_IMAGES_NOAPPEND_MACHINE allows to explicitly define if the MACHINE name\n-#   must be part of the image file name or not.\n+#   core-image-full-cmdline.ext4.gz gets added the swu archive. Optionally the variables\n+#   SWUPDATE_IMAGES_NOAPPEND_MACHINE and SWUPDATE_IMAGES_NOAPPEND_DISTRO allow to\n+#   explicitly define if the MACHINE and/or DISTRO names must be part of the image\n+#   file name or not.\n # * image file name(s)\n #   Example:\n #     SWUPDATE_IMAGES = \"core-image-full-cmdline.ext4.gz\"\n","prefixes":["meta-swupdate","1/2"]}