From patchwork Fri Nov 21 00:10:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 75131 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E7F7CFA460 for ; Fri, 21 Nov 2025 00:08:52 +0000 (UTC) Received: from GVXPR05CU001.outbound.protection.outlook.com (GVXPR05CU001.outbound.protection.outlook.com [52.101.83.51]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.294.1763683731592821355 for ; Thu, 20 Nov 2025 16:08:52 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=j0RXnQtx; spf=pass (domain: axis.com, ip: 52.101.83.51, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kgb9uGstEgOJzwgj+ihTFIRi9+5Zv0xerEHGdV1v1PUnSIVBtdZ4h+W5+k0TaRHXe1D5RsUktMdhuXdWxDAzhkv2EYOcYPKCZTivjPtfqZvCophoMcfHE7ZHgHX22xaza1u1KRl6me1VBhz4vpIywqN10pFjlZWQ5mHew8pdIt8t2/PnBrmh2MRfb3hsu93c1RWMDNjYEWsc09RoBUGos9QdhJ1q+JSQO7e37GnC5X67E7asbBbfHMU4NPLp/SkGwdyMLMaaon9bZShE0Ypvq8N2xSb0AcYvMzFQHBrTqyju+PdUxEPHxV3AUapwJW5LtwkA6Cp5VmMD6/RU6BSNDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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; bh=/nmonzkhIg3HghfMDRDBj5eXdfJQvFl0CY3DDMJHZog=; b=oL1O8LkLOev0MpGjW4nbgUcGn0Cw5WVKyTZawPlk6SisbeBTYy/pMo7sXtvFujB1FtsqKZJCQekXWovs0ZJdRbLcJxLLOSQrtYgOmyea2WNXGUtNeDgZyCrtYxRNdqM/qyzet8zvmPp1VJ84cdxXgCqcznjXOv3YjoU6PAAo36tLPoBik9cp1Ob98kBglm66Fr+Gs5PDIyJZYJhTGT/A1Dx3Ajhtl8oPVMvAiXDN+lHFBxZNnWAeOOaYcVfIPbCJazJu8rkLpcvhWxOib3oqQ0ppG5SuAN3p1umf0IyiyP2+vYeOhW3goA5K/lRHPuyxZMioRx6/TZHXsst5mQ0ziA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/nmonzkhIg3HghfMDRDBj5eXdfJQvFl0CY3DDMJHZog=; b=j0RXnQtxy12o5PX8faOzljcaw5tcxhPrpR/q1rZYPePCu/aWyXHYqqyHnNKbwNnbcBjzqPj2bdRF85z7TtA213l72UifeD8jxxVW0gd7OhgGmpUpx/SZXq2fJ+MTUAHg+Z1xfoqQZjyiCTO+QanSsPW26sXv+Nf1/lrREGDr1ug= Received: from DU7PR01CA0044.eurprd01.prod.exchangelabs.com (2603:10a6:10:50e::28) by AS8PR02MB7142.eurprd02.prod.outlook.com (2603:10a6:20b:2e5::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9343.10; Fri, 21 Nov 2025 00:08:47 +0000 Received: from DB1PEPF000509E8.eurprd03.prod.outlook.com (2603:10a6:10:50e:cafe::87) by DU7PR01CA0044.outlook.office365.com (2603:10a6:10:50e::28) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9343.11 via Frontend Transport; Fri, 21 Nov 2025 00:08:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by DB1PEPF000509E8.mail.protection.outlook.com (10.167.242.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9343.9 via Frontend Transport; Fri, 21 Nov 2025 00:08:47 +0000 Received: from SE-MAIL21W.axis.com (10.20.40.16) by se-mail11w.axis.com (10.20.40.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1748.39; Fri, 21 Nov 2025 01:08:46 +0100 Received: from se-mail02w.axis.com (10.20.40.8) by SE-MAIL21W.axis.com (10.20.40.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Fri, 21 Nov 2025 01:08:46 +0100 Received: from se-intmail02x.se.axis.com (10.4.0.28) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Fri, 21 Nov 2025 01:08:46 +0100 Received: from pc56063-2339.se.axis.com (pc56063-2339.se.axis.com [10.92.3.2]) by se-intmail02x.se.axis.com (Postfix) with ESMTP id 2682328DA for ; Fri, 21 Nov 2025 01:08:46 +0100 (CET) Received: by pc56063-2339.se.axis.com (Postfix, from userid 14323) id 6F42E12058E; Fri, 21 Nov 2025 01:10:34 +0100 (CET) From: Peter Kjellerstedt To: Subject: [PATCH 1/3] configfragments.py: Correct the help for enable-fragment Date: Fri, 21 Nov 2025 01:10:26 +0100 Message-ID: <20251121001028.3756594-1-pkj@axis.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB1PEPF000509E8:EE_|AS8PR02MB7142:EE_ X-MS-Office365-Filtering-Correlation-Id: 10956f6f-4a3c-4498-a221-08de2892243a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|82310400026|376014|36860700013; X-Microsoft-Antispam-Message-Info: L8mMOOKmTiUvnxRgQytvDm0ZPMPz6bV4M1Nq8SFMDoQGD1x6rOlFkRbVoL1bwRBcbPmfD6zYzsFIiSDNqRhyUB7rZZsNUTzJaqVHnYq+n0PzykqgBeIRXcvia7h9C2Ci2718VRwCYb5rNQKmqMW8iO+uhs+LI3+SWDyn5KA7cvhAnU4QyFxHdu83N1tyqvurf2h/b6F4GDet6wOMM/qUAVERAtM5otSHGGzZViYQHSOrhPmtVHooN/dXkK+xuiEHGAaOn9y7bl6bviwFcwNE6oQTiMK0c0mDvKJLETLfkJRK/kYJ9hkmJLh18jw7sWTJCIy1fxBv+v3vaHYbWUhTP+GTfLUcV+UvLOyDGVOR+HfQV3A18U4qg3gGWPyYM+iWXPOECRbp1ZhuhoTncKDYHEwbAG6DBJBst/g7BSvxDUsAQcaHN/D6hJzgUju80QdovxqBtti64Z1u+wgYW87/h/95siSaFQUFXppJofIET5gjSdhPxfhvr2ye5hfHvo0jhO8YBzieKdrjB32CQdxE7KveUBTbDLT5M+sKQG1cT+UQz8+2a23rEj78MjXNuv/zjZT9+OJ0QfNFqugJTWSYPtAaPrJFBb3MhZ1aaDNi80gcQ4TM5ZKcfF7epiEmQ+9uYypjxJh8b+teyoT69Zb4UdtNlHM2/IFHQUrs6CAznWZCT4N0KlIXyPaiWl9yqZKPlORl0mTbMqFF4L6BcQkQlxhCW8d/tNPZNraUcliHCx4fHCnx2myznxQtvY6+M6HpTmiofUwbV5iurjMCOIhdvEWJ8UD9NDYfPD+1lK9vv90dz+Jhsvhnzp7WbCtEOZSurfN1tU5UkZXeIhvpgNFuucQ4syzr7efnqlWmh9u14EynHnF6TcwNS0QiO3BLfozyVps+aUY7KPU5rFcdgvNByHIdbCAbcHjZgipXCC3SOY8e9+bOyl//QFjoUx7DZRogXMoOCH/nUsj9WXeQQ1R+AognqpDbzkzlu09HgYwd/IkcenSnRWYATY/czQyuM56+Hfwi6TZvC8hmjRqWqgCmWq1e4EVy09tqja42AHCiyiyY3BAWmbwcWbOfHe2pv6SaqTLP64ICD8iqhny1NMo9BcIXgqlR1h51AIViOf0DpDyDolPej+WMeYA/wQSk8PKNUFU/XHCihtPpdGiQxKvucN40BWsJebNUsLOC7lH8V0DAM4hUpzwF4O9hd5H9156+N4xWzaJJOsvKYHBMkupMWfAvA1x4ZUnfrkWUPwjvowIf8qap5dcUnbkwTUnpFhg2CU0LZ9IY5cPIw0YMfVEFREHSNIiifxB10rBF11dB/11E1fyR5j4qB2EH3cMKQx03qb1rMvvfsSwCvL1gyhnTjNnYYzA8UybPU3nNQ/unuzLl27/v43YP+AjLnPFivLwMVXdDjcKXZXel/TFDE+fMc8RN+Xos+v3rx3p/Xh42oFOVWsd++Cb+fGWr+E0XAG4FDL78TEueYAZIpZpDJMDOG2Bd5jtaGUK08n99ApwfXGgK6Y1aqjUy0LZb3RDkmECJ88IldmDGhRq83BlMryzDnoyXMGZIlk22hqpQA7JSF2k= X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(82310400026)(376014)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2025 00:08:47.0832 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 10956f6f-4a3c-4498-a221-08de2892243a X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509E8.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR02MB7142 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 21 Nov 2025 00:08:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/226645 The help entry for --quiet had been added to list-fragments rather than enable-fragment. Due to the fact that --quiet is a global option, this actually adds a dummy --quiet option as it would otherwise hide the global option, but would never be set since any --quiet argument would already have been parsed when this option is parsed. Signed-off-by: Peter Kjellerstedt --- meta/lib/bbconfigbuild/configfragments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/lib/bbconfigbuild/configfragments.py b/meta/lib/bbconfigbuild/configfragments.py index 6fdac33a5d..f79e238297 100644 --- a/meta/lib/bbconfigbuild/configfragments.py +++ b/meta/lib/bbconfigbuild/configfragments.py @@ -197,7 +197,9 @@ class ConfigFragmentsPlugin(LayerPlugin): parser_enable_fragment = self.add_command(sp, 'enable-fragment', self.do_enable_fragment, parserecipes=False) parser_enable_fragment.add_argument("--confpath", default=default_confpath, help='Configuration file which contains a list of enabled fragments (default is {}).'.format(default_confpath)) - parser_list_fragments.add_argument('--quiet', '-q', action='store_true', help='Do not print descriptions of the newly enabled fragments') + # Store the quiet argument in quiet_dummy. This is because --quiet is a + # global option and this one is only here to add an entry for --help. + parser_enable_fragment.add_argument('--quiet', '-q', action='store_true', dest='quiet_dummy', help='Do not print descriptions of the newly enabled fragments') parser_enable_fragment.add_argument('fragmentname', help='The name of the fragment (use list-fragments to see them)', nargs='+') parser_disable_fragment = self.add_command(sp, 'disable-fragment', self.do_disable_fragment, parserecipes=False) From patchwork Fri Nov 21 00:10:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 75132 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E7BCCFA45F for ; Fri, 21 Nov 2025 00:08:52 +0000 (UTC) Received: from DUZPR83CU001.outbound.protection.outlook.com (DUZPR83CU001.outbound.protection.outlook.com [52.101.66.23]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.293.1763683731017233644 for ; Thu, 20 Nov 2025 16:08:51 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=XTkjUzwb; spf=pass (domain: axis.com, ip: 52.101.66.23, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yyebDMar1g3clSXZ2aPfcUBcGUQsHIoqNnSBx3+4YSMd30okXTs5gkJmxrRjAuGtWUCARvOEGFmbmyKr+lPjqgkeZcmjbD4ETmyXethOB580YfB35xsDUiZ3tcaDUVtP7cUhMpM44RIIRZ5hiK8A/34sz6DD/8fjhIu/sEOB/nylc+3DRLVB44JLWoL12h8NXMixBmtYaKa+DSxZIOSywglY7q/tOm3VLWt0fmZMZGWtafiLWwqAE+hAbXBA7eYni24t1CbaurE4Eouoyea9vvdExQTrMRvQYQjE0MmYh2O+lqSv7nWVdFRlq6i1zlrt439cMVeoUY0WBB/Id0XC0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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; bh=gZd3MdKfShjbECTISRl3VS6YrrBtwAHSQo7zURasIXo=; b=f4czMNjD2Bm5rzw1Z4KfCr8D+kQDnadrSsxKAjdxMO+BYRP1gBTQasFwJyaOTcnlEAILzFAfiB4TPJd5KggGQydt4O8OXYcja6wX2LtZ/noLMwzSY3R5vy+Mixlaw786FXvCHOuUznzVt9J2pxkoScmRdD528Z2qhSnEs21RwrIBUrGPL5LT+Hd0YyM/T6xeEJRRm8czfTabipzVi0KhCDrGdZPzk0QNfjuM+A/2jVtMkv7/BpftZDNB94cQypoVVkOeSiTZ4WMjojSOs+Dwi3W58BaiNReSKCHUvYhv7n0p53Y1GYWQc/6VjjNyDUlWWzYfl5fSWSoe4Vp2R6OKGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gZd3MdKfShjbECTISRl3VS6YrrBtwAHSQo7zURasIXo=; b=XTkjUzwb4DiO0IpHZ3s2Gr8GZ+23xi5UZ43QvRxCSuQqJWlQAre4ypyHW0s+BJ2zuy5WAPaZoC8hDbKnP8qmUH9nqEI4JH/hMCDKvTGQE5+NOtuXhwDkoMUwv20WdyZNobE5xPcneI+R0GsmMYtJNoaCHrq39sIlbjKlwQtpMP0= Received: from DU7PR01CA0029.eurprd01.prod.exchangelabs.com (2603:10a6:10:50e::7) by OSKPR02MB11482.eurprd02.prod.outlook.com (2603:10a6:e10:9e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9343.11; Fri, 21 Nov 2025 00:08:46 +0000 Received: from DB1PEPF000509E8.eurprd03.prod.outlook.com (2603:10a6:10:50e:cafe::4a) by DU7PR01CA0029.outlook.office365.com (2603:10a6:10:50e::7) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9343.11 via Frontend Transport; Fri, 21 Nov 2025 00:08:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by DB1PEPF000509E8.mail.protection.outlook.com (10.167.242.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9343.9 via Frontend Transport; Fri, 21 Nov 2025 00:08:46 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail11w.axis.com (10.20.40.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1748.39; Fri, 21 Nov 2025 01:08:46 +0100 Received: from se-intmail01x.se.axis.com (10.4.0.28) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Fri, 21 Nov 2025 01:08:46 +0100 Received: from pc56063-2339.se.axis.com (pc56063-2339.se.axis.com [10.92.3.2]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 0B8332DDB for ; Fri, 21 Nov 2025 01:08:46 +0100 (CET) Received: by pc56063-2339.se.axis.com (Postfix, from userid 14323) id 729FB120600; Fri, 21 Nov 2025 01:10:34 +0100 (CET) From: Peter Kjellerstedt To: Subject: [PATCH 2/3] configfragments.py: Make list-fragments fail early Date: Fri, 21 Nov 2025 01:10:27 +0100 Message-ID: <20251121001028.3756594-2-pkj@axis.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251121001028.3756594-1-pkj@axis.com> References: <20251121001028.3756594-1-pkj@axis.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB1PEPF000509E8:EE_|OSKPR02MB11482:EE_ X-MS-Office365-Filtering-Correlation-Id: 6812b3ee-4397-4438-2c3e-08de289223e9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: 2tJ6tiwgioV6ycP82aIzQVxyVj9v1Vu3hCiceF2VW59wKbTYcvKw4PRmDqs6qqIOBYNp+gUooX2K9VpBl+cKEh4+HwictzBGwwUq5IzbeAYrrE6Zg3ZIh+YS7vP1s+kKtHjaKLRubjTYp68Q8C81SfVLoOOGtQOzq9pj/3bIf9+zr57TJOEu3clov0AdwjzRI/gSJN3Jj7zwHM0fb4cTeXycHiPJhj2kKkyyv6xnZUzRjAeTel8StB8VRPR//0Fm45W8T897fCmCAQiojXhG7Pmp67quxcfuTqkvJAOwcPm4DMZ6mOfliHFIRRYzyoaqaQycf8XBdSbOHNiEFofp/PZTY7UXRX9fKpVCWyL5zqcb2RwAyX8bXD3Z6fXcNmqG4tYJB97xBAptqp+ySLePGp9km+m3NNvl2m1VsGb5KKklHuu9avVs7A6e4sjlTNNS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L3N0JuRqB/1LqelCvmXIcHANghNV3uoRZ2ZWOAKNuwOCXAPplXD8zJE= X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700013)(82310400026)(1800799024)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2025 00:08:46.5485 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6812b3ee-4397-4438-2c3e-08de289223e9 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509E8.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSKPR02MB11482 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 21 Nov 2025 00:08:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/226643 If a fragment has not been configured correctly, make list-fragments fail with an error before it has output information about any built-in fragments. Signed-off-by: Peter Kjellerstedt --- meta/lib/bbconfigbuild/configfragments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/lib/bbconfigbuild/configfragments.py b/meta/lib/bbconfigbuild/configfragments.py index f79e238297..15142ec9f9 100644 --- a/meta/lib/bbconfigbuild/configfragments.py +++ b/meta/lib/bbconfigbuild/configfragments.py @@ -75,11 +75,13 @@ class ConfigFragmentsPlugin(LayerPlugin): print('{}\tSets {} = "{}"'.format(f, builtin_dict[prefix], value)) print('') + allfragments = self.discover_fragments() + all_enabled_fragments = (self.tinfoil.config_data.getVar('OE_FRAGMENTS') or "").split() all_builtin_fragments = (self.tinfoil.config_data.getVar('OE_FRAGMENTS_BUILTIN') or "").split() print_builtin_fragments(all_builtin_fragments, all_enabled_fragments) - for layername, layerdata in self.discover_fragments().items(): + for layername, layerdata in allfragments.items(): layerdir = layerdata['layerdir'] fragments = layerdata['fragments'] enabled_fragments = [f for f in fragments if f['name'] in all_enabled_fragments] From patchwork Fri Nov 21 00:10:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 75133 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 652A0CFA459 for ; Fri, 21 Nov 2025 00:08:52 +0000 (UTC) Received: from DB3PR0202CU003.outbound.protection.outlook.com (DB3PR0202CU003.outbound.protection.outlook.com [52.101.84.46]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.325.1763683731597935413 for ; Thu, 20 Nov 2025 16:08:52 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=TMTIT3cx; spf=pass (domain: axis.com, ip: 52.101.84.46, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Jces5p/W7nWmIkRaPUR0hOs/yQYE4L/OLbvq4sMGhn2nj1CcjIYZ2hABc4KllgYQNANBvxvmPYofC8cD8G+mEb79gRjR8kb+fDzm/y8lS5eSfuAmEJTK+yTmXTODUvWJ42O8zjaDLRLiqzDqV7ovvAuJn/qGjhLbU4wQb3BHskrU+SNP0cHLlN9H0dh4YpkVtNbOtZxqzpgnXiqYUu7/fMchKHJZWYR+RA6pZrYAelNZM8TQeYU9N3miviMyYJbL8RiDyQWjVB0JBESY/k1eGdLt5BEdtqrvhvFxEMHEP4MWfT+LO+qLhMXi6ooGMBReGfZyoHF8biDvzsN6LGREdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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; bh=W+vLQZzzuaGxKwKuSHoGfsSX+nANDWvAh6ojCQoghT8=; b=L9WJuFbu5lcPqlt0rGcO68AFegIq9CdROE1ZmBuOi8WZdBA3BGsz6UWUVREL0UNRk86tGQ1eIIiNAb6BpIpwctNgbfTkwQl/8ooQz0fybNOV1OH1drjM3IvEKrqZej4BK2GRAGq1FhQfkS6MQS7gEpxATfvEpYkx3I8aJ1qkEIy6NgvR8BD74+t6/l9wU9Ao6xu/fB4qHQiPC8bC3kAcXMuVe6X7kbhstpa9Hl29e/yIICK1Z5TXxPLqzXgK9LOpxb9eZG5NzYfCzTIOrftoji6nSoGX55qrNkfaW/30d8P41PzdaflhRJsb7HH/Bq5BfqDddZJCJc/LE7xH5/dLrA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W+vLQZzzuaGxKwKuSHoGfsSX+nANDWvAh6ojCQoghT8=; b=TMTIT3cxfD8VJonRHunMFO2p7ZsW+0lovZJnPBdZhUjtBu0R0Cs/wqRy8LhINaJWPDyZTTyvDR38DV6cPcHYR03wm814+qXHKE0WqqFtID0Qw3cFxP6aS5k+xWRim6EHwLPAaA7CDY3VspHqnk/HYZ+7TyevtcJh+PHc+/gqLYE= Received: from DU7PR01CA0037.eurprd01.prod.exchangelabs.com (2603:10a6:10:50e::27) by AM7PR02MB6307.eurprd02.prod.outlook.com (2603:10a6:20b:1b2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9343.10; Fri, 21 Nov 2025 00:08:47 +0000 Received: from DB1PEPF000509E8.eurprd03.prod.outlook.com (2603:10a6:10:50e:cafe::a2) by DU7PR01CA0037.outlook.office365.com (2603:10a6:10:50e::27) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9343.11 via Frontend Transport; Fri, 21 Nov 2025 00:08:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by DB1PEPF000509E8.mail.protection.outlook.com (10.167.242.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9343.9 via Frontend Transport; Fri, 21 Nov 2025 00:08:47 +0000 Received: from SE-MAIL21W.axis.com (10.20.40.16) by se-mail11w.axis.com (10.20.40.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1748.39; Fri, 21 Nov 2025 01:08:46 +0100 Received: from se-mail02w.axis.com (10.20.40.8) by SE-MAIL21W.axis.com (10.20.40.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Fri, 21 Nov 2025 01:08:46 +0100 Received: from se-intmail02x.se.axis.com (10.4.0.28) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Fri, 21 Nov 2025 01:08:46 +0100 Received: from pc56063-2339.se.axis.com (pc56063-2339.se.axis.com [10.92.3.2]) by se-intmail02x.se.axis.com (Postfix) with ESMTP id 2DC3D2911 for ; Fri, 21 Nov 2025 01:08:46 +0100 (CET) Received: by pc56063-2339.se.axis.com (Postfix, from userid 14323) id 767CB12058E; Fri, 21 Nov 2025 01:10:34 +0100 (CET) From: Peter Kjellerstedt To: Subject: [PATCH 3/3] configfragments.py: Improve reporting of errors and warnings Date: Fri, 21 Nov 2025 01:10:28 +0100 Message-ID: <20251121001028.3756594-3-pkj@axis.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251121001028.3756594-1-pkj@axis.com> References: <20251121001028.3756594-1-pkj@axis.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB1PEPF000509E8:EE_|AM7PR02MB6307:EE_ X-MS-Office365-Filtering-Correlation-Id: 57d29d2e-a0fe-4173-8103-08de28922476 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: fdTEGo9MIhSPEQWFq/wZHK5mG1vesTZEQY6fyJzgxAR7FEd5QnfvUNuSdUi8/jMXmEvTqz+ngjjCGgg8lb4xe32BC91rtqZgSgyXwN/MtbK+JaehdmGzN4PoMFKGK8KqPoYxCdZM39Y25LCf2DttJuDUi4Rtv2wiweBogFBggkXUYhmFePwn3v1yB0qRZYLCJoUQJgbUQX8OiOckCiVO8hVgSqH1DQLPDuw5OxqIGZJ/XTedj6u9jyCN6WlcAj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eKdQmJLO7AIebrJnTYbOieqrBmjL55NIW6GkaVBMna3brl2U7CwIF7PXu8tyowvYyuiBR58qOdEvUBjdlW7hr+JizTP5+Pw1RzPtW16lCHn6S85XQFZgWXv81s6GRWgJNqBUTRNTGU149tmUZJKbiI/2tSggZPqmllf+JE/KjfkBdfDZ2qAPIQ6hls7Tx0ZYxB9WWB8uAY999Y881RZlIHh7bfgX7RS29yUtfoM= X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(36860700013)(1800799024)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2025 00:08:47.4739 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 57d29d2e-a0fe-4173-8103-08de28922476 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509E8.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR02MB6307 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 21 Nov 2025 00:08:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/226644 Use bb.fatal() and bb.warn() to report errors and warnings. This makes for a nicer experience for the user, and allows the warnings to be silenced using the --quiet option. Signed-off-by: Peter Kjellerstedt --- meta/lib/bbconfigbuild/configfragments.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meta/lib/bbconfigbuild/configfragments.py b/meta/lib/bbconfigbuild/configfragments.py index 15142ec9f9..8365a15a32 100644 --- a/meta/lib/bbconfigbuild/configfragments.py +++ b/meta/lib/bbconfigbuild/configfragments.py @@ -28,10 +28,10 @@ class ConfigFragmentsPlugin(LayerPlugin): summary = d.getVar('BB_CONF_FRAGMENT_SUMMARY') description = d.getVar('BB_CONF_FRAGMENT_DESCRIPTION') if not summary: - raise Exception('Please add a one-line summary as BB_CONF_FRAGMENT_SUMMARY = \"...\" variable at the beginning of {}'.format(path)) + bb.fatal('Please add a one-line summary as BB_CONF_FRAGMENT_SUMMARY = "..." variable at the beginning of {}'.format(path)) if not description: - raise Exception('Please add a description as BB_CONF_FRAGMENT_DESCRIPTION = \"...\" variable at the beginning of {}'.format(path)) + bb.fatal('Please add a description as BB_CONF_FRAGMENT_DESCRIPTION = "..." variable at the beginning of {}'.format(path)) return summary, description @@ -131,7 +131,7 @@ class ConfigFragmentsPlugin(LayerPlugin): enabled_fragments = origvalue.split() for f in args.fragmentname: if f in enabled_fragments: - print("Fragment {} already included in {}".format(f, args.confpath)) + bb.warn("Fragment {} already included in {}".format(f, args.confpath)) else: # first filter out all built-in fragments with the same prefix as the one that is being enabled enabled_fragments = [fragment for fragment in enabled_fragments if not(self.builtin_fragment_exists(fragment) and self.fragment_prefix(fragment) == self.fragment_prefix(f))] @@ -141,7 +141,7 @@ class ConfigFragmentsPlugin(LayerPlugin): fragments = self.discover_fragments() for f in args.fragmentname: if not self.get_fragment(f, fragments) and not self.builtin_fragment_exists(f): - raise Exception("Fragment {} does not exist; use 'list-fragments' to see the full list.".format(f)) + bb.fatal("Fragment {} does not exist; use 'list-fragments' to see the full list.".format(f)) self.create_conf(args.confpath) modified = bb.utils.edit_metadata_file(args.confpath, ["OE_FRAGMENTS"], enable_helper) @@ -160,7 +160,7 @@ class ConfigFragmentsPlugin(LayerPlugin): if f in enabled_fragments: enabled_fragments.remove(f) else: - print("Fragment {} not currently enabled in {}".format(f, args.confpath)) + bb.warn("Fragment {} not currently enabled in {}".format(f, args.confpath)) return " ".join(enabled_fragments), None, 0, True self.create_conf(args.confpath)