package.bbclass: per recipe PRSERV_HOST support

[YOCTO #1126]
Added per recipe PRSERV_HOST PRSERV_PORT support.

(From OE-Core rev: d5b8caac0e7fc4b05c76b4d3da0508e2a53f28cd)

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Lianhao Lu 2011-12-29 16:35:53 +08:00 committed by Richard Purdie
parent a05e3a57c6
commit 18c88fcec8
1 changed files with 8 additions and 0 deletions

View File

@ -350,6 +350,14 @@ def runtime_mapping_rename (varname, d):
#
python package_get_auto_pr() {
# per recipe PRSERV_HOST PRSERV_PORT
pn = d.getVar('PN', True)
host = d.getVar("PRSERV_HOST_" + pn, True)
port = d.getVar("PRSERV_PORT_" + pn, True)
if not (host is None):
d.setVar("PRSERV_HOST", host)
if not (port is None):
d.setVar("PRSERV_PORT", port)
if d.getVar('USE_PR_SERV', True) != "0":
try:
auto_pr=prserv_get_pr_auto(d)