diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-10-20 02:25:51 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-11-16 11:39:27 +0000 |
commit | 38d1d63bc9357ebb07ecaa290ca4e368d134d57a (patch) | |
tree | c276602a43598f4ed1dc5e4034a26fe57ef5adb1 | |
parent | d3da00648ccd4b281871efdd1be7790fe77e5d1e (diff) | |
download | poky-38d1d63bc9357ebb07ecaa290ca4e368d134d57a.tar.gz |
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.
(From OE-Core rev: 53aae968a6972f152f4b540deaf79963765ff559)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/prexport.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/prexport.bbclass b/meta/classes/prexport.bbclass index 5a1cb33c6a..809ec1034e 100644 --- a/meta/classes/prexport.bbclass +++ b/meta/classes/prexport.bbclass | |||
@@ -8,7 +8,8 @@ PRSERV_DUMPFILE ??= "${PRSERV_DUMPDIR}/prserv.inc" | |||
8 | 8 | ||
9 | python prexport_handler () { | 9 | python prexport_handler () { |
10 | import bb.event | 10 | import bb.event |
11 | if not e.data: | 11 | if not e.data or bb.data.inherits_class('native', e.data) or \ |
12 | bb.data.inherits_class('crosssdk', e.data): | ||
12 | return | 13 | return |
13 | 14 | ||
14 | if isinstance(e, bb.event.RecipeParsed): | 15 | if isinstance(e, bb.event.RecipeParsed): |
@@ -21,7 +22,7 @@ python prexport_handler () { | |||
21 | bb.fatal("prexport_handler: export failed!") | 22 | bb.fatal("prexport_handler: export failed!") |
22 | (metainfo, datainfo) = retval | 23 | (metainfo, datainfo) = retval |
23 | if not datainfo: | 24 | if not datainfo: |
24 | bb.warn("prexport_handler: No AUTOPR values found for %s" % ver) | 25 | bb.note("prexport_handler: No AUTOPR values found for %s" % ver) |
25 | return | 26 | return |
26 | oe.prservice.prserv_export_tofile(e.data, None, datainfo, False) | 27 | oe.prservice.prserv_export_tofile(e.data, None, datainfo, False) |
27 | if 'AUTOINC' in ver: | 28 | if 'AUTOINC' in ver: |