diff options
author | Andrew Bradford <andrew.bradford@kodakalaris.com> | 2016-05-25 15:46:11 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-17 17:08:25 +0100 |
commit | 40f3099e8ec5c6f3a8b7f3d0e90f1c65c388ee77 (patch) | |
tree | f0e805f92498eba2637942efaccbe23e4426c7c3 /meta/classes/base.bbclass | |
parent | 0006a7fada2fcf1d3194f6a377b5b516da08bfc7 (diff) | |
download | poky-40f3099e8ec5c6f3a8b7f3d0e90f1c65c388ee77.tar.gz |
base.bbclass: p4 fetcher supports srcrev
Enable the perforce fetcher to call bb.fetch2.get_srcrev() as it can use
'SRCREV = "${AUTOREV}"'.
(From OE-Core rev: 9d6ac71e4d954d857ecb1708ab4fe4bc552244aa)
Signed-off-by: Andrew Bradford <andrew.bradford@kodakalaris.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 357062b3c1..5d8e8d6701 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -569,6 +569,10 @@ python () { | |||
569 | needsrcrev = True | 569 | needsrcrev = True |
570 | d.appendVarFlag('do_fetch', 'depends', ' mercurial-native:do_populate_sysroot') | 570 | d.appendVarFlag('do_fetch', 'depends', ' mercurial-native:do_populate_sysroot') |
571 | 571 | ||
572 | # Perforce packages support SRCREV = "${AUTOREV}" | ||
573 | elif scheme == "p4": | ||
574 | needsrcrev = True | ||
575 | |||
572 | # OSC packages should DEPEND on osc-native | 576 | # OSC packages should DEPEND on osc-native |
573 | elif scheme == "osc": | 577 | elif scheme == "osc": |
574 | d.appendVarFlag('do_fetch', 'depends', ' osc-native:do_populate_sysroot') | 578 | d.appendVarFlag('do_fetch', 'depends', ' osc-native:do_populate_sysroot') |