Patchwork [CONSOLIDATED,PULL,5/5] package.bbclass: per recipe PRSERV_HOST support

login
register
mail settings
Submitter Saul Wold
Date Jan. 11, 2012, 7:36 a.m.
Message ID <cf1594bdb3a688577ad77bad0d70a0a7f4c629d1.1326267271.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/19055/
State New
Headers show

Comments

Saul Wold - Jan. 11, 2012, 7:36 a.m.
From: Lianhao Lu <lianhao.lu@intel.com>

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

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
---
 meta/classes/package.bbclass |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

Patch

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):
 #
 
 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)