]> code.ossystems Code Review - openembedded-core.git/commitdiff
recipeutils: set SRCPV for devupstream variant
authorAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 17 Dec 2019 18:54:02 +0000 (19:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Dec 2019 23:25:35 +0000 (23:25 +0000)
Otherwise bitbake is unable to expand it if the main
variant is not using a SCM fetcher.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/recipeutils.py

index 630ae967af4c19ed6de5103c77773cf362e8409e..f53c2b712677464408413e6f2cdd5de607651c26 100644 (file)
@@ -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)