]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cargo_common.bbclass: Support git repos with submodules
authorChris Spencer <spencercw@gmail.com>
Mon, 5 Aug 2024 14:56:39 +0000 (15:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Aug 2024 13:28:23 +0000 (14:28 +0100)
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 <spencercw@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cargo_common.bbclass

index 2386cc3d7799a10add344073109b2d444e402e18..c528ae7f39d2bc1980d0fccbfefc6c619d7952ef 100644 (file)
@@ -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: