| Message ID | 20260703150835.2490688-1-amikan@ilbers.de |
|---|---|
| Headers | show
Return-Path: <isar-users+bncBCHIPONZWECRB7NAT7JAMGQE7FNI7NQ@googlegroups.com>
Received: from shymkent.ilbers.de ([unix socket])
by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA;
Fri, 03 Jul 2026 17:08:52 +0200
X-Sieve: CMU Sieve 2.4
Received: from mail-wm1-f63.google.com (mail-wm1-f63.google.com
[209.85.128.63])
by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id
663F8pRg017195
(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
for <iupwgm@isar-build.org>; Fri, 3 Jul 2026 17:08:51 +0200
Received: by mail-wm1-f63.google.com with SMTP id
5b1f17b1804b1-49244130073sf5156645e9.1
for <iupwgm@isar-build.org>; Fri, 03 Jul 2026 08:08:51 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1783091326; cv=pass;
d=google.com; s=arc-20260327;
b=skYW8NTDQNQlLrJ/AATsFnDvsgyKuwEXvuYbpnyQwcK/pzyBBbqMi5FL5Uu3LGZ2kS
rZtnHALtKK/aFzWVmT60uy/OZFj0zLOKtoiztKYP07M6FBZFv2TTvjz/rVpZZLtV0BOd
aFRwfyWNPhgUbXVlcxhAX0ev+Zf7b/IAyorlAW6SshFur9PVSoRZC0wa+u4xqxopYabt
yd0kUpfkekHaxrQkvdtMIT03pKv826wSWZ82DiqgZj5pqBvAQvSxPuSE36seDw0Jo5u/
BD5FJfq/2yD6rBeDGlyX+RA8h9OkNAgSnO9G4198gX/Sb4k6eB/uW+MhPP6MbAHgdSZK
gqcA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
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=ZMCNVZBl4FXrhX3e8ZSEavIu4Dpgs3AF2si+7Qt1JJ0=;
fh=L3kUgx47m2lxDamX3fXAvTSaokJ3QwSNnLh9MuGpJ0o=;
b=KN6eMPu2FU3Zk5XLQHOXsBTEs4Ms9ZuTDtaXQlAk1oy9sm2tmKO9/Jc5CCBbvrrrkG
PN7OmuGoDdP3pRjjyywXGau2vtg270jbJtSQ27/N4yci0EzIkl3o2+BMBFpKyICk2ptC
5WK/DrVyR1Ms0VGDaMxS941NJ03TA2D6EapoOtnClM9HtH8HnQ3w1yYXXfjLJrx5O7ln
nBgg/2UXpGuFycMvQffLVgLNd/hCv7Knk+vvXrReHheO7C6rG/QBUBRh97ybpGgUh1J/
YICTbCJHoVUOmygQ7A5SvXaZO9JO2zJBhaKmf4cpR/q24JnI8BBURM3jFN6+e56/tilI
w3hQ==;
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=20251104; t=1783091326; x=1783696126;
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=ZMCNVZBl4FXrhX3e8ZSEavIu4Dpgs3AF2si+7Qt1JJ0=;
b=P1cNoQv81cI1FXPSK7fVLoYTDr87VTQSe5+rk8w8jnwxMHZWISKZpQ658rQ8Kgjwkj
elQ/hqn8dpykPdmqdnYVL3hTfbg5uUH4uO0F6m06332CNBJy+wbHFDD4a+J835fW3kWS
E2mF5JPyjpLLuJrK2y2NIv8aGC34P6AMgo1nP0SOn+/suk7tJkcWKQgsNEd5eJY07tUV
RrNxWeYj9mh2UiKFd6gZmv5p/HPTRN3bR4bViVbYo+t4i7HxPY+fboyoKbMSWvrwyDKf
tSzS942z7Js9iazwQLVMpZ0eGBiICIfy/bEHaN3EOJbgcCJrIhX1Tnuj+QTgp2vK5IJc
+ZXg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1783091326; x=1783696126;
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=ZMCNVZBl4FXrhX3e8ZSEavIu4Dpgs3AF2si+7Qt1JJ0=;
b=OQCWfEXxERfel8Qd4trk8uOdE1kPH+38ksffWh557xy+GvHrrNvyU3VCse2SH3kcFL
8OSXAEw+ZDtE609b0HksL2EzbknyIvv8aPi2utKHyHcHXoI/zL+P0GHbq34HuI2SctsN
Uq65iT2WrXCWZ7MiUogmz6EqCh7b1C8E4FDjbLWKUJi9yhQ8eQYs9/VdnP9GMwSA74n2
sAIPtYcrjDgxGDtznkm6YHwEu8ZX6lTJtbPn2e2gYjziP+fTnIvsmaz7pn47GPhJBYQC
Bl719pH4mWzqAaDaN4HFcLGF3jQVDbK0fIru2Y+2dL+2BzLrmjGuZNgeMGBRRuLn23J1
iX5g==
Sender: isar-users@googlegroups.com
X-Forwarded-Encrypted: i=2;
AFNElJ+e8eXHbppDmqFBYtHBjYziO1nzEQDiQumGtf1iguws6EQq6pmgjEAN87MS3CS6Cnri14+R4+s=@isar-build.org
X-Gm-Message-State: AOJu0YwbGLde4w1TKb0NNpMozXOcrgkSqJZ5Mi5cMslkL7Gtfz0k4pEd
n3RorvYRgEaGXrDgwc3M0Wm47Efs1QRHI5huVD8kRebxD555ownyD3RA
X-Received: by 2002:a05:600d:15a:10b0:493:b56b:c45c with SMTP id
5b1f17b1804b1-493d0f3c9femr2304345e9.30.1783091325812;
Fri, 03 Jul 2026 08:08:45 -0700 (PDT)
X-BeenThere: isar-users@googlegroups.com;
h="AX0PUUcpxzvpFiyD5xMquwWT6Xl9d6sRZW4MNKzdrjhmbtInYQ=="
Received: by 2002:a05:600c:524b:b0:492:329f:bbac with SMTP id
5b1f17b1804b1-493bfaedf18ls27644515e9.0.-pod-prod-03-eu; Fri, 03 Jul 2026
08:08:43 -0700 (PDT)
X-Received: by 2002:a05:600c:6d9a:b0:493:bc31:b2ae with SMTP id
5b1f17b1804b1-493d0f1030dmr2297855e9.10.1783091323563;
Fri, 03 Jul 2026 08:08:43 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1783091323; cv=none;
d=google.com; s=arc-20260327;
b=ZnY7HkYCk/1cTpO0sy/mRVR/CNmQ8ZIXlTFLjWCG4XWpxW5GA0/W0jsAbpibEc6XsX
RFaEPgp4fnzqMISV7QfxsUBWJzf5fHZfZaU/ifzRldNG1J+TPYhf+Rx7db+aX/RcC5ef
sOSD8i5I4i26QmERLvh3BSO1R1xhfq4tHZapQee+cNrrUfm5JJYJrI+mb7uluxQMQbvQ
oS5xV1RUZk80C6ioW64HdWm/7EPqfBvPWIEbpksfXTeXXhG6APIeYIx2Jxj3OY/olgnD
sFCQ1Ch/v93IGmJ3LOMv+ShcERYBXEFA784tRFwcdL2avgUf7ZKEKMhUASv8VtzMYhjy
mg1Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from;
bh=Df0zB1Q1x1mXUIWbKNx39E5CzTzQey9u+ge0a2C6v8s=;
fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=;
b=nkKj0uwe1bGKPhTosOn5eoTq4FWbz7Z36DR7yCMSIyuv9odftzrLq9KY1AqoJHmSn4
51GgBssEd6a//Uc2Gwo2kshPVkxFVcvKnqcBEwBakZ0haigSKhK5jxQQL3r/AlCUeZSd
j7VV8EOLRyP6iP6iAeUpmfNqvykDqExoWi43wSs47Q/YDmY99Fl5Pft2rjdldFMPrEIh
OdO4HIBlNOgAkvRkjnH3keuu45Z+sNkEJKOgTIMXajDMkPkcKtYxAZ7D6KkEBZYP/Uuj
EF1TUrImqSbgkUBvJ2reYIeg+5XAFgTduSFoEuNs0os3jow64oXaVQgpMUaZJgWBWLgQ
kxgA==;
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
5b1f17b1804b1-493be4f1aefsi1338075e9.0.2026.07.03.08.08.43
for <isar-users@googlegroups.com>
(version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256);
Fri, 03 Jul 2026 08:08:43 -0700 (PDT)
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
663F8gDR017164
(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);
Fri, 3 Jul 2026 17:08:42 +0200
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH v12 0/3] Move kernel artifacts deployment from image recipe
Date: Fri, 3 Jul 2026 18:08:32 +0300
Message-Id: <20260703150835.2490688-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
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list isar-users@googlegroups.com;
contact isar-users+owners@googlegroups.com
List-ID: <isar-users.googlegroups.com>
X-Spam-Checked-In-Group: isar-users@googlegroups.com
X-Google-Group-Id: 914930254986
List-Post: <https://groups.google.com/group/isar-users/post>,
<mailto:isar-users@googlegroups.com>
List-Help: <https://groups.google.com/support/>,
<mailto:isar-users+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/isar-users
List-Subscribe: <https://groups.google.com/group/isar-users/subscribe>,
<mailto:isar-users+subscribe@googlegroups.com>
List-Unsubscribe:
<mailto:googlegroups-manage+914930254986+unsubscribe@googlegroups.com>,
<https://groups.google.com/group/isar-users/subscribe>
X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?=
|
| Series |
Move kernel artifacts deployment from image recipe
|
expand
|
Image task "do_copy_boot_files" is used to deploy kernel 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 move DTB deployment to the kernel recipe (for both distro and custom kernel recipes), where DTBs and kernel image are extracted from the kernel package. For the distro kernels it means we install its deb into the schroot to obtain the real artifacts from the filesystem. To keep the same artifacts path as before "do_copy_boot_files" task is now searching for the artifacts and create per-image symlinks. In case any naming conflicts (like dtbs with the same name from different kernels) the latest built dtb will be pointing by the symlink, while both will be deployed to different subdirs without conflicting and stay untouched. This symlink creation is done in the same way as artifacts conficts are handled by Yocto. The case when different distros (e.g., bullseye/bookworm) are using the same name for DTB binaries is covered by the patch 2. 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 v11: - Fix commit messages wording. - Simplify variables obtain on task creation. Changes since v10: - Rebase on next. - Use the same deploy dir with per-kernel subdirs. - Allow using different kernels for one machine. - Restore paths for downstreams in Yocto way (symlinks). Changes since v9: - Base on v6. - Rebase on next. - Move also kernel deployment from image recipe. Changes since v8: - Rebase on next. - Document how this approach differs from OpenEmbedded. Changes since v7: - Fix SOB. 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 (3): meta: Fix do_copy_boot_files error for different distros of same machine meta: Move kernel artifacts deployment from image recipe CI: Check kernel artifacts deployment RECIPE-API-CHANGELOG.md | 28 +++++++++++ .../installer-add-rootfs.bbclass | 2 +- meta/classes-recipe/image.bbclass | 39 ++++++++-------- meta/classes-recipe/linux-deploy.bbclass | 46 +++++++++++++++++++ meta/classes-recipe/linux-kernel.bbclass | 3 ++ meta/conf/bitbake.conf | 2 +- meta/recipes-kernel/linux/files/getkernel.sh | 40 ++++++++++++++++ meta/recipes-kernel/linux/files/rules.tmpl | 12 +++++ meta/recipes-kernel/linux/linux-distro.bb | 27 +++++++++++ testsuite/citest.py | 30 ++++++++---- 10 files changed, 199 insertions(+), 30 deletions(-) create mode 100644 meta/classes-recipe/linux-deploy.bbclass create mode 100755 meta/recipes-kernel/linux/files/getkernel.sh create mode 100644 meta/recipes-kernel/linux/files/rules.tmpl