From patchwork Thu Mar 26 18:57:32 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Woolley X-Patchwork-Id: 84604 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 0DDB510AB808 for ; Thu, 26 Mar 2026 18:57:57 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.56448.1774551466195929523 for ; Thu, 26 Mar 2026 11:57:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=CxXaZd0i; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=75450e5aee=rob.woolley@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62QFhRcI3113430; Thu, 26 Mar 2026 18:57:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=IGetQA9zr2P5el2Wb3vuXqoEFTAKlXErJkjERPHheEg=; b= CxXaZd0iCQgdWnkuZWNAMi0E2NSwlrEoDnuzgSED9CPstk7yrrsVaBuc/5E2dIn1 ocB8tFml9db3fSmAitn4/dhSgNqZve9xxAn1t01L49RBOlhVHTaKzUxr+IUruFOD tNArDDGyCyc4Gk9aWmIDCjkyHy8lsuTVMbqKUSt0y2X5tuJs6aROdhGoErQ/4fnO AkQMBP0l8kHjUjOZpjZdwCSaPUumEvogJuZli9rxAJ9abc2MjvBrw2FGu+eH9Uga fR3/B+26NAIlzRySRsQrQGCVfbycuhusNbOasNBaVS2NacKKVTjdZY9n7m9wr16H Q/rw+2FiZxhEmYPHg1VX8w== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4d1gj872bp-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 26 Mar 2026 18:57:44 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Thu, 26 Mar 2026 11:57:43 -0700 Received: from ala-lpggp3.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Thu, 26 Mar 2026 11:57:43 -0700 From: Rob Woolley To: CC: Subject: [PATCH 01/11] bitbake-setup: Remove extraneous variable from str.format() Date: Thu, 26 Mar 2026 11:57:32 -0700 Message-ID: <20260326185742.542268-2-rob.woolley@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260326185742.542268-1-rob.woolley@windriver.com> References: <20260326185742.542268-1-rob.woolley@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: KhJcDoBks0ZcBc8dOVh0axrNmfJy6TGz X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI2MDEzNiBTYWx0ZWRfXwSbIhiG2PIcW F5oh5H3lt4Si49V3gxT1QDhEBKjwYOqpP+F2HzGuDJYbWGPALOdm+MAc1pYUOH4f1HyxgBWCqUo KLcjeDTKKnwt5YezSTxBvkr8c2BGm9Wszg6peEtKG60HnWKP+4fE+ctpVZXh11kTNFPvjh+jOTq J5sXL1jgcqduWIRx0P7yxQkq90mzRuM35N3OKxrVs5CCNOqlvQj1BwRU96FnG8awkhzs5yYTSbS 9cy4aosw76gpQGMgkEEqAQ1trWmrm+waaCwXatueSXtQ/F/8x37jtlkigEictOxKXV7B4/uKMpY 08va7I2ocJiGKC1pSTMwZN1YoKgtJGzlMwu/rQ/NTtCJUhN6Aw48bOV5f22oyPMajqNTAGuhOMG IcxfsGobNMiZe5IfVoT6xEr98LqNksJy4bc3/9HcWfSQg4LudtcegkJzpoTZ2iLeIiwDy/nmANQ i9CuLzAczRRApAMSQfw== X-Authority-Analysis: v=2.4 cv=LtqfC3dc c=1 sm=1 tr=0 ts=69c581a8 cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=2V6DY6BgAAAA:8 a=d8dENnQg9s709Fn3q1QA:9 a=FdTzh2GWekK77mhwV6Dw:22 a=ldqKKs2zR4t-S6fqr-1n:22 X-Proofpoint-GUID: KhJcDoBks0ZcBc8dOVh0axrNmfJy6TGz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-26_03,2026-03-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260136 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 ; Thu, 26 Mar 2026 18:57:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19247 The invocation of str.format() supplied an extra parameter that was not being referenced in the string. Signed-off-by: Rob Woolley --- bin/bitbake-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index dcad9c169..212da4f88 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -1176,7 +1176,7 @@ def main(): list_configs(all_settings, args) return - logger.info('Bitbake-setup is using {} as top directory.'.format(top_dir, global_settings_path(args))) + logger.info('Bitbake-setup is using {} as top directory.'.format(top_dir)) if args.func == init_config: init_config(top_dir, all_settings, args) From patchwork Thu Mar 26 18:57:33 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Woolley X-Patchwork-Id: 84603 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 2AE3C10AB806 for ; Thu, 26 Mar 2026 18:57:47 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.55626.1774551466637518229 for ; Thu, 26 Mar 2026 11:57:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=T8WSbge1; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=75450e5aee=rob.woolley@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62QFhRcJ3113430; Thu, 26 Mar 2026 18:57:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=bOLMXbc8hguZiZ1S3HP5FY/P6157GT/CdCEFKcGi0jg=; b= T8WSbge1iIMyqxS1df2uqbU5v52mYWcGCFyxsdKRygfQzFzW3pkje/OlaVcWSeWy JDejNlbU9xGyq4e6pNVm6Mbj6gIXFyV/dc1w0Op3nJJWULWvma1eNL23Fr/llyzh IUOBLugkqRdnAkm+swJxZy9hGzObbqTIDHOgzUWGehcfmZ+ewb4lLWi1NJgt2VAh zokAQ1xnCH/RTo/rQmqohtKSighvkTjG3fitcgI4qoJKPfeIWprFpKMvw+YUow7b qH//c/ztgXwF6QEfXyplWQpwrq9iVjtAw6JtEB5U/ZZvhVMgd9ivdO0WYeg5hYfw DbdFh9bh3LuKLo+6nf+CSQ== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4d1gj872bp-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 26 Mar 2026 18:57:45 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Thu, 26 Mar 2026 11:57:43 -0700 Received: from ala-lpggp3.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Thu, 26 Mar 2026 11:57:43 -0700 From: Rob Woolley To: CC: Subject: [PATCH 02/11] bitbake-setup: Resolve unused loop control variables Date: Thu, 26 Mar 2026 11:57:33 -0700 Message-ID: <20260326185742.542268-3-rob.woolley@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260326185742.542268-1-rob.woolley@windriver.com> References: <20260326185742.542268-1-rob.woolley@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: VMoXELU8EUhvwFdCxlxrFnzsZTTMXdG8 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI2MDEzNiBTYWx0ZWRfX3Yo0JK7NrC6u mmfozN93b5qXCoZ9CcTq7rPFxX1ugmDGdOjae09l2zS4J0dBvAzd3bCnQOTqYWOgwNKP/xiC+Od lREDUUV/CRQJ6+khcviK0fyZQfyCEwBxN7USwLjbeY5E69t9WG7exBkIETIBoccHimSiAepzDX4 nU9zD3XmQSadwk90ugaUv3RymEymhQSnJQNhFsOsrlulqu/Ppz8GsFzysmflFmU+cBV2rbz2ZPM 5XoIEwlgu58SdAoA87lXOW/6Du/EiOimIydPpb0t1YsyIdxhX19e8yzuIJNQe7qjn0jzkhpdMBi 7OdZMfskKE4ctvb+/vImcTHG3VYmDB5BRcu7KDw/dlJf9uoEdkhIaGiwExoKaSB/BUjzal985ci UMzxRkiq565oK70/1OXgYk+tS5y11LEUZZmGityHX6Pos1F1/e0UTN1o3RXdzs1StfKphO+hLEo MLe9Ms2g3mt5bukhHNw== X-Authority-Analysis: v=2.4 cv=LtqfC3dc c=1 sm=1 tr=0 ts=69c581a9 cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=IJQjoT7YMls2vlgdCqcA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: VMoXELU8EUhvwFdCxlxrFnzsZTTMXdG8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-26_03,2026-03-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260136 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 ; Thu, 26 Mar 2026 18:57:47 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19246 The ruff lint tool reported loop control variables that were not being used: B007 Loop control variable `dirs` not used within loop body Adding underscore as a prefix helps indicate that it is not being used inside the loop. Signed-off-by: Rob Woolley --- bin/bitbake-setup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index 212da4f88..60d324b39 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -133,7 +133,7 @@ def commit_config(config_dir): def _write_layer_list(dest, repodirs): layers = [] for r in repodirs: - for root, dirs, files in os.walk(os.path.join(dest,r)): + for root, _dirs, files in os.walk(os.path.join(dest,r)): if os.path.basename(root) == 'conf' and 'layer.conf' in files: layers.append(os.path.relpath(os.path.dirname(root), dest)) layers_f = os.path.join(dest, ".oe-layers.json") @@ -414,7 +414,7 @@ The bitbake configuration files (local.conf, bblayers.conf and more) can be foun logger.plain("The bitbake configuration files (local.conf, bblayers.conf and more) can be found in\n {}/conf\n".format(bitbake_builddir)) def get_registry_config(registry_path, id): - for root, dirs, files in os.walk(registry_path): + for root, _dirs, files in os.walk(registry_path): for f in files: if f.endswith('.conf.json') and id == get_config_name(f): return os.path.join(root, f) @@ -818,7 +818,7 @@ def has_expired(expiry_date): def list_registry(registry_path, with_expired): json_data = {} - for root, dirs, files in os.walk(registry_path): + for root, _dirs, files in os.walk(registry_path): for f in files: if f.endswith('.conf.json'): config_name = get_config_name(f) From patchwork Thu Mar 26 18:57:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Woolley X-Patchwork-Id: 84609 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 76BB510AB810 for ; Thu, 26 Mar 2026 18:57:57 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.55628.1774551467067369589 for ; Thu, 26 Mar 2026 11:57:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=LHma1iTX; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=75450e5aee=rob.woolley@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62QFhRcK3113430; Thu, 26 Mar 2026 18:57:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=7+ErdocRkrHOIpKWr3dg2oKiLu0Gvgg3QYi5aKFtPKo=; b= LHma1iTX02vrUPzkpWvujDuZhes1lPdwyUgvfBZ4zMU8Y5TiHBnaId3nFBinsxDe /OZ7T90Lmk4kIYPLsgS+iszN7qkV522mOGN0CNiC4Ca3HV42MKvj4scUAYgltBZU sDqQ2q0bDWyGzM9PX5EKBEom7OCU2fewa+Lo4rlTomF1fSUHfTVW9LJDegcnz6B4 jUCpfCBQp1U7QafuQdTUwh4ckVmbX69PrJo8dcLAuybOXJ1DRe+ft6GV/56Lf6lk vlyY/NmbItfPwebwMD6vzRuO7o5ld9nt3b++0dkwdMHC6i2jM3VFNr2RXANWYVuP 5ELJhxRW6UiJwqUs225GdA== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4d1gj872bp-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 26 Mar 2026 18:57:45 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Thu, 26 Mar 2026 11:57:43 -0700 Received: from ala-lpggp3.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Thu, 26 Mar 2026 11:57:43 -0700 From: Rob Woolley To: CC: Subject: [PATCH 03/11] bitbake-setup: Fix ambiguous variable names Date: Thu, 26 Mar 2026 11:57:34 -0700 Message-ID: <20260326185742.542268-4-rob.woolley@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260326185742.542268-1-rob.woolley@windriver.com> References: <20260326185742.542268-1-rob.woolley@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: tg9cKQXp5Y3mL9iQQ09tOVuUUhEE4dXg X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI2MDEzNiBTYWx0ZWRfX58ME+RwmRtBi kMEVv9Z6LYgN2zaCJqCwvo42YhQoRyO/6uBNTj8WBp1HrY6RbJ+74OGtNoALYVibn8iPfPaTso9 6Sc2dUDBj1H7CziCKUhGMd4aisfegu5sPQjjwVCgZjLU5rEvfYzTjm/ZYbawl1mabPSnBYmHgRr 1etUiFrQcTW2YDs2ccI36qSDI2DTBi5ZkpIlDDC+TJanHKSuQgqEySE39ASlQete+YXMICc7z1B 7rowNToL0JMhOBNv8hyTIbUqW66xTTAxYSC4i08ij6NsgiN1TyiRCAcfcd5KMWui31OwY+9sP+6 ILMXWTUTRjKsqbeqYUZeE1XW5vuf20rLnLWZthugVE8WcvrHYZueRj1KnHRbm/Sev8iqbaTpIsg l7fQk1yRKOC7J6D3dYtQ9nTcl0wWI+Vyw5Gu1luFFCuNNRwwQ8zJI7djrqJiT5rEiBJ+jfTbeeh uF+pHTsO2C7JR7JnIhg== X-Authority-Analysis: v=2.4 cv=LtqfC3dc c=1 sm=1 tr=0 ts=69c581a9 cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=Aatwvv_jfEF2aNKkGsIA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: tg9cKQXp5Y3mL9iQQ09tOVuUUhEE4dXg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-26_03,2026-03-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260136 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 ; Thu, 26 Mar 2026 18:57:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19248 The ruff lint tool detected use of ambiguous variables that were named with a single letter: E741 Ambiguous variable name: `l` E741 Ambiguous variable name: `f` This replaces the variables with a descriptive variable to add clarity. Signed-off-by: Rob Woolley --- bin/bitbake-setup | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index 60d324b39..828459a00 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -231,11 +231,11 @@ bitbake-setup init -L {} /path/to/repo/checkout""".format( if oesetupbuild: links = {'setup-build': oesetupbuild, 'oe-scripts': os.path.dirname(oesetupbuild), 'oe-init-build-env-dir': oeinitbuildenvdir} - for l,t in links.items(): - symlink = os.path.join(layerdir, l) + for link,item in links.items(): + symlink = os.path.join(layerdir, link) if os.path.lexists(symlink): os.remove(symlink) - os.symlink(os.path.relpath(t,layerdir),symlink) + os.symlink(os.path.relpath(item,layerdir),symlink) return layers_fixed_revisions @@ -244,19 +244,19 @@ def setup_bitbake_build(bitbake_config, layerdir, setupdir, thisdir, update_bb_c os.makedirs(build_conf_dir) layers_s = [] - for l in layers: - l = os.path.join(layerdir, l) - layers_s.append(" {} \\".format(l)) + for layer in layers: + layer = os.path.join(layerdir, layer) + layers_s.append(" {} \\".format(layer)) - for l in filerelative_layers: + for layer in filerelative_layers: if thisdir: - l = os.path.join(thisdir, l) + layer = os.path.join(thisdir, layer) else: raise Exception("Configuration is using bb-layers-file-relative to specify " \ "a layer path relative to itself. This can be done only " \ "when the configuration is specified by its path on local " \ "disk, not when it's in a registry or is fetched over http.") - layers_s.append(" {} \\".format(l)) + layers_s.append(" {} \\".format(layer)) layers_s = "\n".join(layers_s) bblayers_conf = """BBLAYERS ?= " \\ @@ -415,9 +415,9 @@ The bitbake configuration files (local.conf, bblayers.conf and more) can be foun def get_registry_config(registry_path, id): for root, _dirs, files in os.walk(registry_path): - for f in files: - if f.endswith('.conf.json') and id == get_config_name(f): - return os.path.join(root, f) + for file in files: + if file.endswith('.conf.json') and id == get_config_name(file): + return os.path.join(root, file) raise Exception("Unable to find {} in available configurations; use 'list' sub-command to see what is available".format(id)) def merge_overrides_into_sources(sources, overrides): @@ -819,10 +819,10 @@ def list_registry(registry_path, with_expired): json_data = {} for root, _dirs, files in os.walk(registry_path): - for f in files: - if f.endswith('.conf.json'): - config_name = get_config_name(f) - config_data = json.load(open(os.path.join(root, f))) + for file in files: + if file.endswith('.conf.json'): + config_name = get_config_name(file) + config_data = json.load(open(os.path.join(root, file))) config_desc = config_data["description"] expiry_date = config_data.get("expires", None) if expiry_date: From patchwork Thu Mar 26 18:57:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Woolley X-Patchwork-Id: 84610 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 89BDB10AB812 for ; Thu, 26 Mar 2026 18:57:57 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.56450.1774551467556634840 for ; Thu, 26 Mar 2026 11:57:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=RKNAmbB3; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=75450e5aee=rob.woolley@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62QFhRcL3113430; Thu, 26 Mar 2026 18:57:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=7dhn0Z5Jfy5+N8+qlC/oCAlEvIOQ8tii/VR+Zwds6q4=; b= RKNAmbB3rlTpvw6DyYwGQRJ7BEpq65/L9XwpBV0wdTDefJYfQL4cj//TVVd5W6ow /afQVUAERdma1RScqUiXE8nTWV7/H+xJa6hrBANjDUuZIRJq6YV+uALKrqHvRYY4 DbW2MQD/W3HFHSvAR+8IpVWWeDi41jxtKtRYfnSseMv4EyIXqbd5OBFaovzaqJPi 6Y8Xcok4P/4uri/nzaQSvz3O6RrF0CGOwQnFNsrnbWPoZhhF0uIQibEUr0+bknlg gjwJBSa2BZUx/R1k1TUqfvIBc1sLr0ehuGs5bboKuk47wNx1ZtPXLxidWbJ/LEaH yDabreOltGrAwUCcyXTdww== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4d1gj872bp-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 26 Mar 2026 18:57:46 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Thu, 26 Mar 2026 11:57:44 -0700 Received: from ala-lpggp3.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Thu, 26 Mar 2026 11:57:44 -0700 From: Rob Woolley To: CC: Subject: [PATCH 04/11] bitbake-setup: Remove unused stdout variable Date: Thu, 26 Mar 2026 11:57:35 -0700 Message-ID: <20260326185742.542268-5-rob.woolley@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260326185742.542268-1-rob.woolley@windriver.com> References: <20260326185742.542268-1-rob.woolley@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: xREXLFpNdgxuAeTuv_CnzeaonZVBMxjp X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI2MDEzNiBTYWx0ZWRfX1J+iJtolPtsj 2PRWMRX+uVBUqhZO3TtEpe0Bt+BzDolmQJ19RTlvkAWl2uxhryWxwd8B/BZcM3MwL8571b6FI4q 5LE1m7Xt5B406AqVWpMs0z9/UcwQVeMDh38SHWdeJJidWdpFMQgkWT/5wIR9pn3l85UO4I0PpYV NgcyMCfaF4gc4fpFDckPpO9haNCtA8GhNJRAd2lCCNirQNwx/vFG9YJJ0R/NKkk9fkoY/MAi/no PBmK/OS9lCnkbWxYLDptW7vWiwCLZ+5y2Ub7e+GFoTzb0FKNPwncdHuRRrON6nvii/yK8lLvLXQ +JRp2qqMMot91DQwE2CGOQVgPfEdmjyo3FQq+JrRswtAVBpFO60ZqE213nPIc8XDoevbiTjimBu wiLCYIuuFCeC6crggFMcG7Nu8d1OzjU7zRmlQin+7BW4FJDueDiTO1L197zVpSDz12EH1uMld4q J8l40//kQHRlBHJQ4iQ== X-Authority-Analysis: v=2.4 cv=LtqfC3dc c=1 sm=1 tr=0 ts=69c581aa cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=ehVQGWA7s1bFufF4V4gA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: xREXLFpNdgxuAeTuv_CnzeaonZVBMxjp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-26_03,2026-03-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260136 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 ; Thu, 26 Mar 2026 18:57:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19249 The ruff lint tool reported that stdout was never used: F841 Local variable `stdout` is assigned to but never used Signed-off-by: Rob Woolley --- bin/bitbake-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index 828459a00..47f02a46e 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -626,7 +626,7 @@ def init_config(top_dir, settings, args): create_siteconf(top_dir, args.non_interactive, settings) d = init_bb_cache(top_dir, settings, args) - stdout = sys.stdout + def handle_task_progress(event, d): rate = event.rate if event.rate else '' progress = event.progress if event.progress > 0 else 0 From patchwork Thu Mar 26 18:57:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Woolley X-Patchwork-Id: 84611 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 9ACDF10AB814 for ; Thu, 26 Mar 2026 18:57:57 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.55629.1774551468104061720 for ; Thu, 26 Mar 2026 11:57:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=L7Enhogw; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=75450e5aee=rob.woolley@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62QFhRcM3113430; Thu, 26 Mar 2026 18:57:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=OnTnjlEe/0BplJd+CWJCalEQZtC1uyCCJVxiXYPyl50=; b= L7Enhogwhl7XZIC3DNAY/LPu3x+MEHTKVL7vmPDIr/ZsQYUlCksut7OMnTEZ1Gvf JF4VnfswdUl/BNtZxIOczWXM8ZQELJ5PcSHlFhPxzCXLMDmjve4xvbhF+i1KBgG7 xhtK5gQ3l1K17Rv8CSVEuwns8IMblW/Qd2/F8Hbc3CM73OOP0r1Nvh8yi0Um95Qu VnP8CmQbQOdL/NdWB8fioJ9GPrbU1ReT8oevcWOsN8gHm76xOHNQBZbJaElqrAgC jCiA+sEIO/QoQ2MFHmO/BbG9DSbzSE3WRNnTUa0fgVCjzyIQmRLF7JO82Mv3Rh2o sL777Rodmg3eH5UE1TM8GQ== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4d1gj872bp-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 26 Mar 2026 18:57:46 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Thu, 26 Mar 2026 11:57:44 -0700 Received: from ala-lpggp3.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Thu, 26 Mar 2026 11:57:44 -0700 From: Rob Woolley To: CC: Subject: [PATCH 05/11] bitbake-setup: Replace f-string without placeholders Date: Thu, 26 Mar 2026 11:57:36 -0700 Message-ID: <20260326185742.542268-6-rob.woolley@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260326185742.542268-1-rob.woolley@windriver.com> References: <20260326185742.542268-1-rob.woolley@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: pISnWaoLgDAyRTM7DvEsHI_BnU0NwMmC X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI2MDEzNiBTYWx0ZWRfX7B8W1d9IbA1q N6TEZExeHZtIvJsJBLJTcEHFCfH8m57omYKD4DEVYqY908L37l/+mqMGsvCY4BqZBuTc71ivStj K7wQ9GszovoocbMkzaDpqaGbvT+qgH9UcJiLHsZyUADOPUM/iK2AmmflP9leoQhRkQbvI26GS4n FKuxG4mdiegQkbLEeega5nqRe7D+BJHBuKldXCI3TBuAhEYYK4LXzH/AnyQIE42Iy/v7a8KBX6k WYbUIjxXL7lfEWFkzTPIfe15DOesuI2azAJCOcnhv/30lWRNkZBZnEBsGYG2zshJZRJ/nYqv/uM WzkmuAy4FIjILiQzpRE4MsI1pyJXjDV9HcXAgRmxAdzu66PBEZADR0KBLloaYJCzbxnTXu9jStd 9KhsQU/9lsqA4OeoxYfyUfZdbxlUX6kSE0sa8IJTjTCl45CPykuFDpyIa3N13PNQ7OFhK8/Rcw3 N4RPhCD11RifZG5dijQ== X-Authority-Analysis: v=2.4 cv=LtqfC3dc c=1 sm=1 tr=0 ts=69c581aa cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=DX4I7EJYZ07sDsrzdd8A:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: pISnWaoLgDAyRTM7DvEsHI_BnU0NwMmC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-26_03,2026-03-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260136 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 ; Thu, 26 Mar 2026 18:57:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19250 The ruff lint tool reported an f-string that didn't include any placeholders: F541 f-string without any placeholders Signed-off-by: Rob Woolley --- bin/bitbake-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index 47f02a46e..08d9a8d09 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -1040,7 +1040,7 @@ def merge_settings(builtin_settings, global_settings, topdir_settings, cmdline_s return all_settings def sigint_handler(sig, frame, func, top_dir): - logger.plain(f'\nShutting down...') + logger.plain('\nShutting down...') if isinstance(top_dir, str) and os.path.exists(top_dir): if func in [init_config, build_update]: logger.warning(f'{top_dir} may contain an incomplete setup!') From patchwork Thu Mar 26 18:57:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Woolley X-Patchwork-Id: 84612 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 B207A10AB816 for ; Thu, 26 Mar 2026 18:57:57 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.55632.1774551468639780572 for ; Thu, 26 Mar 2026 11:57:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=FNn4A+hH; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=75450e5aee=rob.woolley@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62QFhRcN3113430; Thu, 26 Mar 2026 18:57:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=8rMcHtTRmWJ/T4T0x6TCTN8QRjujNf9EzVMjcimJHNo=; b= FNn4A+hH256w2r5JRqYyBpVRpxyMm46YiV3QcYcq0hVdhMurwY4ivUwqfQ4LVXr4 Xw7vqYuQCTcEK4iNFGTUg0e2eJkq6ZW/bQ6azihqq9E4lE80mfhGP2hWEVZ6lnp3 wIGQXWuFGF+LNqlfdNTQLGktKCYw+TKtYOyntfylWX+EfVYFSuYHMKl0hkDJuWDV D9D3vFfmn1BgY5h1267XSJj7nUQoHnVjJ71DGDKozk98pWkq49tp/fmjgoXRMEC9 wpuCMR2aqJJtPAbnsYVHHeSgoKNKfFRaCb4Aig6MMzuv/eyt9TpK1sn90i9FW+uo Fj3jPfX24P/8OyhKjem/jw== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4d1gj872bp-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 26 Mar 2026 18:57:47 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Thu, 26 Mar 2026 11:57:44 -0700 Received: from ala-lpggp3.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Thu, 26 Mar 2026 11:57:44 -0700 From: Rob Woolley To: CC: Subject: [PATCH 06/11] bitbake-setup: Remove unused Namespace import Date: Thu, 26 Mar 2026 11:57:37 -0700 Message-ID: <20260326185742.542268-7-rob.woolley@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260326185742.542268-1-rob.woolley@windriver.com> References: <20260326185742.542268-1-rob.woolley@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 6cHna1GBimL3DJRNv_NtNmciGG-RLitR X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI2MDEzNiBTYWx0ZWRfXz8BLKRcE8+cB uFku+BbSJTZhHD5qYLnIEWJMOVnQ8mTBHyEV8df0MB+N6Zi915HLz09hXWAD3MWa8/SCBmDH5UH bBZZfxHxM7KU0w9dyCHcwV2Jq+kbMHuEJVPwWRG7Zx0gn4t9bY0CABNqZUhK6MpIhAyYG8qN7xZ Y924Gwxh7MEaedKlhk+9odGKGO6oY4WwuiMHpc8N9xRhoSlFDLIxp3qxFhmfM+w313KfsceoJ+1 LhBiuWMkdx4wRKiv6ubF4dwpm3O1zmTK9jHWfTcOznljOl4sUtINtGLVqAxXtE7hMQsekSCV2kQ GJjZYQq4tDmi+pElfvMK8Y/12oWo6ESFLLMiuakEI6surhaef0Lak6y8t7+qIm18EtGJf24wM5M lC2j/Im2I4Ihb2Otq/ftMGhoCq55Lr/Ka+it9/vOObZLGtcSYcwk5ad4dPk+s9yJ1io0JNlgLfs vF5qQQHsZCXzjK9PACw== X-Authority-Analysis: v=2.4 cv=LtqfC3dc c=1 sm=1 tr=0 ts=69c581ab cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=wf95bx_M_9xtc5-G3zUA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: 6cHna1GBimL3DJRNv_NtNmciGG-RLitR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-26_03,2026-03-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260136 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 ; Thu, 26 Mar 2026 18:57:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19251 The ruff lint tool reported that Namespace was not used: F401 `argparse.Namespace` imported but unused Signed-off-by: Rob Woolley --- bin/bitbake-setup | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index 08d9a8d09..00be16438 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -1186,7 +1186,6 @@ def main(): save_bb_cache() else: - from argparse import Namespace parser.print_help() main() From patchwork Thu Mar 26 18:57:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Woolley X-Patchwork-Id: 84613 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 C0A6F10AB818 for ; Thu, 26 Mar 2026 18:57:57 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.55633.1774551469405354091 for ; Thu, 26 Mar 2026 11:57:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=F4HLn+xR; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=75450e5aee=rob.woolley@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62QFhRcO3113430; Thu, 26 Mar 2026 18:57:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=zOlDJsT8NTtqgquXjZosYz7RpuYTmfFREaCJ1a52RWo=; b= F4HLn+xRf5KHaCkF3piqPB8+S7mY9Db4/byysFjWpxU3bo8m3XHH+WMbBvN7r7Vp AahNJdTWsFgTM2DAqa5ysycwQ4eLQ6icx0CG2NDGeZFKR0R+yYlJuPOsXwLxohzm AGW5Sax/pz8te74KY3pTYNcvP4xn5HltshX+RjTyLiKGNtKtHTdZhOWRdkCx4Gs8 hpH4oxwWf79gak65M3t6xAI7UecUbfnIacguN/tHeyBnlCDsrjsxeQ0fAL6QYsWr Rx+oPiFacagIxNkBFuZwTrQcf5HEV9gaYI2uO9uPtbjboG2+rUxT7LWIPZedkEk5 5wtbVrbuZR5G2y4kf+jyyg== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4d1gj872bp-8 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 26 Mar 2026 18:57:47 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Thu, 26 Mar 2026 11:57:44 -0700 Received: from ala-lpggp3.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Thu, 26 Mar 2026 11:57:44 -0700 From: Rob Woolley To: CC: Subject: [PATCH 07/11] bitbake-setup: Remove unused parser_settings_list Date: Thu, 26 Mar 2026 11:57:38 -0700 Message-ID: <20260326185742.542268-8-rob.woolley@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260326185742.542268-1-rob.woolley@windriver.com> References: <20260326185742.542268-1-rob.woolley@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: k5hbhZU5fMZmhg57yMfLebr_l8LJ5l6F X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI2MDEzNiBTYWx0ZWRfX0pwGrFcHM11/ 93EP8Tz0QmAeJIPHD7BcyFfo6shvp1jX/YV1yWtQ/kbh7yKCyOyPdj4Q6PVR5CotUfUJsZDJ3Zo 4K3CGj+qILzh2dD9OoHotOp07rl+lZ2VP7ImOleKvmQsXMeHXAbjm2l8uA0ZmzPBhPRujGmYdg3 dP0JK08pCMZGkkml/7O7rZoGNOg30AM33uP/m/UyE4Jc9bHnLV7AQXbsCc5vM5Htl6jH3aOADWL yjmEZAskboKeYNG20ZMB8kB1JZRlbT383QbgKfpM1sR/W7wppgC1NWAHlq4re1b9bogBF+btYa0 PjDk2rRNcHbYzQw8t/Pim/TlQJ2RQj2OvqeLOFEmEom2GG03ZRu4B/hHDqaSO0NlrA675Pl80jf DOVEcfA2v92DWbgmJPEIVDS9Bd622uzehUBEoluCSLIW4RO15J3/wJjby7JEdoUYsU3PqeFY3Be lt+iNgt6fNwuejsKrvQ== X-Authority-Analysis: v=2.4 cv=LtqfC3dc c=1 sm=1 tr=0 ts=69c581ab cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=RdzD27zFivnYBFE9EGsA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: k5hbhZU5fMZmhg57yMfLebr_l8LJ5l6F X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-26_03,2026-03-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260136 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 ; Thu, 26 Mar 2026 18:57:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19252 The ruff lint tool detected an used variable: F841 Local variable `parser_settings_list` is assigned to but never used The list_settings function gets invoked through the parent command's settings_func function. This means that creating this variable is unnecessary. Signed-off-by: Rob Woolley --- bin/bitbake-setup | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index 00be16438..7cc3f9253 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -1109,8 +1109,7 @@ def main(): subparser_settings = parser_settings.add_subparsers(dest="subcommand", required=True, help="The action to perform on the settings file") - parser_settings_list = subparser_settings.add_parser('list', - help="List all settings with their values") + subparser_settings.add_parser('list', help="List all settings with their values") parser_settings_set = subparser_settings.add_parser('set', parents=[parser_settings_arg_global], help="In a Section, set a setting to a certain value") From patchwork Thu Mar 26 18:57:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Woolley X-Patchwork-Id: 84605 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 0DD8410AB807 for ; Thu, 26 Mar 2026 18:57:57 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.55635.1774551470450845025 for ; Thu, 26 Mar 2026 11:57:50 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=mTGH8ka4; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=75450e5aee=rob.woolley@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62QFhRcP3113430; Thu, 26 Mar 2026 18:57:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=CeOCCyeiSsdjgQh4EeKuCplz3Ls3BsYnPB+bupfzfaw=; b= mTGH8ka4lFkLepaTrxDP1dXtIGw4nnLogv1vL0VgzNokBo1yo1kAh76QmDSK3PZW Dkva/8y9DZoXKyFL7WxhNj0bWgPFjMm6vnKE1Qc8iDkgWmm7ziaippdESR36cfA0 oO6fe7DQHkH9VCQQ+BIOKRbW72JHDZqRIeXuVGyqcxSYeapWcfaYXalY2x6xXxgc v21nFlZ5pnbTFJ5g/2lD8jl1lSEWwh15io7TyMhwlnf9yFE1WSeykEHYPiuLUt7g 8dp9tF2VfSJJr0U9xQbSmyvb8kFDIl+8tGjHP+GbwUYUNQ/vUZCye+v5U3u6tely d+BP4eifxtSNnoiFUvDMXQ== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4d1gj872bp-9 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 26 Mar 2026 18:57:48 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Thu, 26 Mar 2026 11:57:44 -0700 Received: from ala-lpggp3.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Thu, 26 Mar 2026 11:57:44 -0700 From: Rob Woolley To: CC: Subject: [PATCH 08/11] bitbake-setup: Fix linting error related to membership Date: Thu, 26 Mar 2026 11:57:39 -0700 Message-ID: <20260326185742.542268-9-rob.woolley@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260326185742.542268-1-rob.woolley@windriver.com> References: <20260326185742.542268-1-rob.woolley@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: bubFR2OyQuAms0JrvCRkNOEYyhjeWFs1 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI2MDEzNiBTYWx0ZWRfX3zBR22EmcXoG aaLV4Up4s4lusN4oSzCrK7Be56w72Z+8pTK4WR5ClKybQYMhQrBQve1byibFk+X2BN9ONEAqL6W 6LnYH3SPtL/jmOVT0td7SJM5TUxx9PwmH/gUp7Sx6IuyQcZVhQjGDBsSOKILeh0k/DlszwLmTYO XzJRl4sBSLM7NPZCPAnUlIzBl+p9cqrYY3OCnHlJ+XkulxVr5EcSDg7TuHQx/602X06sAFMg3fO 19j/H6r4ocEWkynQEHKGSYvCbP0MYl2lYR7tBsm2iaM4dSmD5W5pQlmEw6D1v34LT+sgl4c2mgk mKd69Wq0un1zoz1pBaClVmzrDPkDmzrVYG88dTMfQe0N0rcKYVGeXdai10svFW70gDqm9xCALAR AtSAGSppQNdJQIAwaM7kBRNQLGwzSBHbtH+9+ZB2ShoA0kClHm/YdFhNC+YpqX/4g9+SfS48HaE sNrDm22U6elNfORIMcA== X-Authority-Analysis: v=2.4 cv=LtqfC3dc c=1 sm=1 tr=0 ts=69c581ac cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=46D1iXCj2PQgXVORjeQA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: bubFR2OyQuAms0JrvCRkNOEYyhjeWFs1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-26_03,2026-03-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260136 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 ; Thu, 26 Mar 2026 18:57:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19253 The pycodestyle E713 recommends that negative tests for membership use `foo not in bar` instead of `not foo in bar`. Signed-off-by: Rob Woolley --- bin/bitbake-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index 7cc3f9253..e2b2f1836 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -154,7 +154,7 @@ def add_unique_timestamp_to_path(path): def _get_remotes(r_remote): remotes = [] - if not 'remotes' in r_remote and not 'uri' in r_remote: + if 'remotes' not in r_remote and 'uri' not in r_remote: raise Exception("Expected key(s): 'remotes', 'uri'") if 'remotes' in r_remote: From patchwork Thu Mar 26 18:57:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Woolley X-Patchwork-Id: 84608 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 2C03010AB80A for ; Thu, 26 Mar 2026 18:57:57 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.55636.1774551471036927566 for ; Thu, 26 Mar 2026 11:57:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=TDt0irRC; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=75450e5aee=rob.woolley@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62QFhRcR3113430; Thu, 26 Mar 2026 18:57:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=j0+mM2JIY7mpbMRrlJ7ugz6+615lj2yVrQmOSks+Mhc=; b= TDt0irRC/1aiOHnVbbYeDkORMp5DRB2/MDe4gtjq/chNrOiwLPkYUMt4G8YkToUX E60pcLQfIRU2LWPNhlm4DI6CPvw2ZLCiUKKd2P0uCyHC8BPZMpQePpNtdRzf76t7 cX0qtsGDZA8+b4XNIRLuvZLDKZCiJDZafRSFXQ5wlkRf2r3zuMZYo/MTvaBnxIk2 /fy1mvb462vAmPPHP/nIE9UYKZvuuFF4dbtqIBOwIOrzd2EG1txjt1dE+vF8IoOo HQe4Q5qMG2D+ZWsN0lbIrnQIkZmLxp4XuW49yAK5j0fvGq9Ej2plhs1qVnvUJfxx dYI5Xg+KUrynZD8f6Si8ug== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4d1gj872bp-10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 26 Mar 2026 18:57:48 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Thu, 26 Mar 2026 11:57:45 -0700 Received: from ala-lpggp3.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Thu, 26 Mar 2026 11:57:45 -0700 From: Rob Woolley To: CC: Subject: [PATCH 09/11] bitbake-setup: Maintain exception chain Date: Thu, 26 Mar 2026 11:57:40 -0700 Message-ID: <20260326185742.542268-10-rob.woolley@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260326185742.542268-1-rob.woolley@windriver.com> References: <20260326185742.542268-1-rob.woolley@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: 4OsJpotFAIz3X3kl0iQoCox0lqgC4P20 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI2MDEzNiBTYWx0ZWRfX44JnIfPux/WN 3SFdYhflRSwpPlTvm6L19ervFn+0duKLbNu+Eb/Bx3zRmXZCJihdF5LFeplItmKZ6g5wzT14Js7 +isSp9t9jk2bpVQAQbRpSYQ5IiqqIrcHYCcnOjYUZilHAABgmFQ/6EmLV1jtUj4x3jAoV5BsNCB HPkx34bwfqEu58CE57PER+x5D2YMGl38BzEI/HDi5Ah2PLtpOtXloJNPUQjFFn4S9Dq0BU4tPQt zTWv7Js8cWBwq/dqX+k8iuspD7IVHwTQrJiONCDxCE+nCALDDPfoQz1t92wSRkvYk3f2ztq/TJS CFm/AJ5ztuS0jm63rkl2U1u+WqSthEZ3Kl6BG6yV7tqg9K77bqlKuESWxn8H8Og2xpt23KlskF6 VzNMwLjix/JY9AHKj6w79k0XEu1GhC+vX3P0FCrwJEguHiSNDmW55IwUhPwLtOgq9BcrFZfbmXj koKaEavjSaMzux5nBgw== X-Authority-Analysis: v=2.4 cv=LtqfC3dc c=1 sm=1 tr=0 ts=69c581ac cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=2V6DY6BgAAAA:8 a=buMr81B6g3mRPbPPW0sA:9 a=FdTzh2GWekK77mhwV6Dw:22 a=ldqKKs2zR4t-S6fqr-1n:22 X-Proofpoint-GUID: 4OsJpotFAIz3X3kl0iQoCox0lqgC4P20 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-26_03,2026-03-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260136 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 ; Thu, 26 Mar 2026 18:57:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19254 Chain the exceptions so that it is easier to trace the exception back to its root cause. This resolves B904 linting issues from flake8-bugbear. Signed-off-by: Rob Woolley --- bin/bitbake-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index e2b2f1836..2e1e347d6 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -579,7 +579,7 @@ def obtain_config(top_dir, registry, args, source_overrides, d): json_data = json.load(f) upstream_config = {'type':'network','uri':config_id,'name':get_config_name(config_id),'data':json_data} except json.JSONDecodeError as e: - raise Exception ("Invalid JSON from {}. Are you pointing to an HTML page? {}".format(config_id, e)) + raise Exception ("Invalid JSON from {}. Are you pointing to an HTML page? {}".format(config_id, e)) from e else: logger.info("Looking up config {} in configuration registry".format(config_id)) registry_path = update_registry(registry, cache_dir(top_dir), d) From patchwork Thu Mar 26 18:57:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Woolley X-Patchwork-Id: 84606 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 39B1410AB80C for ; Thu, 26 Mar 2026 18:57:57 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.55637.1774551471337215134 for ; Thu, 26 Mar 2026 11:57:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=BxFJsuIs; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=75450e5aee=rob.woolley@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62QFhRcS3113430; Thu, 26 Mar 2026 18:57:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=pRZF5kGFJwDzXrslHoBSM9IChHph+t7fkfXJW695n8Y=; b= BxFJsuIsCFei+A8X5r/X//LGwHPr2MBGf77GcNTKiTl7T+ZU6zqmjbwG4IAOO54g Rmee/osUr5S3RQgGET2bBmUxqAmpy+hv16MMSJL5oE4PsOzGS+0VbRKkr+N1BjkG PFyVC+3PzJEYRtHFsylsMOpZfOWP4RhePtjx5KxrW43sGBz8lhgClP8+8t5sVJIA 8XlipGiYWPpjc3b7zjhKsEcuXy2QYYTHW1n4WwQOjWSG9UcfFoFN3epovQLMRuol FNKKqyPGKkwVjV3I+XDymIYCmL4yNfNs+41sx0uPjltHiM+Un+GUxavVMU1/ypYW S7MN7lafMsTr8ZrsJLeCCw== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4d1gj872bp-11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 26 Mar 2026 18:57:49 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Thu, 26 Mar 2026 11:57:45 -0700 Received: from ala-lpggp3.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Thu, 26 Mar 2026 11:57:45 -0700 From: Rob Woolley To: CC: Subject: [PATCH 10/11] bitbake-setup: Set function default to None Date: Thu, 26 Mar 2026 11:57:41 -0700 Message-ID: <20260326185742.542268-11-rob.woolley@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260326185742.542268-1-rob.woolley@windriver.com> References: <20260326185742.542268-1-rob.woolley@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: ctOeRJtt6Vvh2ThDEELSvrm0O7iHnX5_ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI2MDEzNiBTYWx0ZWRfX0WF1XDCmqTKv K69Dip3yWxalrHYkG+7VVOgbZUloTh61QUy+GmaEsWP2OOqpXWcos+8kewFCJ01ODWzAaX8dXM1 K0MLHCXDH+PE5UAZHR0eRXJQCTR0VHnQH2LZd/4aJojQMpjbGTZamz4R2diUsN7ZIoaP9uJYj7w nbJDCDqkZrEJYAzjnfaqzNKILGPz6G0ZnWDOCi/GyJeChTS6hvdLTGEh07br7h3tUWFnx3tKncP glwEAgGyvAJPgsxFPHNnUjuD0gPozv2txLKzX37HPWkkVHRwM5G0ohtIw/JoWcdKOLi82T0cWsq JAEG/Sxct01L69CpOcttUhb6CW4ia2kgPok8P6DeBV/NMxGj0d6u0nCl219WXx+kl00xOybRG9I uEePI2oBatZ7tIHABjCmROEb30ydOg6eSrLINUL26by9+VYMI6VuhRhcSHOrtDulXYLXEh2GlOs Yroyhl1H0CWZPu6Lcyg== X-Authority-Analysis: v=2.4 cv=LtqfC3dc c=1 sm=1 tr=0 ts=69c581ad cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=aZRFCHUu4cexEaU8piMA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: ctOeRJtt6Vvh2ThDEELSvrm0O7iHnX5_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-26_03,2026-03-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260136 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 ; Thu, 26 Mar 2026 18:57:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19255 The function defaults are evaluated once and use across calls can lead to unexpected behaviour. Set the value to none and let the function initialize the value in the case when the value is not set. Resolves B006 from flake8-bugbear Signed-off-by: Rob Woolley --- bin/bitbake-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index 2e1e347d6..6b210cd3e 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -45,7 +45,7 @@ def color_enabled() -> bool: def get_diff_color_param() -> str: return "--color=always" if color_enabled() else "--color=never" -def print_configs(prompt: str, choices: list[str], descriptions: list[str] = []): +def print_configs(prompt: str, choices: list[str], descriptions: list[str] = None): """ Helper function to print a list of choices and align the output. Each option name is made bold to stand out, unless color is not enabled in From patchwork Thu Mar 26 18:57:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Woolley X-Patchwork-Id: 84607 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 46F4A10AB80E for ; Thu, 26 Mar 2026 18:57:57 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.55638.1774551471653114543 for ; Thu, 26 Mar 2026 11:57:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=epY0niUb; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=75450e5aee=rob.woolley@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62QFhRcT3113430; Thu, 26 Mar 2026 18:57:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS06212021; bh=OemejJY6yt0spv6TlaTZRz9HQu+DAng7HIFWVhfOa0s=; b= epY0niUbAO06C82V1E5LjSeJcKArp8AJ4hMfGO3GdR2mHdQvx+OKWWRfzh3mL6VL b/okxj3efhAySmuXgb2DPQavVzCzvt5vdD0MEeAd53/bjWByVfxA0wZ+ATksmpAF rSWCbIa6fhviKKRPqWgSbLk5Jz75eAgDF8X92iIKUyyuNZWi3EKADFc9CCwP6iSt lZsQyR+kkiF+BQUJklxM/8vDGNUTgTW803JWl6gkveNctsGcoC7fJi4nqdU/GPaa WC02HUgF+joc4jdzLJMD6Uz0N8WfbW3qypPDIGvWJOwPA0VLb/Q5pgdDo+OIo3S8 8+Y5mGXW/pOxh0wAPES9/A== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4d1gj872bp-12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 26 Mar 2026 18:57:50 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Thu, 26 Mar 2026 11:57:45 -0700 Received: from ala-lpggp3.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Thu, 26 Mar 2026 11:57:45 -0700 From: Rob Woolley To: CC: Subject: [PATCH 11/11] bitbake-setup: Sort and format imports Date: Thu, 26 Mar 2026 11:57:42 -0700 Message-ID: <20260326185742.542268-12-rob.woolley@windriver.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20260326185742.542268-1-rob.woolley@windriver.com> References: <20260326185742.542268-1-rob.woolley@windriver.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: D9GGGFb_iPY81oDxmve7iDiU24humFo4 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI2MDEzNiBTYWx0ZWRfX1cJ3WrzY3Jdx UUZMHI6u+PPfkjWEInderSCvm39CaTHmD0RfxBnex9Rk/9ItDdhZuxionIJtJzY8EiXmjp1P4FM d23/YUwnSE67HSsrAoqRrrWc4Y6OwKAZT9jPfC5ABBA0KUoUJffF014oo956jBnumko9uOa8roi Lov1YANRrGG8EKqpLgMa+/mUlDnEIUTqKYQFnQnSD2JmvbBwi3ldD3BtvzKk7+26J5MfGK+oraz Z78YGyfIevpXA6XBvG6o2fLIVRb1jxSZgjGYrAdJEIPFan4yOfKhGjfAD0BHWYhLXdl5RhtuVp9 aDaPnbbv1gI4mJFpVFTbnjMphgQsLJvHA9ZA3vE3R6fmBdAGEbVFLm/cnRTKJJAWSdhwpLVOBsF rMT/Nz/Bujy0cZWx4gnjLYlw5YtMciDXRZz3k3AFN97ZPZn/ifGk9WjlyLe2MW9HufDjF55qTdc 0OcwRdC13OGn9qJM+Ng== X-Authority-Analysis: v=2.4 cv=LtqfC3dc c=1 sm=1 tr=0 ts=69c581ae cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=rW-RdPFMKUCdcBzMzRMA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: D9GGGFb_iPY81oDxmve7iDiU24humFo4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-26_03,2026-03-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260136 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 ; Thu, 26 Mar 2026 18:57:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/19256 The ruff linting tool reported 2 problems: I001 Import block is un-sorted or un-formatted E402 Module level import not at top of file An exception is made for sys.path modifications needed to find the modules. Signed-off-by: Rob Woolley --- bin/bitbake-setup | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/bin/bitbake-setup b/bin/bitbake-setup index 6b210cd3e..ce712e517 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -4,28 +4,29 @@ # SPDX-License-Identifier: GPL-2.0-only # -import logging -import os -import sys import argparse -import json -import shutil -import time import configparser +import copy import datetime +import functools import glob -import subprocess -import copy -import textwrap +import json +import logging +import os +import shutil import signal -import functools import string +import subprocess +import sys +import textwrap +import time + bindir = os.path.abspath(os.path.dirname(__file__)) sys.path[0:0] = [os.path.join(os.path.dirname(bindir), 'lib')] -import bb.msg -import bb.process +import bb.msg # noqa: E402 +import bb.process # noqa: E402 logger = bb.msg.logger_create('bitbake-setup', sys.stdout)