diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2011-09-16 20:28:29 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-16 18:07:25 +0100 |
commit | 27f88685091298fec502cdeb68ae04684ba3d678 (patch) | |
tree | bcac5ae540d814ff3949041db50ae73ba57266ac /meta/classes | |
parent | f5a1b3c8f7e252def9ffb269f52f946c826ae851 (diff) | |
download | poky-27f88685091298fec502cdeb68ae04684ba3d678.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.
(From OE-Core rev: e59c4e34daa688c033dd4ac07a69099610ac5705)
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/debian.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/package_ipk.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 2 |
3 files changed, 6 insertions, 1 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 () { | |||
104 | newpkg = pkgname | 104 | newpkg = pkgname |
105 | else: | 105 | else: |
106 | newpkg = pkg.replace(orig_pkg, devname, 1) | 106 | newpkg = pkg.replace(orig_pkg, devname, 1) |
107 | mlpre=bb.data.getVar('MLPREFIX', d, True) | ||
108 | if mlpre: | ||
109 | if not newpkg.find(mlpre) == 0: | ||
110 | newpkg = mlpre + newpkg | ||
107 | if newpkg != pkg: | 111 | if newpkg != pkg: |
108 | bb.data.setVar('PKG_' + pkg, newpkg, d) | 112 | bb.data.setVar('PKG_' + pkg, newpkg, d) |
109 | 113 | ||
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index e83aff8fe9..c0893a6cda 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
@@ -75,6 +75,7 @@ package_tryout_install_multilib_ipk() { | |||
75 | fi | 75 | fi |
76 | done | 76 | done |
77 | if [ ! -z "${selected_pkg}" ]; then | 77 | if [ ! -z "${selected_pkg}" ]; then |
78 | rm -f ${target_rootfs} | ||
78 | mkdir -p ${target_rootfs}/${opkglibdir} | 79 | mkdir -p ${target_rootfs}/${opkglibdir} |
79 | opkg-cl ${ipkg_args} update | 80 | opkg-cl ${ipkg_args} update |
80 | opkg-cl ${ipkg_args} install ${selected_pkg} | 81 | opkg-cl ${ipkg_args} install ${selected_pkg} |
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index 695bee0296..e02b8165b7 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
@@ -114,7 +114,7 @@ fakeroot rootfs_ipk_do_rootfs () { | |||
114 | rm -rf ${IMAGE_ROOTFS}${opkglibdir} | 114 | rm -rf ${IMAGE_ROOTFS}${opkglibdir} |
115 | fi | 115 | fi |
116 | fi | 116 | fi |
117 | 117 | set +x | |
118 | log_check rootfs | 118 | log_check rootfs |
119 | } | 119 | } |
120 | 120 | ||