From patchwork Fri Feb 13 07:40:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Mikanovich X-Patchwork-Id: 340 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 13 Feb 2026 08:40:59 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f64.google.com (mail-ed1-f64.google.com [209.85.208.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 61D7ewRc026904 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 13 Feb 2026 08:40:59 +0100 Received: by mail-ed1-f64.google.com with SMTP id 4fb4d7f45d1cf-65813cc7ef5sf480187a12.2 for ; Thu, 12 Feb 2026 23:40:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1770968453; cv=pass; d=google.com; s=arc-20240605; b=EVMMj0nteZgremB+k8IrgVHss5sS36/bl0cvlX8XNAt/IDoWtjquT+DLKP/BnQR8mW paHR149ggGvyRg+7LD6uHqpxXqmUX5VUHsnS3CeDATG2vxb3aDicMSf4lChVTATJGcjH 1uN0NNZsl4Sl4yjOVwI5w1FImQa+tsnHsRC3W4SWfCPr8pMBNBgwikAaH9pMLtfs4Ieh hML1ljEUPgFxgcnYKu6nH9fbPJqyRVZlTcaWOZCpR+VyTEqhE1oAU36UxTSJk6Nm9VcA RCGQw9xfUsMXmZ3cIr0jJgFK4vm/+j4lPGAgL5gP3WV31uobMXN1bE0wYrglrmqB7uEQ vl+A== 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:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=DgDyL0TxlhH/CtXaT+THnH//d83jPu3LgDYvLR1H18U=; fh=HQs0TG71MXqpfhEsflqgsM/8Hzg3qkb9N/wMPVrq0O8=; b=FL2JilCTEYzcXYz4aocxjOo7KgED6KZo8Kccx+CgX/ue87Xcc2XyPnhZGMd2pAtaNe S9umPH4YOxmgWxRFUZSEIrKKMcb0Q17Y6ViFMjARumFVYrv/n6KbheJxDUId6GEWNVCn sZqpYaxWzqxcj4UsblqbIw0QIpzFCKMoTpGyUmgxmWl0+1s/CoOIP4AQjbUxc3a40Yjr yQixeI23NMxBvCjhb0CXKGqvohoWmmHANQw2DBF8nRk9u2q8/RWgbQviE+Wia5QM/eU2 PCRZyMzopDhAX5AjZJLnJRtLLyjEsVgexqgIcVx86zo9jrEPZMxs3pYRrvisiAfg8B4k 1kSw==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1770968453; x=1771573253; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=DgDyL0TxlhH/CtXaT+THnH//d83jPu3LgDYvLR1H18U=; b=i+Lay/Cu/6ggPArEo+tb/GPmRMkygs1ZebVvYAIH3dLFq195b5m1j+DWNhsOJDv8IK oDYCZUKf2XE3ZH6D2oHj2CYVf37XBTVh6g5+0qffwV8Br1UrdQWAgEPktux4F5A80LFX EnFrbfX9gIEnGnkMsoWQkJ0AV0neuEX56TgJrtLrKzwUUtQHn5ykOwbZtlKNTwdd1Bjk 7rKeCSEOklXvJfHaVh0a/hi2GEYn7JCXwHvsQMg/gGWhcShX+aGO6zKS6b33l158V1Ou Z+9+D/Xkuq/rOhRRnrUVLUYkUh48b4L/SZMHjXW64K6zY2a9QkI8zE3E1FAL6/6jCP9Z 51XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770968453; x=1771573253; 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: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=DgDyL0TxlhH/CtXaT+THnH//d83jPu3LgDYvLR1H18U=; b=bCAf/UyIE2nQErHaYLncVkBUPX4I/P88ZlwhYBM/h3OcJ9z73IzeSmMSF7pNeCuqiG U3pW6+7M4CZWmMU2BT2PbpV2+ttuQdr5iLp1XFGcBrp16hf1E2Hs2kI2SQNpBlHDXBfE XGxtMkUHo5Kd6ks01lNwk14T8vPh5MgbFZl0r2Zmvb3EEijH5tmJZpI/cP3AE4dITrxC 6CQxYYm6KSb7BIU2Iv24SjZ3wiSPGZjTqPnXnvZCtG54BUYrNNTvG3Wnd7E51M+t4DUC iO7LjN24LtwmQfp1D1R8s+v4ZwK+vZBsnZlGCVmwJnlN5E0f02/9xuXFqFCpjksee87L x5IQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVXqVP7Z/dIfW+OJFeiy/DC0D1wvftnpB5RjnvQb2bvV4dJw0qqf2v1n+jojxnbFV7KlSEWyRg=@isar-build.org X-Gm-Message-State: AOJu0Yyy6KS5Mf4DDIin//wDQks+B60njF3RvtCAO6mX2itVvfTIW2zp cuuUH1JuOMmUwOJJWw2HMAavfWgeGabndJ/jt4WXWFszxNZRyJqfb8Cz X-Received: by 2002:a05:6402:1466:b0:65a:cdfb:58b2 with SMTP id 4fb4d7f45d1cf-65bb116cbc3mr384326a12.16.1770968453030; Thu, 12 Feb 2026 23:40:53 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="AV1CL+EG4J2Q0Wt1K/AAHRTSjnojL+63JWKcscFe/pDk0c4TLg==" Received: by 2002:a05:6402:b0a:b0:65b:a5bc:a4f6 with SMTP id 4fb4d7f45d1cf-65ba5bca7b6ls1182740a12.1.-pod-prod-07-eu; Thu, 12 Feb 2026 23:40:51 -0800 (PST) X-Received: by 2002:a17:906:f59b:b0:b88:4e52:bfb6 with SMTP id a640c23a62f3a-b8fb4559225mr40412466b.56.1770968450874; Thu, 12 Feb 2026 23:40:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770968450; cv=none; d=google.com; s=arc-20240605; b=IMhXQOlwO/KsfmBLt6T8VCbSB2f1cDrHZHfN6EFcX+s7Brz3Kh+h2b33/lb/+VKZKa KMHnhLOaIEjaSXIYpVoYyylS9D4R+7GdvMvN8Uncp0Fi8mHzGhpi28gaBNihcLtNOg6h b4xypBJ/fFe0UoKa6wCFqm3uX45pinCxtYjUVqzB6MQFFIytTr8V99T4pAiAlEBafMHX lwcS+y5s8mVukaYaXypzNgXCxG3xMcl3XvYw2BPTwJPtpoMTLEm4yilk7w6AJKhkqoIK NeoLjDTx2b+Gt6NZ1m1l43o/mr+GFmuRAfeoA08BS6OV+c/spVwoxxf7wspWUAiF9ESj EZug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=6kpCA9XrDpqT0ncFMxtzNlkmixw/wwWnLfdnLXEnM6c=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=YX19AljKPMSQqVMhxsd+HzUt/Zubk17fzzCagf3gM/uKHQDjSaWC5BAsdKNipUp/8V Fi4CDOuHnayuBg0aJ2hrsR6X0H16VL1YitZAIrEMpuAOrR/IMzfvEmsfi5oxdk23my8j TU1tatdnzWz1Ou6i1bY8xMH0Jpvwy2qsB1tjWHfsBvNlH1msmp8wuw0aUCLmtOBYpT/e U4zkqW/pt5QkYI8em4Ms5w6VYoG/W/i3+iYnUDk8pz2WG7Zr8AXLEUjLKWol+adI0ruz cPlKN09NTZWKfvilfe80dLK//hlze6AbIv77My/KjNQHZlwuZg2coE6St1wz3xDEdETW BTVg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id a640c23a62f3a-b8fa86e4e70si5051266b.1.2026.02.12.23.40.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Feb 2026 23:40:50 -0800 (PST) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from user-B660.promwad.corp ([159.148.83.123]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 61D7enLt026889 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Feb 2026 08:40:49 +0100 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v6 0/4] Deploy DTBs with separate recipe Date: Fri, 13 Feb 2026 09:40:38 +0200 Message-Id: <20260213074042.76277-1-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= Image task "do_copy_boot_files" is used to deploy kernel, initrd and devicetree binaries to deploy directory. When different images for the same target are built (e.g., "-base" and "-debug") in parallel, this causes issues with DTB deployment since they have no any image_name-specific stuff in the path, unlike kernel and initrd. Here we make a separate recipe responsible for the DTB deployment. DTBs are extracted from the kernel package (provided by distro or self-built). The recipe 'dtb-files' is MACHINE-dependent, so different DTB_FILES may be deployed for different machines. At the same time, all these 'dtb-files-${MACHINE}' targets depend on the same kernel package, so it is built only once. The case when different distros (e.g., bullseye/bookworm) are using the same name for DTB binaries is covered by the patch 3. It also covers the case when image uses different kernel suffix (e.g., "realtime" option for the kernel in some downstreams). Related topics on maillist: https://groups.google.com/g/isar-users/c/ht3YmKZcJlM https://groups.google.com/g/isar-users/c/4BRDM02xC40 https://groups.google.com/g/isar-users/c/qAnjahjjfsw https://groups.google.com/g/isar-users/c/ZMD4XY4dKWQ https://groups.google.com/g/isar-users/c/PSGU_AcdPZ8 https://groups.google.com/g/isar-users/c/Va0Ue-ISYeA https://groups.google.com/g/isar-users/c/ixzytHYnTmI Changes since v6: - Fix isoimage-isohybrid-isar WIC plugin. - Split testcases. - Update wording. Changes since v4: - Rebase on next. - Squash latest patch to first one. - Fix deploy paths in initrd tests. Changes since v3: - Rebase on next. - Fix target deploy dir path for installer. Changes since v2: - Patch 1: Consider also kernel suffix. - Patch 2: Use separate testcase for possible dtb clashes. - Minor cosmetic fixes. Changes since v1: - Separate `dtb-files` recipe used instead of linux one - Included older "[PATCH] Fix do_copy_boot_files error" into the series ( https://groups.google.com/g/isar-users/c/Va0Ue-ISYeA ) Anton Mikanovich (2): wic: Obtain real machine name in isoimage source plugin testsuite: Add testcases to check dtb deployment Ilia Skochilov (1): meta: Fix do_copy_boot_files error for different distros of same machine Uladzimir Bely (1): meta: Deploy DTBs once per kernel RECIPE-API-CHANGELOG.md | 15 +++++++ .../installer-add-rootfs.bbclass | 4 +- meta/classes-recipe/image.bbclass | 15 +++---- meta/classes-recipe/imagetypes_wic.bbclass | 2 +- meta/conf/bitbake.conf | 2 +- meta/recipes-kernel/dtb-files/dtb-files.bb | 41 +++++++++++++++++++ .../plugins/source/isoimage-isohybrid-isar.py | 4 +- testsuite/citest.py | 40 ++++++++++++++++-- 8 files changed, 106 insertions(+), 17 deletions(-) create mode 100644 meta/recipes-kernel/dtb-files/dtb-files.bb