diff options
-rw-r--r-- | meta/classes/image-mklibs.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/package_ipk.bbclass | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/meta/classes/image-mklibs.bbclass b/meta/classes/image-mklibs.bbclass index 69dac2f567..762381520e 100644 --- a/meta/classes/image-mklibs.bbclass +++ b/meta/classes/image-mklibs.bbclass | |||
@@ -60,7 +60,7 @@ mklibs_optimize_image_doit() { | |||
60 | mklibs_optimize_image() { | 60 | mklibs_optimize_image() { |
61 | for img in ${MKLIBS_OPTIMIZED_IMAGES} | 61 | for img in ${MKLIBS_OPTIMIZED_IMAGES} |
62 | do | 62 | do |
63 | if [ "${img}" == "${PN}" ] || [ "${img}" == "all" ] | 63 | if [ "${img}" = "${PN}" ] || [ "${img}" = "all" ] |
64 | then | 64 | then |
65 | mklibs_optimize_image_doit | 65 | mklibs_optimize_image_doit |
66 | break | 66 | break |
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index aeabc11018..36dedb9c61 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
@@ -72,8 +72,10 @@ package_tryout_install_multilib_ipk() { | |||
72 | local ipkg_args="-f ${INSTALL_CONF_IPK} -o ${target_rootfs} --force_overwrite" | 72 | local ipkg_args="-f ${INSTALL_CONF_IPK} -o ${target_rootfs} --force_overwrite" |
73 | local selected_pkg="" | 73 | local selected_pkg="" |
74 | local pkgname_prefix="${item}-" | 74 | local pkgname_prefix="${item}-" |
75 | local pkgname_len=${#pkgname_prefix} | ||
75 | for pkg in ${INSTALL_PACKAGES_MULTILIB_IPK}; do | 76 | for pkg in ${INSTALL_PACKAGES_MULTILIB_IPK}; do |
76 | if [ ${pkg:0:${#pkgname_prefix}} == ${pkgname_prefix} ]; then | 77 | local pkgname=$(echo $pkg | awk -v var=$pkgname_len '{ pkgname=substr($1, 1, var - 1); print pkgname; }' ) |
78 | if [ ${pkgname} = ${pkgname_prefix} ]; then | ||
77 | selected_pkg="${selected_pkg} ${pkg}" | 79 | selected_pkg="${selected_pkg} ${pkg}" |
78 | fi | 80 | fi |
79 | done | 81 | done |
@@ -94,7 +96,9 @@ split_multilib_packages() { | |||
94 | is_multilib=0 | 96 | is_multilib=0 |
95 | for item in ${MULTILIB_VARIANTS}; do | 97 | for item in ${MULTILIB_VARIANTS}; do |
96 | local pkgname_prefix="${item}-" | 98 | local pkgname_prefix="${item}-" |
97 | if [ ${pkg:0:${#pkgname_prefix}} == ${pkgname_prefix} ]; then | 99 | local pkgname_len=${#pkgname_prefix} |
100 | local pkgname=$(echo $pkg | awk -v var=$pkgname_len '{ pkgname=substr($1, 1, var - 1); print pkgname; }' ) | ||
101 | if [ ${pkgname} = ${pkgname_prefix} ]; then | ||
98 | is_multilib=1 | 102 | is_multilib=1 |
99 | break | 103 | break |
100 | fi | 104 | fi |