Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2219508/?format=api
{ "id": 2219508, "url": "http://patchwork.ozlabs.org/api/patches/2219508/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260403073251.1051533-3-paul.henrys_ext@softathome.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260403073251.1051533-3-paul.henrys_ext@softathome.com>", "list_archive_url": null, "date": "2026-04-03T07:32:51", "name": "[v3,3/3] binman: collection: Set build_done on referenced entries", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c539f3b9ab81d764f38db501707f9cf66b12601f", "submitter": { "id": 83555, "url": "http://patchwork.ozlabs.org/api/people/83555/?format=api", "name": "Paul HENRYS", "email": "paul.henrys_ext@softathome.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260403073251.1051533-3-paul.henrys_ext@softathome.com/mbox/", "series": [ { "id": 498597, "url": "http://patchwork.ozlabs.org/api/series/498597/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=498597", "date": "2026-04-03T07:32:49", "name": "[v3,1/3] tools: binman: Test signing an encrypted FIT with a preload header", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/498597/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2219508/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2219508/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "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=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com\n header.a=rsa-sha256 header.s=selector1-softathome1-onmicrosoft-com\n header.b=sivDE+VH;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=softathome.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com\n header.b=\"sivDE+VH\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=none (p=none dis=none)\n header.from=softathome.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=paul.henrys_ext@softathome.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\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 4fn9Sz2d89z1yDH\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 18:33:55 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id AF15583CF5;\n\tFri, 3 Apr 2026 09:33:43 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 8BC4C840B0; Fri, 3 Apr 2026 09:33:42 +0200 (CEST)", "from PA5P264CU001.outbound.protection.outlook.com\n (mail-francecentralazlp170100000.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c20a::])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 9BF258382A\n for <u-boot+nodisclaimer@lists.denx.de>;\n Fri, 3 Apr 2026 09:33:40 +0200 (CEST)", "from PA7P264CA0521.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:3db::11)\n by PARP264MB5417.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:3ed::7) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.19; Fri, 3 Apr\n 2026 07:33:37 +0000", "from PA2PEPF00019230.FRAP264.PROD.OUTLOOK.COM\n (2603:10a6:102:3db:cafe::fe) by PA7P264CA0521.outlook.office365.com\n (2603:10a6:102:3db::11) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.21 via Frontend Transport; Fri,\n 3 Apr 2026 07:33:37 +0000", "from proxy.softathome.com (149.6.166.170) by\n PA2PEPF00019230.mail.protection.outlook.com (10.167.242.36) with Microsoft\n SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.17\n via Frontend Transport; Fri, 3 Apr 2026 07:33:37 +0000", "from sah2lpt245.. (unknown [192.168.72.220])\n by proxy.softathome.com (Postfix) with ESMTPSA id E21542018F;\n Fri, 3 Apr 2026 09:33:36 +0200 (CEST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,\n SUSPICIOUS_RECIPS autolearn=no autolearn_force=no version=3.4.2", "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=eQ8m3hp8iYYdNSCR25qbQ4CX/iZI4J6UUecj/w2bEhxxHjn/nkbT0NUQhQxHhPNQVMfeAKAsCABtOi9bfzehan6lJq3GfIeBx6z1xmfWS2gH6N11NYf8LNU9KpkFnrjAJQvkj9JNiu6oKm6oYkpMgwMpqlP8jxqCLOA9tlsIznOKOMRZbJUL52BCuP4n6CoTOP3neWAqKiqFY4pB7qyi/PVUnO7goVjX8549Z05bUPzd37+elTULlQJl9xaDgZT9Y2j+B05TAfJeFjvoPyS67LrTi9Y0rhB8/8Y3L2Yd9UyT2gSacgdOYCP9UpbAr5uDTLhoLZSAdvjw0yobfh4Z7Q==", "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=fQsJ3nWKLrCCqz6iwkojsPoa2ttMtgdiHVEptLRS1pQ=;\n b=axwsMdc9NjB4FrYsRM48FksRq7wnrjRn5GVbc6iSnJFuXsZ38SeR71Gk0j9yM0B/JyIWJc/goMw+iM2wI8VwQQtK5I1qwejNL3LRtYBBPaz+98CfV2H11iIa8HlN5vkl8AB9nbBOb2RxTwZ0EtBZ3FBXoTcLaLxF9GFKsI6mvuZJpIi2qBEggA6vla/wmVney6qKo+Fkzz1d1mEjuXwIkExhgX2xSI4aKFbgliFsm0A7y6UgmIlCxFfjivHOusKY8ua28WVe0l+/tz7WwRvZgonnuXzOo5y4/nwmHB/xFvq79jEnOMQgwg8GYhQ6HJIfbIBw9ulC42p0G2qNIQaasg==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 149.6.166.170) smtp.rcpttodomain=chromium.org smtp.mailfrom=softathome.com;\n dmarc=bestguesspass action=none header.from=softathome.com; dkim=none\n (message not signed); arc=none (0)", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=fQsJ3nWKLrCCqz6iwkojsPoa2ttMtgdiHVEptLRS1pQ=;\n b=sivDE+VHTidfGaKCFpsLsEjWUd+LiuhBLwTjOqxvW6TEOR3Oji8kPZYxX8TJXVCxh5/zHGJFhfYc5dKKB12mWNeROtz3orKZ4BRhPrPQQ3pCPSTXBd0FFkmQEhmqmZS5yA7IPeh7xcAjfLfwN/7cIZRJTo9SXPYNRuZnX98KTOr1uPahsiFR5nUrXclNHeB/XepS3t0KLQO1Xwm+hzI7FNms+PB0CLlsaUDpcGhB3kb83U9+mB1Nzdzta1X2G3ZEjSys1qB772qNujISeHsQ8TZc8YvZXNBQr47giubwXOUi5hzavmXQbTARwPQC8SXjRhOjcdj/l7bUEOY1VTiuug==", "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 149.6.166.170)\n smtp.mailfrom=softathome.com; dkim=none (message not signed)\n header.d=none;dmarc=bestguesspass action=none header.from=softathome.com;", "Received-SPF": "Pass (protection.outlook.com: domain of softathome.com\n designates 149.6.166.170 as permitted sender)\n receiver=protection.outlook.com; client-ip=149.6.166.170;\n helo=proxy.softathome.com; pr=C", "From": "Paul HENRYS <paul.henrys_ext@softathome.com>", "To": "u-boot+nodisclaimer@lists.denx.de", "Cc": "sjg+nodisclaimer@chromium.org, trini+nodisclaimer@konsulko.com,\n alpernebiyasak+nodisclaimer@gmail.com,\n philippe.reynes+nodisclaimer@softathome.com,\n yan wang <yan.wang@softathome.com>", "Subject": "[PATCH v3 3/3] binman: collection: Set build_done on referenced\n entries", "Date": "Fri, 3 Apr 2026 09:32:51 +0200", "Message-ID": "<20260403073251.1051533-3-paul.henrys_ext@softathome.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260403073251.1051533-1-paul.henrys_ext@softathome.com>", "References": "<20260402192431.2421155-1-yan.wang@softathome.com>\n <20260403073251.1051533-1-paul.henrys_ext@softathome.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-EOPAttributedMessage": "0", "X-MS-PublicTrafficType": "Email", "X-MS-TrafficTypeDiagnostic": "PA2PEPF00019230:EE_|PARP264MB5417:EE_", "Content-Type": "text/plain", "X-MS-Office365-Filtering-Correlation-Id": "1a8b20ec-7710-410d-2aac-08de915351c7", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|82310400026|1800799024|376014|36860700016|22082099003|56012099003|18002099003;", "X-Microsoft-Antispam-Message-Info": "\n D31Lrbjj6Yy3yij+qq+vdjaBJwcjUNpzkHugdMBFwPGzsujoQGODAstSrOF7MADB0xaI71f9eYHAcKaYb66VVTOMQ68wFw0hNh671ES09n3NxNB576phqnYO/+PjMSm5h2VrlGc1qGwsoZ5jFFjleZ9QoYfPhSljAXUQxG4hvf/Rr8910Or+kQ62v+qblabY5MXjrptpW37jRlhv2+AZF0n3BDfClb9FdURKWDdPV6vfQ81CZd4XUr8XOFQwvMgXP64/PT4Mw5OeB0nYf04g6l07UZvdffm9dhqVbq+XhTZTClT59LzT5FTJGK3AhFGdeJxLpQqj0B2j9LKeU9J1mL2lAMKPaK6zXaRMUkakD0InKBRQXlqgbKELo5YFGdxZO1gd4+KgpsYNGvjVCrXKqvEm69Us0hltls5m6kNZJBv8KeMWMoWGviKIbzU2jzg4lcHJlcB52ds6AhtN9U33GPaFNP5t++5cQjW0fSb4A6sU37p85WkTJAWehsRpxY+eW6Qge6p5OqiyWrLCC3T6Ly1wBD9S9y4mVKjdSrhcBCcUwvnfjEZ/mtVPGhomHo8LDZaNJ7n5a1lLJ0pP5LwYBP7ICokVHsDudY4XtqDPtEglmEAOHGQ2ldMu0qPCvuA3s3JDagG7t4GwvH0BzH0DbgXQyE27QTJBfPuS+vcpybSkuerjOiteaW25mjWYtLI+hfbLAkSBxjJ34iuAut60wJCErDdPtFaifBs2CcqewugmOCjIH35JBCmkvwohJAoetheZN+qHeQxezVQJg+ADiQ==", "X-Forefront-Antispam-Report": "CIP:149.6.166.170; CTRY:FR; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:proxy.softathome.com; PTR:InfoDomainNonexistent;\n CAT:NONE;\n SFS:(13230040)(82310400026)(1800799024)(376014)(36860700016)(22082099003)(56012099003)(18002099003);\n DIR:OUT; SFP:1101;", "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1", "X-MS-Exchange-AntiSpam-MessageData-0": "\n dwGqVyIuO6QYRFPslLQ6u9GIe+6T6RqnZztcrDKK3nqJa9UcObRhm8wkJ3XvaOp+8QnKF163GbHreT77xUuTDpLiE/6PiOJXF9ozfIkoSvUUfMPBNyIBz4YvjQZmBM+cucpPvUiBCbYjXUlsitCn+pDZz6kW9r4J64/Zktj9zwgRXsjqkMQOAL+kt6Fv4uByK1cQQyINhDznStCcNxm8+sqZ2t1vfwHNlDEJ65YdtAAMyrjTywT3rNRnx7uJ55mzRWYG5x6kLTJ4CDR+hpqi57HhTZZ/s9rMWZU+k77ilu1aLoB4HFgobeXmetzAStswU1hcNjwMd8yUxIPEsODKIpcbT1psUrnPewq+TKBRUBtlezR/m+/zo34vhyZmbEH1t7swZCFGPSAo1z8f2jcFGCPQhm7HSATq46UORdsg047LPkusXiYn2J/3piFiu7dx", "X-OriginatorOrg": "softathome.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "03 Apr 2026 07:33:37.3012 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 1a8b20ec-7710-410d-2aac-08de915351c7", "X-MS-Exchange-CrossTenant-Id": "aa10e044-e405-4c10-8353-36b4d0cce511", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=aa10e044-e405-4c10-8353-36b4d0cce511; Ip=[149.6.166.170];\n Helo=[proxy.softathome.com]", "X-MS-Exchange-CrossTenant-AuthSource": "PA2PEPF00019230.FRAP264.PROD.OUTLOOK.COM", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "PARP264MB5417", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "From: yan wang <yan.wang@softathome.com>\n\nThe collection etype uses phandles in the 'content' property to\nreference other entries. Mark each referenced entry with build_done\nto avoid rebuilding the same entry data multiple times.\n\nThis is important for cases where rebuilding may change the data\ncontent, e.g. due to timestamps or random IVs in encryption.\n\nRefactor GetContentsByPhandle() to return both the entry object and\nits data.\n\nSigned-off-by: yan wang <yan.wang@softathome.com>\n---\nChanges for v3:\n- Rebase against 'next' branch\n\n tools/binman/etype/collection.py | 8 ++++++--\n tools/binman/etype/section.py | 5 +++--\n 2 files changed, 9 insertions(+), 4 deletions(-)", "diff": "diff --git a/tools/binman/etype/collection.py b/tools/binman/etype/collection.py\nindex c532aafe3e7..5ea6344bd25 100644\n--- a/tools/binman/etype/collection.py\n+++ b/tools/binman/etype/collection.py\n@@ -45,12 +45,16 @@ class Entry_collection(Entry):\n self.Info('Getting contents, required=%s' % required)\n data = bytearray()\n for entry_phandle in self.content:\n- entry_data = self.section.GetContentsByPhandle(entry_phandle, self,\n- required)\n+ entry, entry_data = self.section.GetContentsByPhandle(\n+ entry_phandle, self, required)\n if not required and entry_data is None:\n self.Info('Contents not available yet')\n # Data not available yet\n return None\n+\n+ # Mark referenced entries as build_done to avoid rebuilding\n+ entry.build_done = True\n+\n data += entry_data\n \n self.Info('Returning contents size %x' % len(data))\ndiff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py\nindex 6a26d687056..8530b7ee17f 100644\n--- a/tools/binman/etype/section.py\n+++ b/tools/binman/etype/section.py\n@@ -557,7 +557,8 @@ class Entry_section(Entry):\n return None\n \n Returns:\n- data from associated entry (as a string), or None if not found\n+ tuple: (entry, data) where entry is the Entry object and data is\n+ from that entry (as a string), or (entry, None) if data not found\n \"\"\"\n node = self._node.GetFdt().LookupPhandle(phandle)\n if not node:\n@@ -565,7 +566,7 @@ class Entry_section(Entry):\n entry = self.FindEntryByNode(node)\n if not entry:\n source_entry.Raise(\"Cannot find entry for node '%s'\" % node.name)\n- return entry.GetData(required)\n+ return entry, entry.GetData(required)\n \n def LookupEntry(self, entries, sym_name, msg):\n \"\"\"Look up the entry for a binman symbol\n", "prefixes": [ "v3", "3/3" ] }