From: Chris Spencer Date: Mon, 5 Aug 2024 14:56:39 +0000 (+0100) Subject: cargo_common.bbclass: Support git repos with submodules X-Git-Tag: yocto-5.1~342 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f871d9d6094ec0001d826e4b5b3395c1842631bb;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git 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. Signed-off-by: Chris Spencer Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/cargo_common.bbclass b/meta/classes-recipe/cargo_common.bbclass index 2386cc3d779..c528ae7f39d 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() { fetcher = bb.fetch2.Fetch(src_uri, d) for url in fetcher.urls: ud = fetcher.ud[url] - if ud.type == 'git': + if ud.type == 'git' or ud.type == 'gitsm': name = ud.parm.get('name') destsuffix = ud.parm.get('destsuffix') if name is not None and destsuffix is not None: