[OE-core] [PATCH 14/25] recipeutils: set SRCPV for devupstream variant

Alexander Kanavin alex.kanavin at gmail.com
Wed Dec 18 14:37:47 UTC 2019


Otherwise bitbake is unable to expand it if the main
variant is not using a SCM fetcher.

Signed-off-by: Alexander Kanavin <alex.kanavin at gmail.com>
---
 meta/lib/oe/recipeutils.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index 630ae967af4..f53c2b71267 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -421,6 +421,8 @@ def copy_recipe_files(d, tgt_dir, whole_dir=False, download=True, all_variants=F
             # Ensure we handle class-target if we're dealing with one of the variants
             variants.append('target')
             for variant in variants:
+                if variant.startswith("devupstream"):
+                    localdata.setVar('SRCPV', 'git')
                 localdata.setVar('CLASSOVERRIDE', 'class-%s' % variant)
                 fetch_urls(localdata)
 
-- 
2.17.1



More information about the Openembedded-core mailing list