aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/debian.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-09-16 20:28:29 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-16 17:36:26 +0100
commite59c4e34daa688c033dd4ac07a69099610ac5705 (patch)
tree38ca1e78c2668942828bb198ec407901c11af23d /meta/classes/debian.bbclass
parentcb19503139b9102f02ba3e5be63d5e85f280f2ef (diff)
downloadopenembedded-core-contrib-e59c4e34daa688c033dd4ac07a69099610ac5705.tar.gz
debian/_ipk.bbclass: Added multilib support for package_name_hook()
[YOCTO #1486] 1. Added multilib support for package_name_hook() so MLPREFIX is kept in the final package name. 2. clean the output of log_check_ipk. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'meta/classes/debian.bbclass')
-rw-r--r--meta/classes/debian.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass
index 46a9d089c2..1880830775 100644
--- a/meta/classes/debian.bbclass
+++ b/meta/classes/debian.bbclass
@@ -104,6 +104,10 @@ python debian_package_name_hook () {
newpkg = pkgname
else:
newpkg = pkg.replace(orig_pkg, devname, 1)
+ mlpre=bb.data.getVar('MLPREFIX', d, True)
+ if mlpre:
+ if not newpkg.find(mlpre) == 0:
+ newpkg = mlpre + newpkg
if newpkg != pkg:
bb.data.setVar('PKG_' + pkg, newpkg, d)