| Message ID | 20260518130730.1480629-1-george.refseth@remarkable.no |
|---|---|
| State | New |
| Headers | show |
| Series | cargo_common.bbclass: add subdir argument to git dependency to let cargo find crate | expand |
diff --git a/meta/classes-recipe/cargo_common.bbclass b/meta/classes-recipe/cargo_common.bbclass index 0d3edfe4a7..c1fe6a24ed 100644 --- a/meta/classes-recipe/cargo_common.bbclass +++ b/meta/classes-recipe/cargo_common.bbclass @@ -154,6 +154,9 @@ python cargo_common_do_patch_paths() { repo = '%s://%s@%s%s' % (ud.proto, ud.user, ud.host, ud.path) else: repo = '%s://%s%s' % (ud.proto, ud.host, ud.path) + subdir = ud.parm.get('subdir') + if subdir is not None: + destsuffix = os.path.join(destsuffix, subdir) path = '%s = { path = "%s" }' % (name, os.path.join(workdir, destsuffix)) patches.setdefault(repo, []).append(path)