diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2011-12-29 16:35:53 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-11 10:33:24 +0000 |
commit | d5b8caac0e7fc4b05c76b4d3da0508e2a53f28cd (patch) | |
tree | 50d0a90544f8c7042cefee683a657d8ec9f81d70 /meta | |
parent | 9979107d8eaf503efd921564385859b1e83dbb3c (diff) | |
download | openembedded-core-d5b8caac0e7fc4b05c76b4d3da0508e2a53f28cd.tar.gz openembedded-core-d5b8caac0e7fc4b05c76b4d3da0508e2a53f28cd.tar.bz2 openembedded-core-d5b8caac0e7fc4b05c76b4d3da0508e2a53f28cd.zip |
package.bbclass: per recipe PRSERV_HOST support
[YOCTO #1126]
Added per recipe PRSERV_HOST PRSERV_PORT support.
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/package.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 65e65715ea..f8f0a12dc1 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -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) |