poky/scripts/lib
Chang Rebecca Swee Fun b443c17416 recipetool: create: fix conflict between SRCREV and tag
If you specify 'tag=' for a git URL and passed to recipetool create, you
will get into Bitbake expansion error shown below:

----- snip -----
$ devtool add --version 2.4.2 mbedtls "git://github.com/ARMmbed/mbedtls;tag=mbedtls-2.4.2"
...
bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Conflicting revisions (abeccb9dbd7e19ae91ac50e1edd3803111c5f9b6 from SRCREV and mbedtls-2.4.2 from the url) found, please specify one valid value
----- snip -----

Assuming the tag is valid, we should get the tag commit hash and
drop the usage of 'tag=' from SRC_URI. By using a commit hash
corresponding to the tag will prevent bitbake from accessing
remote repository in order to expand SRCPV.

(From OE-Core rev: 4953d54dd06ff7025406d2df6a71c95162cc1ec7)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 53f8effa3eb07dc7035ff9933e7918318f242579)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-01-06 10:13:56 +00:00
..
bsp linux-yocto: add linux-yocto 4.12 bbappends 2017-08-31 23:37:10 +01:00
build_perf scripts/oe-build-perf-report: show recipe version changes in html report 2017-09-18 11:07:30 +01:00
checklayer scripts: drop True option to getVar calls 2017-09-26 11:05:01 +01:00
devtool devtool: standard: Expand SRCREV before using it in _update_recipe_srcrev 2017-10-16 23:52:44 +01:00
recipetool recipetool: create: fix conflict between SRCREV and tag 2018-01-06 10:13:56 +00:00
wic wic: support filesystem label for rawcopy 2018-01-06 10:13:55 +00:00
argparse_oe.py argparse_oe: Add int_positive type 2017-07-21 08:44:25 +01:00
buildstats.py scripts/oe-build-perf-report: show recipe version changes in html report 2017-09-18 11:07:30 +01:00
scriptpath.py
scriptutils.py scriptutils: fix fetch_url() to use lowercase dummy recipe name 2017-08-31 23:30:03 +01:00