From 9d6ac71e4d954d857ecb1708ab4fe4bc552244aa Mon Sep 17 00:00:00 2001 From: Andrew Bradford Date: Wed, 25 May 2016 15:46:11 -0400 Subject: base.bbclass: p4 fetcher supports srcrev Enable the perforce fetcher to call bb.fetch2.get_srcrev() as it can use 'SRCREV = "${AUTOREV}"'. Signed-off-by: Andrew Bradford Signed-off-by: Richard Purdie --- meta/classes/base.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/classes') 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 () { needsrcrev = True d.appendVarFlag('do_fetch', 'depends', ' mercurial-native:do_populate_sysroot') + # Perforce packages support SRCREV = "${AUTOREV}" + elif scheme == "p4": + needsrcrev = True + # OSC packages should DEPEND on osc-native elif scheme == "osc": d.appendVarFlag('do_fetch', 'depends', ' osc-native:do_populate_sysroot') -- cgit v1.2.3