From patchwork Fri Sep 4 08:22:58 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 97258 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 6EFC9C79F87 for ; Fri, 4 Sep 2026 08:23:15 +0000 (UTC) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9187.1788510191422498321 for ; Fri, 04 Sep 2026 01:23:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=abUTVvDJ; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 8FE834E41502 for ; Fri, 4 Sep 2026 08:23:09 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 5E2606057F for ; Fri, 4 Sep 2026 08:23:09 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 62A5F11C7A7F4; Fri, 4 Sep 2026 10:23:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1788510188; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=P/40646cnoGegdR72Yz4Kzj5Zr3NP1LAycJmzQp9AHM=; b=abUTVvDJVAX+nlIcfmtTRcCCC+tGm5H6EYfDubTtQvrn5EBMCcdCYsiIieB11SZgzTYpbe FXfFwwxOABRP07aT7kyboOnqemmC1NnACCJGykn+iShdnkbXooZZ1E5wLhoRFlNOvA/fLW CR3ud6m4xitrOSmiD3I5HR2/OP4YnVzZn3amMuHclhAkk3RiSIVH4QefacF1lH7HElGqJ3 Prr/0Ovmfuag7DvTBqBS29Q0vwOiS850tfSqA7POeFps0sD05yQKAZDg2AovePLrh4U8fM M1PNq1LIiUtcYwzm8onT/vkv7icAfW8bZBV0PovwIW++9p9EMaNEqhI10ay2sw== From: Antonin Godard Date: Fri, 04 Sep 2026 10:22:58 +0200 Subject: [PATCH 1/4] scripts/oe-depends-dot: fix dotfile argument type MIME-Version: 1.0 Message-Id: <20260904-oe-depends-dot-cleanups-v1-1-b56bf05fc5fd@bootlin.com> References: <20260904-oe-depends-dot-cleanups-v1-0-b56bf05fc5fd@bootlin.com> In-Reply-To: <20260904-oe-depends-dot-cleanups-v1-0-b56bf05fc5fd@bootlin.com> To: openembedded-core@lists.openembedded.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2348; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=NQ18PwYznAKatpRlruC3uH3p0EUYoLjZDyNM88UJPlQ=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBqmn/mk85/8fsYTFigb9jnrEBc4d7/tIBflE4qN kt050fWgdeJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCapp/5gAKCRDRgEFAKaOo NnY8D/9HxXakUcULf3Ojuu0krdWwedf/qbWeRNlOU9TjnVDCxhAf1Vxqxeh9bLCHI208L3tzBRV c+EKsT4Mj75JgKcvz/OhN/MOtsHY6t2obxKLcq4kRAOGKkLfwTZ4uKrzlm9thO32OFWdXm2J/U1 hHY5ACWrkMYmc18FIIaCHH+ifK3uPtcp5cC/zz/wsu9V+1zRPQkRnalx+FAH5zS0EmZH7nJtQkG tWX0ZJ+2DuW2ApeaUxN4UXDXsPkeS7qvBPJM+otaSdu2XI8PndvV0C4ZtlPjbAa/rp8nyc/LD6/ dSeErWWOWNJRZVsPn2efdqkww97A+qSKbwOCALfDcqscPnG4n5GnMJ1znxv7qy+vAFt5fQ+XaRC kdnWrVboUW4/VVZeaxhvFvvpCsW9nSWHjB4DxRj9hAStWHROI1RWmLsnKGVWVrC/CEV2mxaS9/S qlrgTr11OUQjjBmKCx0vx3b6j0OFwajfiSg4qSDsPEybVa5cNnLOLILHpL7jgTW3w4wP8zPzNbg dpeP0xeckbEZ4g4+Q2k4DO16Q5NLwj9YdYMwkA+trlSbB++H4SywGFyazx27DW3IxX5Vmn0SxU9 T+4be/WFx8Jxsi3cKzGPfxjW9P3Cetf6udmm6YBtlBcpRaNnfWRvmNuG8c2mja10rz1JiJihrP1 ZmZNAokbhMgfsIA== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 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, 04 Sep 2026 08:23:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245066 We can only pass one dotfile to this script, so storing this argument as a list does not make sense as we only ever use its first and only item. Store the argument as a string instead. Signed-off-by: Antonin Godard --- scripts/oe-depends-dot | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/oe-depends-dot b/scripts/oe-depends-dot index 10e8b1d387..7b16b911bd 100755 --- a/scripts/oe-depends-dot +++ b/scripts/oe-depends-dot @@ -17,7 +17,7 @@ class Dot(object): description="Analyse task-depends.dot generated by bitbake -g", formatter_class=argparse.RawDescriptionHelpFormatter) parser.add_argument("dotfile", - help = "Specify the dotfile", nargs = 1, action='store', default='') + help = "Specify the dotfile", action='store', default='') parser.add_argument("-k", "--key", help = "Specify the key, e.g., recipe name", action="store", default='') @@ -101,7 +101,7 @@ Reduce the .dot file packages only, no tasks: #print(self.args.dotfile[0]) # The format is {key: depends} depends = {} - with open(self.args.dotfile[0], 'r') as f: + with open(self.args.dotfile, 'r') as f: for line in f.readlines(): if ' -> ' not in line: continue @@ -139,7 +139,7 @@ Reduce the .dot file packages only, no tasks: child_deps |= depends[dep] reduced_depends[k] = deps - child_deps - outfile= '%s-reduced%s' % (self.args.dotfile[0][:-4], self.args.dotfile[0][-4:]) + outfile= '%s-reduced%s' % (self.args.dotfile[:-4], self.args.dotfile[-4:]) with open(outfile, 'w') as f: print('Saving reduced dot file to %s' % outfile) f.write('digraph depends {\n') @@ -150,7 +150,7 @@ Reduce the .dot file packages only, no tasks: sys.exit(0) if self.args.key not in depends: - print("ERROR: Can't find key %s in %s" % (self.args.key, self.args.dotfile[0])) + print("ERROR: Can't find key %s in %s" % (self.args.key, self.args.dotfile)) sys.exit(1) if self.args.depends: From patchwork Fri Sep 4 08:22:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 97259 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 51C18C79F83 for ; Fri, 4 Sep 2026 08:23:15 +0000 (UTC) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.9188.1788510191814147233 for ; Fri, 04 Sep 2026 01:23:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=BHrISpzT; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 20E244E41506 for ; Fri, 4 Sep 2026 08:23:10 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id EAA3E6057F for ; Fri, 4 Sep 2026 08:23:09 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4630911C7A7B6; Fri, 4 Sep 2026 10:23:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1788510189; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=47xmka2z474Sfcf7WO1x3zMLwiWI6HjlRdltJUxVyH0=; b=BHrISpzTz7qGlF+CJxrZ00mtLl3OLnBCwEtTRmUc7IV9otydR4tnJtt+YL/5gF2lA2UGPB vDoSj3ue9GVaVj9VcUwEb+sgmPEXXDqlX4hCo9tb8av8hO0rNyG1AdXIxqLOkbDxzq9hCk 5wXZa7EmalHSnNbQ8A48DlVcGxCMILlz+xD5gRHm7p2RYKX2yFidFkkmC7gGKXds/tgO4W qDN3f3zhzAA8LFWd3Sjk2pyyta82c41l+juXd5S9dRHjN9+4jHuFgrPjcTjHX3SkfKuptQ vsZuwrlR/cg3k3XzwV3Rn7EO87hWEgkfR04vSBFKX36TOdll6BbaQ45r/JHNVA== From: Antonin Godard Date: Fri, 04 Sep 2026 10:22:59 +0200 Subject: [PATCH 2/4] scripts/oe-depends-dot: remove custom argument checking MIME-Version: 1.0 Message-Id: <20260904-oe-depends-dot-cleanups-v1-2-b56bf05fc5fd@bootlin.com> References: <20260904-oe-depends-dot-cleanups-v1-0-b56bf05fc5fd@bootlin.com> In-Reply-To: <20260904-oe-depends-dot-cleanups-v1-0-b56bf05fc5fd@bootlin.com> To: openembedded-core@lists.openembedded.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=785; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=YUlKFpAfyHWE81mVPe3K/IhaSO+9J8jN0sLeqr5Hbts=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBqmn/mSvRHAeGu2zDIbLJBxpEwhbR/8yJEuLY4Y AVz5Q61VQaJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCapp/5gAKCRDRgEFAKaOo NvVTD/9KDz7g24oh0wJ1f97BuJ2BaBJa3+7XB84qIDGh+1nn3e7zDeO5vuituxISbQHc9O1hCe8 1oh6nERhl+ASx1qRWS0hTPTmgUzUdYXp5UyMt02uRys2LpKF0w7267b7H3zm/Mu9oiidB7VXzgI 2IOqMVa/1zplxAQqxmaV8E0hROWKler1rSPuiAtfeDPZa0VkVjhU3C78FLrqYu9zWBwVUYIxiHS IHQz7f5chjI793xiLUjAlZGBkmUfW4WBqO4WaDHlsqSd1I0v8jz6HpdD3//j79lDHwKV8F1g+u+ ffyfNZ4Qm8v3HiqnKkaxlkZQBieGGUPIMRShpcA8q0u1Ez1wrCC2+N0a8qW4oxscFPH3NIL82Yk nLBhP5nt868ERmx7VmFhsz4oT8hFkmNz4yW5hsecqMKdjBL5BnWH1C8GzHfJ8Kum12zTqCU8Ssm jaHTSQwJr+QlXiMuuxQWgTbyPQfGxU+O0r1Vr6bFvWji8hwoiJrz88s0lBHb/VEYZyRv7uHD+f+ owGH5J6WIQqbv4aY4FF8ScCZ8d9G2QA/KuMPtvTL/h/Yr9eA1aMrsEqI+agVL3RRFDyYCZTxzW3 zmPWMQaCTPmFI61VDVtkZbnixh1okIA+x5ftjd+BlYg/ByP0AoxGH4lUr8rUQzGy9+WYgxDg3eU Irl+MT4nhNbRTnQ== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 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, 04 Sep 2026 08:23:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245067 The argparse Python module already handles argument parsing and checking for us, so there's no need to do it another time here. Remove these checks. Signed-off-by: Antonin Godard --- scripts/oe-depends-dot | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/oe-depends-dot b/scripts/oe-depends-dot index 7b16b911bd..c505a196f9 100755 --- a/scripts/oe-depends-dot +++ b/scripts/oe-depends-dot @@ -49,9 +49,6 @@ Reduce the .dot file packages only, no tasks: self.args = parser.parse_args() - if len(sys.argv) != 3 and len(sys.argv) < 5: - print('ERROR: Not enough args, see --help for usage') - @staticmethod def insert_dep_chain(chain, rdeps, alldeps): """ From patchwork Fri Sep 4 08:23:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 97257 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 1E28FC79F80 for ; Fri, 4 Sep 2026 08:23:15 +0000 (UTC) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9188.1788510192635955917 for ; Fri, 04 Sep 2026 01:23:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=aeI8Mw3q; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id E10884E41507 for ; Fri, 4 Sep 2026 08:23:10 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id B4DEA6057F for ; Fri, 4 Sep 2026 08:23:10 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CC2BA11C7AB30; Fri, 4 Sep 2026 10:23:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1788510190; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=JQ+Cn6imyeJcUbYUVS7utgNBxud7ifX7ubNSDHOrlTc=; b=aeI8Mw3qC8dIbiAaDMsurWgCnwFsiZ/w8yXBRIvsvWXzRwoEHCxrjzcLKOHtEu2iEtgsI7 sSuHd78lPId5PQ3VDXLc9mYDgP6j56VztZ+Ou3Ix2YZIAivY2hLfLEr577JlVbrWadFmaH PR3mwOfPaEc5yflFtveUCHoX/P+YTrjxuC9/L7vJTcpylAFhd1Tm7Gf2DmaM1LqU16cew1 2tv71bw5ixweK8w2YzEDz8R6+TEKanjZ+5tNeycvQSMpR4k3CexS78ixwX7w48woFTTYoX YhmZFfdWbGv8muqKmRDDVhTATiR1BEHQvfcd4+Z8xGOs7iWLppzGkNZKBavUZg== From: Antonin Godard Date: Fri, 04 Sep 2026 10:23:00 +0200 Subject: [PATCH 3/4] scripts/oe-depends-dot: fix Fonud -> Found typo in warning MIME-Version: 1.0 Message-Id: <20260904-oe-depends-dot-cleanups-v1-3-b56bf05fc5fd@bootlin.com> References: <20260904-oe-depends-dot-cleanups-v1-0-b56bf05fc5fd@bootlin.com> In-Reply-To: <20260904-oe-depends-dot-cleanups-v1-0-b56bf05fc5fd@bootlin.com> To: openembedded-core@lists.openembedded.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=779; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=TLoJvibF6qPuoTSwKMMjcBo+Jgj1aWb+GS3EHLDs5BI=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBqmn/mKay22vn5YcCuJFsDg3zz3ZWvoREUXGJbL tSCShh+46+JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCapp/5gAKCRDRgEFAKaOo NhmwD/99WVXSJtBSqwlC44hQhavP2pdqLqc1xiIvYCblXQQARMPkxyPVDtVQkc3mgEAFshFXO6b bmfGmgHvaSApLyIrGL93TzV9Py8+4wUuAtoNzekukVKXusyqGiSL5t92pNLKWdLi4XhnfA5j0E7 IwaymwU0xZn8y9S4lVOwJCwFA4hhWX+pYUd0hzwnPnwFfUHRNbFgZyNwHtHRq7uK8iZzJK2NHgv vaNG/XqgO/kkkNMEQ9Z93Bc1Ka3hG1gIAIVLjuvyDPKRV2joGY/a/5Lc3UYlBPtIRm+5Q8OQyFa /QLnvawMAQJF1kOdcn6X3N2k/RqEREeJ/ikHrfyyOPSWTv1cvva4fmfzwHGFIonLqRhR9YhpgVZ VWh5wfRIZTA58UkWsFm14eKuCvvGx1yIDz3f/WzXw8VLnspOT6+sU11LUQBrXPev8OjciG0GPqV NxiQwqD2A1Pxmh1wt1tc8QFBn/PsFjo89toxD/8J2KMmZzmyG9utp6yl1rpMe//bnqREvRhTZaB gh0K+n0SDAwg4HPQvnRukpIFGX4zpunvMmMxJzSOPN5w3a/qjzgs4jJZTqrtHGi6sgeaokXQa+9 y6vDffsQ4uTATFzC8Qp6O2m4MfLDeONKI0YGu1aHXTV6zpAwL5AVv/PMopR3SnrGXzEsNyINfUz EhhV675SMe+E5GQ== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 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, 04 Sep 2026 08:23:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245068 Signed-off-by: Antonin Godard --- scripts/oe-depends-dot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/oe-depends-dot b/scripts/oe-depends-dot index c505a196f9..560d2fd2bb 100755 --- a/scripts/oe-depends-dot +++ b/scripts/oe-depends-dot @@ -119,7 +119,7 @@ Reduce the .dot file packages only, no tasks: if not key in depends[key]: depends[key].add(dep) else: - print('WARNING: Fonud duplicated line: %s' % line) + print('WARNING: Found duplicated line: %s' % line) else: depends[key] = set() depends[key].add(dep) From patchwork Fri Sep 4 08:23:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 97260 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 58AFDC79F80 for ; Fri, 4 Sep 2026 08:23:25 +0000 (UTC) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.9192.1788510197560430006 for ; Fri, 04 Sep 2026 01:23:17 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=Y2QmZiRG; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id E0AF54E41501 for ; Fri, 4 Sep 2026 08:23:15 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id B5E8C6057F for ; Fri, 4 Sep 2026 08:23:15 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9A5DC11C7A753; Fri, 4 Sep 2026 10:23:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1788510190; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=NysDmWP41Uul4eo8KMuU40N4mFoJIdtz6KWTiq1T6Go=; b=Y2QmZiRGBRKHawAilJ1j0ZYzAU/OsbIWyeAWOf0ege9pa56vNjDMaufjuw0vprauSrErxG zK2Jn0B48HGJrIExM6p6CKZnrQa4cFkP9M6+f3ByQkwaIBLExorIITSj8zsoGNDS235KiB 1/bLWHgQyEDKPnbc2qtqgg9l94cJ5idx/zE7eckzyFri5VDecyY+bjBC67Dk5PN/Co6zeU vyYfVZkjI9nex+5PZKCphNfDPr1ECoRTvoMfECzbBK6C2ZA0OYKtDUKcjeNtrLN0Ep+rhi /uwquSZRsmW7bhxxmwSquHyzHBb1WnFk954fhT2mHbO1xjRu9pC9gVmMH9WAAQ== From: Antonin Godard Date: Fri, 04 Sep 2026 10:23:01 +0200 Subject: [PATCH 4/4] scripts/oe-depends-dot: give the dotfile argument a sensible default MIME-Version: 1.0 Message-Id: <20260904-oe-depends-dot-cleanups-v1-4-b56bf05fc5fd@bootlin.com> References: <20260904-oe-depends-dot-cleanups-v1-0-b56bf05fc5fd@bootlin.com> In-Reply-To: <20260904-oe-depends-dot-cleanups-v1-0-b56bf05fc5fd@bootlin.com> To: openembedded-core@lists.openembedded.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1709; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=vtHNLFd/Qm3tiw7o6Ao1tu1F15zUt9YVSuyBOH5l4Rc=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBqmn/mFJgXnaF8H80OSLX+l4vfUsWaO+Od3i0uW pVw9sCnl7yJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCapp/5gAKCRDRgEFAKaOo NiZfD/9hjvcLQzYzVtZUvNP+afm0DjDCGs5CVH9LmdxDA16UZ9vu/htx7Uuid4CJJScoFYu/HxO 6bmEFh0Q2Jsd919XGcsd3No8KZ9T9cXrhGSE4J8t/+U581tRyygLho5ZnBFEtMm10dFl6m+bI4B 9rkieE8Q+pePq5hed2JWWYRf4Nc5tnYhFEYkPfYtQUh1Zz/Gh0wtxZWl09fwEwiI03KsUqeuh0Y vKeOeS5wMB+Qnew5+dFG13aazuOTq2JRPpnwk6IRA+3Tz8dQtSvL7RAJdDfefBCthlZ/c/fMrkC 2E/y1DWhVkEw9R533jhai6cPr6CjiowTvSG+xm1hpNmcs/tiqsLAJXO620eD7c7CTUimmQCaoZC 1o77I/mLI+5QhCEpvAg4T2NnmayEfsTu4lWXkFm8tKsqeMgfRKPmmV63lAmE+FBvb1Efwh6KZRj 50czMXg3GSvsMVt/g7RI3dF7C9i0ytz9xlHePq4ivquyrDPzuDAlpSivoYwHyowDhUHqFFGgJSZ ECbPIxOzGrx1sFACx8XigctNX7xyufiBMNbCrTlRfX/aWseKmj3wQuOFcW1So2rhZHKyngPhdU3 18u5MedZhz1ERJrCxjUbKLQGkzZXyaudYLQZ7+X55fDLmP1V/bCtojrZ5phbTB2TFK7vI4oriQW 6itBLsYIU4bXAXw== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 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, 04 Sep 2026 08:23:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245070 Running this script mostly happens after running 'bitbake -g ', which generates the task-depends.dot file in the current working directory with the name 'task-depends.dot'. Make the dotfile positional argument optional with './task-depends.dot' as default value, so we can run the command without specify it each time. If the file doesn't exist, hint the user at what to do (run bitbake -g). Signed-off-by: Antonin Godard --- scripts/oe-depends-dot | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/oe-depends-dot b/scripts/oe-depends-dot index 560d2fd2bb..92e68e74ae 100755 --- a/scripts/oe-depends-dot +++ b/scripts/oe-depends-dot @@ -17,7 +17,8 @@ class Dot(object): description="Analyse task-depends.dot generated by bitbake -g", formatter_class=argparse.RawDescriptionHelpFormatter) parser.add_argument("dotfile", - help = "Specify the dotfile", action='store', default='') + help = "Dotfile to inspect (default: ./task-depends.dot)", + nargs='?', action='store', default='./task-depends.dot') parser.add_argument("-k", "--key", help = "Specify the key, e.g., recipe name", action="store", default='') @@ -49,6 +50,10 @@ Reduce the .dot file packages only, no tasks: self.args = parser.parse_args() + if not os.path.exists(self.args.dotfile): + print(f"Dotfile {self.args.dotfile} does not exists. Did you run 'bitbake -g '?") + sys.exit(1) + @staticmethod def insert_dep_chain(chain, rdeps, alldeps): """