summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-12-29 08:35:53 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-11 10:37:43 (GMT)
commit18c88fcec85f96d2495457928be913807971aea7 (patch)
tree43a3cfc4c02676368b33090e815ac5b424aae934
parenta05e3a57c6f567578faeb31fae89b20e22850af4 (diff)
downloadpoky-18c88fcec85f96d2495457928be913807971aea7.tar.gz
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>
-rw-r--r--meta/classes/package.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 65e6571..f8f0a12 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -350,6 +350,14 @@ def runtime_mapping_rename (varname, d):
350# 350#
351 351
352python package_get_auto_pr() { 352python package_get_auto_pr() {
353 # per recipe PRSERV_HOST PRSERV_PORT
354 pn = d.getVar('PN', True)
355 host = d.getVar("PRSERV_HOST_" + pn, True)
356 port = d.getVar("PRSERV_PORT_" + pn, True)
357 if not (host is None):
358 d.setVar("PRSERV_HOST", host)
359 if not (port is None):
360 d.setVar("PRSERV_PORT", port)
353 if d.getVar('USE_PR_SERV', True) != "0": 361 if d.getVar('USE_PR_SERV', True) != "0":
354 try: 362 try:
355 auto_pr=prserv_get_pr_auto(d) 363 auto_pr=prserv_get_pr_auto(d)