summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Spencer <spencercw@gmail.com>2024-08-05 15:56:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-08-08 14:28:49 +0100
commit0043986334e587dd09887b81535644ae437b2893 (patch)
treec86c2f9e499e8190dc436ce173ce629e41593d63
parenta09df950ea8ddec4188b48f4be73e67442dd3c01 (diff)
downloadpoky-0043986334e587dd09887b81535644ae437b2893.tar.gz
cargo_common.bbclass: Support git repos with submodules
This is useful for cargo dependencies specified as git repositories, where those repositories themselves have submodules that need to be checked out. (From OE-Core rev: f871d9d6094ec0001d826e4b5b3395c1842631bb) Signed-off-by: Chris Spencer <spencercw@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/cargo_common.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/cargo_common.bbclass b/meta/classes-recipe/cargo_common.bbclass
index 2386cc3d77..c528ae7f39 100644
--- a/meta/classes-recipe/cargo_common.bbclass
+++ b/meta/classes-recipe/cargo_common.bbclass
@@ -142,7 +142,7 @@ python cargo_common_do_patch_paths() {
142 fetcher = bb.fetch2.Fetch(src_uri, d) 142 fetcher = bb.fetch2.Fetch(src_uri, d)
143 for url in fetcher.urls: 143 for url in fetcher.urls:
144 ud = fetcher.ud[url] 144 ud = fetcher.ud[url]
145 if ud.type == 'git': 145 if ud.type == 'git' or ud.type == 'gitsm':
146 name = ud.parm.get('name') 146 name = ud.parm.get('name')
147 destsuffix = ud.parm.get('destsuffix') 147 destsuffix = ud.parm.get('destsuffix')
148 if name is not None and destsuffix is not None: 148 if name is not None and destsuffix is not None: