aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-10-20 00:33:27 -0700
committerRobert Yang <liezhi.yang@windriver.com>2015-10-20 02:20:04 -0700
commitd3616a95e536ad691d3a6ee432d15fa28d6d7b4a (patch)
tree62206a50a0abaaac4f679cce9fcf7dca559c3148
parent3308987e7fd99e5ebf9e812966c5cf3719ce2271 (diff)
downloadopenembedded-core-contrib-d3616a95e536ad691d3a6ee432d15fa28d6d7b4a.tar.gz
openembedded-core-contrib-d3616a95e536ad691d3a6ee432d15fa28d6d7b4a.tar.bz2
openembedded-core-contrib-d3616a95e536ad691d3a6ee432d15fa28d6d7b4a.zip
prexport.bbclass: avoid export for native and crosssdk
* The prservice is only used by do_package, the native or crosssdk doesn't have do_package. * Change WARN to NOTE when no AUTOPR found, the prexport_handler() checks all the parsed recipes, but a lot of them may not be built, for example, the lower version or broken recipes. So change WARN to NOTE to not confuse user. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r--meta/classes/prexport.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/prexport.bbclass b/meta/classes/prexport.bbclass
index 5a1cb33c6a0..809ec1034e6 100644
--- a/meta/classes/prexport.bbclass
+++ b/meta/classes/prexport.bbclass
@@ -8,7 +8,8 @@ PRSERV_DUMPFILE ??= "${PRSERV_DUMPDIR}/prserv.inc"
python prexport_handler () {
import bb.event
- if not e.data:
+ if not e.data or bb.data.inherits_class('native', e.data) or \
+ bb.data.inherits_class('crosssdk', e.data):
return
if isinstance(e, bb.event.RecipeParsed):
@@ -21,7 +22,7 @@ python prexport_handler () {
bb.fatal("prexport_handler: export failed!")
(metainfo, datainfo) = retval
if not datainfo:
- bb.warn("prexport_handler: No AUTOPR values found for %s" % ver)
+ bb.note("prexport_handler: No AUTOPR values found for %s" % ver)
return
oe.prservice.prserv_export_tofile(e.data, None, datainfo, False)
if 'AUTOINC' in ver: