poky/scripts/lib
Chang Rebecca Swee Fun 05bcd72f9f 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: 53f8effa3eb07dc7035ff9933e7918318f242579)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-12-18 18:03:57 +00: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: implement conditional patch handling 2017-11-11 12:14:27 +00:00
recipetool recipetool: create: fix conflict between SRCREV and tag 2017-12-18 18:03:57 +00:00
wic wic: support filesystem label for rawcopy 2017-12-10 22:45:19 +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 scripts: consolidate code to find bitbake path 2014-06-25 13:51:45 +01:00
scriptutils.py scriptutils: fix fetch_url() to use lowercase dummy recipe name 2017-08-31 23:30:03 +01:00