From patchwork Sun Nov 29 22:37:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Salveti X-Patchwork-Id: 106320 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.21115.1795991834580250014 for ; Sun, 29 Nov 2026 14:37:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=IASdkwnI; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=Y6MZbe2x; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.180.131, mailfrom: ricardo.salveti@oss.qualcomm.com) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6ATKLcfl2888732 for ; Sun, 29 Nov 2026 22:37:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=f4VO6VYTLyvtHDo4ffL8CnZxXwNnSyw9Mm5 bl5/P7Ns=; b=IASdkwnI3hkmU64C3y3hSKxqGhUNF2av5lBaLv/avA6F+wiTZOa NWABtTv44lMNJ/GwF3IeEXJmVYW3VP0DGHHc+0x1gPn1d7qupaHdddonEoSIkk0H RvBG6n0ijZ8S3rRbXl0Fhasv5W4rIWXsiRFFZcwlKX5WPBnssQxEYnQsH3a9dS9v jbIWr0lbAmJaTLFP4BLsaT+xlTZ4Qkql8btCmUa07y84m+cfRrIanr2MmJLUfzS2 3dzDuWpagS+4PwgYuFwDBd3tOjdIW7qDS68/bdI2CXb6vANAq6Z8EOS60I/XnMug 7iOPHgTXoYJUlOe9/YATJI5hGYzCJTulIpA== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j7manv7gx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 29 Nov 2026 22:37:13 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3aed37745bcso7967425a91.1 for ; Sun, 29 Nov 2026 14:37:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795991832; x=1796596632; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=f4VO6VYTLyvtHDo4ffL8CnZxXwNnSyw9Mm5bl5/P7Ns=; b=Y6MZbe2x8jt/8xS7i8gWotbq9n0C7WVVEcBuc/j2bacgE1pShtZ3ZhrL/Psfkhqlrc Wi8QIiWlo0gb5FUqSVIvqVzZT0C6izTIZNuXxkqIKJMncjz5iTFzwak9VU4jCZg88c12 8Os5WjT5WtjyYsI33CQhLzpV5fzYB901xR6PXJuMV/b62Ym8okiZcTvnKybaeguE5P5G 9Jx/mOY1AGutyCmHZ/kfAMX+OhTpTSx7j4i89ca1X7tFWAfuhjUnPw81sXAO94Dl64fl m8JYsH4YPPAxG2IPkoetsEy+AGHsvuBJDuxgylLcLzWPbl1ejv6R09erXZMf6w3sTQua BnDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795991832; x=1796596632; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=f4VO6VYTLyvtHDo4ffL8CnZxXwNnSyw9Mm5bl5/P7Ns=; b=gTR0hS6H+FZTm5HOGb470bWX7H8N2vFQRBlNrftECTl+Ea5n0rWeoCDOJJxcIVxmEc JPE/KeWhTlCHuoY74gLWrXRZb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67ed59e1d1-3b41c93cdc8mr21831873a91.32.1795991832116; Sun, 29 Nov 2026 14:37:12 -0800 (PST) X-Received: by 2002:a17:90b:3cc7:b0:3b3:c6b1:2277 with SMTP id 98e67ed59e1d1-3b41c93cdc8mr21831853a91.32.1795991831503; Sun, 29 Nov 2026 14:37:11 -0800 (PST) Received: from ip-172-31-25-255.us-west-2.compute.internal (ec2-35-83-207-173.us-west-2.compute.amazonaws.com. [35.83.207.173]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b53479b149sm15458700a91.6.2026.11.29.14.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 14:37:11 -0800 (PST) From: Ricardo Salveti To: openembedded-core@lists.openembedded.org Cc: Mikko Rapeli , Viswanath Kraleti Subject: [OE-core][PATCH 1/3] uki.bbclass: skip overlays and select between several devicetrees Date: Sun, 29 Nov 2026 22:37:02 +0000 Message-ID: <20261129223704.2168814-1-ricardo.salveti@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: CruR-F1Gs04hwHIRbK07f544hdQLvNRO X-Proofpoint-GUID: CruR-F1Gs04hwHIRbK07f544hdQLvNRO X-Authority-Analysis: v=2.4 cv=Qc/zLcbv c=1 sm=1 tr=0 ts=6b0ca919 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=P2/bgbqRawb6I1+7fxbs5g==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=ACKpWwXhrvcF-GG0W3YA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI5MDA5MCBTYWx0ZWRfXw9OqjOuoc1Zs qAxwSec8njeBch0C7C+iS3Rd+WSXxXoQHjTcwD7ZgfXiMUVxDDgvhOXsEKNfKRH6Dv+FpqvHqzv cXs6yskLnnMIN02zuTcjJblrDEU/wevqxKm5PZdWoat0zsVuLwwCcLhi0HinRibnXbEbDVkyqmL hL6QgpdakbhE0vt6uJ3ZG9JUkK9eaRECjNatchIuQ/EtYe4K3gAExQ1khuZYgmH09ilx/uy1FNp /UfHcerwnewZpzjFXmMY+hwtnzfLWImHXJuCuKBXKLxXlvYG2nzwzDcfnxPz54sVTlF/yeV2L6S O0eMeTUY+GzvLUoScYQTw9jtS3dQVO33ig7Eh+AWzo5a7vSIwYp3TXWAi5p0kWOKBxCLbLItwH0 b/oVYMBRQlCiReg+PMBEVn6hNzDKz5770vM/ElVSqfWYwY1AnxcdohqFsK04KbMdIML+BlKFCvU 7tKnwbWq/ph53r5fcEw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI5MDA5MCBTYWx0ZWRfX38Kscbi71loG K3D56jSOBpbxm2QMKnOBzExsbGm3RjS0p6h6JnQRITgE26u936mucYAdsteX15SL7XIL4FGCWZo MyW4bO4CiYxHU3oAVv7iEl4TknF08yU= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-29_04,2026-11-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 impostorscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611290090 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Sun, 29 Nov 2026 22:37:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251556 Every UKI_DEVICETREE entry is passed to ukify as its own --devicetree, but that option takes a single file, so only the last entry ends up in the UKI. With the KERNEL_DEVICETREE default that is often a .dtbo, which systemd-stub then installs in place of the firmware devicetree. Skip .dtbo entries and pass several devicetrees with --devicetree-auto, so that systemd-stub (257 or later) installs the one whose first "compatible" matches the firmware devicetree, or the device found through .hwids when the firmware has none. When nothing matches, it installs the DeviceTree= of UKI_CONFIG_FILE if set, which now applies, and otherwise keeps the firmware devicetree, or none if the firmware has none. A single devicetree is still always installed, so list one to force it. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Ricardo Salveti --- meta/classes-recipe/uki.bbclass | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/meta/classes-recipe/uki.bbclass b/meta/classes-recipe/uki.bbclass index bcccf824c7..ea8aaa5e6b 100644 --- a/meta/classes-recipe/uki.bbclass +++ b/meta/classes-recipe/uki.bbclass @@ -151,16 +151,18 @@ python do_uki() { if cmdline: ukify_cmd += " --cmdline='%s'" % (cmdline) - # dtb - uki_devicetree = d.getVar('UKI_DEVICETREE') - if uki_devicetree: - for dtb in uki_devicetree.split(): - # DTBs are without sub-directories in deploy_dir - dtb_name = os.path.basename(dtb) - dtb_path = "%s/%s" % (deploy_dir_image, dtb_name) - if not os.path.exists(dtb_path): - bb.fatal(f"ERROR: cannot find {dtb_path}.") - ukify_cmd += " --devicetree %s" % (dtb_path) + # dtb, overlays cannot be used as the base devicetree. With several dtbs, + # systemd-stub picks the first one matching the firmware's "compatible". + uki_devicetree = [dtb for dtb in (d.getVar('UKI_DEVICETREE') or "").split() + if not dtb.endswith('.dtbo')] + dtb_option = "--devicetree" if len(uki_devicetree) == 1 else "--devicetree-auto" + for dtb in uki_devicetree: + # DTBs are without sub-directories in deploy_dir + dtb_name = os.path.basename(dtb) + dtb_path = "%s/%s" % (deploy_dir_image, dtb_name) + if not os.path.exists(dtb_path): + bb.fatal(f"ERROR: cannot find {dtb_path}.") + ukify_cmd += " %s %s" % (dtb_option, dtb_path) # custom config for ukify if os.path.exists(d.getVar('UKI_CONFIG_FILE')): From patchwork Sun Nov 29 22:37:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Salveti X-Patchwork-Id: 106321 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.21116.1795991835012134595 for ; Sun, 29 Nov 2026 14:37:15 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=jhAafw5Z; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=WndB+Bbp; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.180.131, mailfrom: ricardo.salveti@oss.qualcomm.com) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6ATKLdeB333200 for ; Sun, 29 Nov 2026 22:37:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=XPz1cJom09q iwwFTi00MI2b8HIg4zl4dG05l9EBZURA=; b=jhAafw5ZAUQzavMUQZkLAvoSFy6 dl7tdJxFs1CjoNH37O8gAyX5Ywu2oMe6+rgQXral75yZucIPlibhkohng8oseVW5 V9Ui/BOkrwrdAGR9NI9NSWTsa/vsbGvPp++63vfr3TbHav2BKspxgBpUVThT0/Vh GmpFkaL9TpmA3zohKUSNQ7ex1DC1kVFJQI+T5bWj7WU2B9hcLzaW2gjaGCKilBaK 0FVEyjNJsOLtRrhS95iJpDo1DpEiEZ/7ItC928f8k196kvPRI70uuutrBanoerT6 WJcJ41xaJprkbyTfb2pGZs3E3NIgh9xHVpslGuoWDesuKug/SkqVDw5/LtQ== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j7p9gkyb5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 29 Nov 2026 22:37:13 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3b421417c3cso8332742a91.0 for ; Sun, 29 Nov 2026 14:37:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795991833; x=1796596633; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=XPz1cJom09qiwwFTi00MI2b8HIg4zl4dG05l9EBZURA=; b=WndB+BbpG7+zDmtEB8mYb6eArPoE4eA/TEL8KrkV8DkpKk9ISogNdzwegxyFhjMKJ+ lmRd0fOhbawVYFMhQDlXqm55SAKAxUg3zgjjarTL16/dXC0IDrOKMD2ei0XHgy7qnt3B suJEOq6wEsfPzqNhxpE8+aViwjSY0uSx1h3Pm4Kgkk23CzB1FPVRcxkraM1dAOjBxFSR eu+NNpnAaoea5PBWz6BfghUkJufg/jZbKuMRjqkSMDjLFNdpeqnW/fnfkix3vzs4zebn o/SmvecxPswvVwr95oCq5I4g7gs8jBujZX0d0nX20yhQyWQFcIoLISZUJKD4lUf/fTuQ jgdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795991833; x=1796596633; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=XPz1cJom09qiwwFTi00MI2b8HIg4zl4dG05l9EBZURA=; b=YDsW3odJe5u6dZ15JWWgJ2gjjzcrNatPb0zmcVjds5ukiY5mBmOxgR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2002:a17:90b:4ec4:b0:3b4:1926:9e96 with SMTP id 98e67ed59e1d1-3b41c8ff5b6mr29755431a91.35.1795991832647; Sun, 29 Nov 2026 14:37:12 -0800 (PST) X-Received: by 2002:a17:90b:4ec4:b0:3b4:1926:9e96 with SMTP id 98e67ed59e1d1-3b41c8ff5b6mr29755423a91.35.1795991832103; Sun, 29 Nov 2026 14:37:12 -0800 (PST) Received: from ip-172-31-25-255.us-west-2.compute.internal (ec2-35-83-207-173.us-west-2.compute.amazonaws.com. [35.83.207.173]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b53479b149sm15458700a91.6.2026.11.29.14.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 14:37:11 -0800 (PST) From: Ricardo Salveti To: openembedded-core@lists.openembedded.org Cc: Mikko Rapeli , Viswanath Kraleti Subject: [OE-core][PATCH 2/3] systemd-boot-native: install the hwids tables Date: Sun, 29 Nov 2026 22:37:03 +0000 Message-ID: <20261129223704.2168814-2-ricardo.salveti@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261129223704.2168814-1-ricardo.salveti@oss.qualcomm.com> References: <20261129223704.2168814-1-ricardo.salveti@oss.qualcomm.com> MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=BuYIUoX5 c=1 sm=1 tr=0 ts=6b0ca919 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=P2/bgbqRawb6I1+7fxbs5g==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=WfEjExV93QXIdWqpcksA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI5MDA5MCBTYWx0ZWRfX8GKLP4V6THhA AIkYghbYyy7cg5M75Dn6QL0cx5e/ZdqMRtoXy/j458QCqlyirdJhzpjJ6ntSNkkNMPnG2zE3wJE 1onQRvGzQC4wuSpynCDjCujEc90nbZY= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI5MDA5MCBTYWx0ZWRfX/JOxcR8ohyon +FAkw2KI6E91pSUygnlmPbNVai5/HeHeWMhldIN3C3pivU6P2ATjI/v+GGmAvX9OUjktNP7UIIq FHH5FOhPrX/A20a1its2qdI7TdAhzJyqqZjPzKtU2uPWn7pEZOXRSmWsgH8m/nxEg5D+0Y6C1vT abLQsIvhJKpU7wyLQmpywNSCeZLXv0S6jQzJXHplzh87XxYjaVnBTBHVKQqPlawK+CdmQJYLAmq 6BwxFVjRXCHRsk2Ue+oUvFN4oTZKGDFmxw0s2adsJ3a2/QY+W0XmFGMdE2UuFmd2+0bp9sz4INu WxgWIfKp2sMBG7L59ncdOVvp8CmDDxXiccF3sxhYOqGXNugMSZXtLeUZIdljnkXFa/nHfoGNmwF nUUi8UiCT9/jCqGtoO8yxCpWSJtw405Z95QIjMTldpwBlaIy1w9he4FXEB8MZTg1c2BiKjxqJph Rnrypv8YdPra3gtqbYw== X-Proofpoint-ORIG-GUID: 3pmQ5L9dQON3xThsUunaFsuebWtFn3jn X-Proofpoint-GUID: 3pmQ5L9dQON3xThsUunaFsuebWtFn3jn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-29_04,2026-11-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 priorityscore=1501 suspectscore=0 adultscore=0 bulkscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611290090 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Sun, 29 Nov 2026 22:37:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251557 Since systemd 260, ukify fills the .hwids section from /usr/lib/systemd/boot/hwids/ when --hwids is not given, where systemd installs the device tables from src/boot/hwids. The native recipe only installs ukify, so the only tables ukify can find are the build host's. Install them in the native sysroot, so that a UKI can use the ones from the same systemd version as the stub (UKI_HWIDS, next commit). AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Ricardo Salveti --- meta/recipes-core/systemd/systemd-boot-native_262.2.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/systemd/systemd-boot-native_262.2.bb b/meta/recipes-core/systemd/systemd-boot-native_262.2.bb index 05ebe7b63e..fa74f8f3ef 100644 --- a/meta/recipes-core/systemd/systemd-boot-native_262.2.bb +++ b/meta/recipes-core/systemd/systemd-boot-native_262.2.bb @@ -8,11 +8,15 @@ deltask do_compile do_install () { install -Dm 0755 ${S}/src/ukify/ukify.py ${D}${bindir}/ukify + # hardware ID tables for "ukify --hwids", as installed by systemd + install -d ${D}${nonarch_libdir}/systemd/boot + cp -R --no-preserve=ownership ${S}/src/boot/hwids ${D}${nonarch_libdir}/systemd/boot/ + rm -rf ${D}${nonarch_libdir}/systemd/boot/hwids/test } addtask install after do_patch PACKAGES = "${PN}" -FILES:${PN} = "${bindir}/ukify" +FILES:${PN} = "${bindir}/ukify ${nonarch_libdir}/systemd/boot/hwids" RDEPENDS:${PN} += "python3-pefile-native" From patchwork Sun Nov 29 22:37:04 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Salveti X-Patchwork-Id: 106319 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.21434.1795991835811383386 for ; Sun, 29 Nov 2026 14:37:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=payhvTCs; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=KgMSfxUU; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.180.131, mailfrom: ricardo.salveti@oss.qualcomm.com) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6ATKLJ6Y707679 for ; Sun, 29 Nov 2026 22:37:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=Okti4GPDoTX LrCSU7Bt6RmLvhVmE3SKfJPIzAhrfhRE=; b=payhvTCsUVtxuEBJoqAgzAq+aFz HvddmFyVx9IsMkSZM3zO/Os/n1oUANKmu+p3T/rIU2QFy90cpae/xXtqcgygHoAa mbDRoakV+GYOsE2NMVViagTW92qXiZQOyoyaoFnfd1/fKR2D+mQxOPRGdM/u9AHN IOx72CtJbmPH1y/C0lzvUS1wj6GuHAtfpzjp6g8amvdBUKEddJEzAB0VBSSEgv+k X9YUXzJoUj6cMOtKxf7YLpnCr29Oxh85F02EoHfGZ+0gA/bG0SpCJgXbmqh0goiM JyCkO2ogwy/Mxzf436UbDKkQ61LjGH4p6CPmVvLqIfyh2jIJmbyFib79qaA== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j7q1u3vgp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 29 Nov 2026 22:37:14 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3b08aee6b3eso8303658a91.3 for ; Sun, 29 Nov 2026 14:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795991834; x=1796596634; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Okti4GPDoTXLrCSU7Bt6RmLvhVmE3SKfJPIzAhrfhRE=; b=KgMSfxUUiyTs+b8xEADDI6yc/7xjFazy0zT0V7EAvVMkaisiLhCoibmDivkpO8sIuP 4P9zfiNYQVKKjLYWMc3nIp4uE/y+7WFqxIJISsWqyhxcNOgWAHOxAvp/mMVgNiZTbUfZ gkrQXhA+RVetDakLodLNkmpVSjkQAafexXDs0oYBTbV4+O4DXseRs7yzzTN6s+5UQ37E Pb6dbfUKAoWFxIf5qMjaphlyPlTfntaZ0WXkVerWZPnaD6JoW8N6T3kp2ilNzqBrG/M1 OyAjTgg4XcYzurM+3p1PvEGNhWpn72aflDcBqkZiz1MGoJl7pvAFnOHuOEFcEP3zaEM1 Eycw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795991834; x=1796596634; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Okti4GPDoTXLrCSU7Bt6RmLvhVmE3SKfJPIzAhrfhRE=; b=POO2Bfqx9A/X0hMcrY66Hjkp9ADqxfjSfo3cNBGwTlapT5RsJRo2o+BgZvJkbnMvqC E1ivqsjIt2uTZlWf3KXgNOqmzmoSGkYNxZf94SO0X7Rkqk1LnfHI21XO4cTPgn0Hhtt+ eCr4b95d9bLQNsCqvCB6TmCkKmSOjkLsW8US/TRomGkOpVI0ghwwB8JRB3DL0VFpAesE PEItHxIeCvLv1u/z5V7dbRuhmrTyETozMe9SqGnSPTqDlYCjbY04dKrsg+3YYm+Jmh/8 g8zt9G4xCzuEU/zxP0iRYPMOFO5oDtJTcQ9aKWzKcww8e9gHYp/rEbX4Tyti9SIQLVAB ZBug== X-Gm-Message-State: APuU4Z8dEG6uMmP1JJ3Ub9e3dXJ1AXILpU7vgflLTVVTnu82neFIMUvD dNrH456g5RUlXqiX0UXQ4o6lhc4O70vPGtZ7244Af1CTJPobQ8smB39cL1T5qRK84kqsEgDsO3T OD3dyenBnHLmJU8q8ZQEdBFj0ngN6Wje45zf4FGYTZFoQw8Fxk6BeF5mojATLbAKAGvQanjD4Ju yL/dib9z7S8mn3s+k= X-Gm-Gg: AZFdTZdKircoln/XYt16a4lNL4f4KNfUL+dr7/RBuwLZAdElhVxDhvtN2qoxy+d0Vzw OWCxvtyIIAjZqP8BkhDv0TQ6MqFfCOgW7QJUy8sbBIoXG2xkjRbPDJIZDonHC/JbR2QMsjiubrV hGU6ia3xAXQtUupftagaIxQONx8if/5vBV+ctUGcszLQ7Qqf5VxJxAEZJAAVujanaMK3Z9ghElV nok6o76S2jwBPu8xFuryroPtsW9JmyMiJ5knEKsIyTEbHptaVVleyKrW23BNAW31RQuaOG0XJHf x6bVqmHHvb1TCmhjfLlHmPBX0V+JihwY9ExFm0TAXs2QQjqYtyLjwNCjktSOjwLevIO5E8jJrcB zS7hAjYmcCQW+dVug8NG1hqD8A7xRlo5JBZk0bgMwG2jhwJdZEEnhcA3Ymiynm+krTQ0CNqfgqk d1Qx/2GMIGQmybLoHGoZfPvAVpFcOtwfoSyaVwj/iK3AnQ23zqr6NOuqh1oYkPPuo4yg44Eo4de oIMtJVE+9SG/TM= X-Received: by 2002:a17:90b:3d8d:b0:3b3:b750:d2ed with SMTP id 98e67ed59e1d1-3b41c7b56c9mr32425584a91.8.1795991833510; Sun, 29 Nov 2026 14:37:13 -0800 (PST) X-Received: by 2002:a17:90b:3d8d:b0:3b3:b750:d2ed with SMTP id 98e67ed59e1d1-3b41c7b56c9mr32425567a91.8.1795991833006; Sun, 29 Nov 2026 14:37:13 -0800 (PST) Received: from ip-172-31-25-255.us-west-2.compute.internal (ec2-35-83-207-173.us-west-2.compute.amazonaws.com. [35.83.207.173]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b53479b149sm15458700a91.6.2026.11.29.14.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 14:37:12 -0800 (PST) From: Ricardo Salveti To: openembedded-core@lists.openembedded.org Cc: Mikko Rapeli , Viswanath Kraleti Subject: [OE-core][PATCH 3/3] uki.bbclass: do not take hwids from the build host Date: Sun, 29 Nov 2026 22:37:04 +0000 Message-ID: <20261129223704.2168814-3-ricardo.salveti@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261129223704.2168814-1-ricardo.salveti@oss.qualcomm.com> References: <20261129223704.2168814-1-ricardo.salveti@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI5MDA5MCBTYWx0ZWRfXzppwlOd200T4 PFyxf+lfVQWCcbh8bvAqSOAoInyeZo+yUk2Bpi6AW6ZemomCcjdm58hw7K+Kg/pYq/1dVtS9ZIL ASvn9W0VjNYe4cSb7TdCZcplfNNDk311W8bJk77c9Lkymwqa/ngZNPYwh01IGdLVhYMQ/WXVH3x 5DrBTtWySh46xN6HBH+E5Tq25fAS9PFRmPJm51vW9uSkvRTx9ArMyoj+Pw89j0p0TMgCv7Po3Mu CSCUYMQB5cHxuiRlL8QITaJy2zfvoARY/ZEnFsvSZITJVOwzGwlJPD4AS7eCxcg9z4da1abWmTL k/9ZOnIXYFDJ+SnTWGJrnatdhmCJssb2BApKtqNYcjUUNbs6sE5E6TzdC8i3YlCqY45gJ+8o/hg xpTu3KmPr8t7sz2wO+bXj/vDhvP1OK8EalSiMFVfXHLRod8IV29Tdo9FbC3LflnMzGrHavgi5L5 rf+Yo9wI1lWov+MnRhA== X-Authority-Analysis: v=2.4 cv=Dv3Da2/+ c=1 sm=1 tr=0 ts=6b0ca91a cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=P2/bgbqRawb6I1+7fxbs5g==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=ctH2iNBwsksiHyeb65QA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI5MDA5MCBTYWx0ZWRfX4bFhuYu3Ha3q NRd2maw/pYcPKZ9sa9dSL5Y+Vey5lKJmqytuUUGXaxnvublKZrqImzrwjkz4e3S82N+LLoUPBMx +e92bEqv88B4wiM+r4DUgttB+6PfGRc= X-Proofpoint-GUID: sjY0_NUx_j_oYS-taxQCwW8XJ3H61PYx X-Proofpoint-ORIG-GUID: sjY0_NUx_j_oYS-taxQCwW8XJ3H61PYx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-29_04,2026-11-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 malwarescore=0 adultscore=0 bulkscore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611290090 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Sun, 29 Nov 2026 22:37:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251558 Since systemd 260, ukify adds a .hwids section from the build host's /usr/lib/systemd/boot/hwids/ when --hwids is not given, so the UKI depends on what the host has installed. Always pass --hwids, from the new UKI_HWIDS, empty by default for no .hwids section. systemd-stub reads that section for .efifw sections, and for .dtbauto ones when the firmware provides no devicetree; the tables from systemd, only for aa64 for now, are in the native sysroot for UKI_HWIDS to point at. HWIDs= in UKI_CONFIG_FILE and a --hwids in UKIFY_CMD no longer apply. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Ricardo Salveti --- meta/classes-recipe/uki.bbclass | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meta/classes-recipe/uki.bbclass b/meta/classes-recipe/uki.bbclass index ea8aaa5e6b..c666444021 100644 --- a/meta/classes-recipe/uki.bbclass +++ b/meta/classes-recipe/uki.bbclass @@ -82,6 +82,9 @@ UKI_KERNEL_FILENAME ?= "${KERNEL_IMAGETYPE}" UKI_CMDLINE ?= "rootwait root=LABEL=root" KERNEL_DEVICETREE ??= "" UKI_DEVICETREE ?= "${KERNEL_DEVICETREE}" +# .hwids directory, empty for none. systemd's tables (only aa64 for now): +# ${STAGING_LIBDIR_NATIVE}/systemd/boot/hwids/${EFI_ARCH} +UKI_HWIDS ?= "" # secure boot keys and cert, needs sbsign-tools-native (meta-secure-core) #UKI_SB_KEY ?= "" #UKI_SB_CERT ?= "" @@ -164,6 +167,13 @@ python do_uki() { bb.fatal(f"ERROR: cannot find {dtb_path}.") ukify_cmd += " %s %s" % (dtb_option, dtb_path) + # hwids, always set as ukify otherwise takes the build host's. This + # overrides HWIDs= in UKI_CONFIG_FILE and --hwids in UKIFY_CMD. + hwids = (d.getVar('UKI_HWIDS') or "").strip() + if hwids and not os.path.isdir(hwids): + bb.fatal(f"ERROR: cannot find UKI_HWIDS directory {hwids}.") + ukify_cmd += " --hwids='%s'" % (hwids) + # custom config for ukify if os.path.exists(d.getVar('UKI_CONFIG_FILE')): ukify_cmd += " --config=%s" % (d.getVar('UKI_CONFIG_FILE'))