summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorJulien Stephan <jstephan@baylibre.com>2023-11-22 12:08:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-01 11:48:25 +0000
commit17427db136491f13b0c9f187906ce9e3f6c85b29 (patch)
tree63c8c76716b6984a4097c275a74fc1cf1bac2943 /meta/classes
parent1ae4cc7a1158d704c7f41bdae4fe194a9c57df05 (diff)
downloadpoky-17427db136491f13b0c9f187906ce9e3f6c85b29.tar.gz
devtool: tag all submodules
In the case of a repository with submodules, we need to add the "devtool-base" and "devtool-patched" tag on all submodules in order to properly detect the added/removed/modified patches (From OE-Core rev: 241da68805d177d4ec4b302c8a997645cc645286) Signed-off-by: Julien Stephan <jstephan@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/devtool-source.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/devtool-source.bbclass b/meta/classes/devtool-source.bbclass
index a02b1e9b0e..4158c20c7e 100644
--- a/meta/classes/devtool-source.bbclass
+++ b/meta/classes/devtool-source.bbclass
@@ -232,6 +232,9 @@ python devtool_post_patch() {
232 bb.process.run('git rebase devtool-no-overrides', cwd=srcsubdir) 232 bb.process.run('git rebase devtool-no-overrides', cwd=srcsubdir)
233 bb.process.run('git checkout %s' % devbranch, cwd=srcsubdir) 233 bb.process.run('git checkout %s' % devbranch, cwd=srcsubdir)
234 bb.process.run('git tag -f devtool-patched', cwd=srcsubdir) 234 bb.process.run('git tag -f devtool-patched', cwd=srcsubdir)
235 if os.path.exists(os.path.join(srcsubdir, '.gitmodules')):
236 bb.process.run('git submodule foreach --recursive "git tag -f devtool-patched"', cwd=srcsubdir)
237
235} 238}
236 239
237python devtool_post_configure() { 240python devtool_post_configure() {