From patchwork Thu Feb 12 10:38:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clement Faure X-Patchwork-Id: 2209 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 C5EF1EB48FC for ; Thu, 12 Feb 2026 10:38:43 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.42426.1770892717528203458 for ; Thu, 12 Feb 2026 02:38:37 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: clement.faure@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 01BBF339; Thu, 12 Feb 2026 02:38:30 -0800 (PST) Received: from MGC575JXM4.arm.com (unknown [10.57.7.242]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 320C23F632; Thu, 12 Feb 2026 02:38:35 -0800 (PST) From: Clement Faure To: openembedded-core@lists.openembedded.org Cc: saul.wold@windriver.com, ross.burton@arm.com, Clement Faure Subject: [PATCH v2 0/2] devtool: handle nested git repos with submodules Date: Thu, 12 Feb 2026 11:38:01 +0100 Message-ID: <20260212103803.63277-1-clement.faure@arm.com> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 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, 12 Feb 2026 10:38:43 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/231018 This patch set fixes devtool modify command when a recipe fetches a git repository with submodules to BB_GIT_DEFAULT_DESTSUFFIX. Devtool would parse BB_GIT_DEFAULT_DESTSUFFIX recursively and attempt a duplicate git submodule add command resulting in a devtool modify command failure. The patch fixes that and stops descending once .gitmodules is detected. A selftest test case has been added to cover this scenario. Tests ran: - devtool.* changes in v2: - fix patch 1 Clement Faure (2): devtool: avoid recursion into nested git repos with submodules oeqa/selftest/devtool: add devtool modify testcase for nested gitsm .../devtool/devtool-test-git-gitsm_git.bb | 10 ++++++++ meta/lib/oeqa/selftest/cases/devtool.py | 25 +++++++++++++++++++ scripts/lib/devtool/__init__.py | 4 +++ 3 files changed, 39 insertions(+) create mode 100644 meta-selftest/recipes-test/devtool/devtool-test-git-gitsm_git.bb