[OE-core] [PATCH] image-mklibs.bbclass: add a missing dependency

liu.ming50 at gmail.com liu.ming50 at gmail.com
Thu Jul 6 14:40:38 UTC 2017


From: Ming Liu <peter.x.liu at external.atlascopco.com>

${HOST_PREFIX}readelf is being called in mklibs_optimize_image_doit, so
do_rootfs should depend on
virtual/${MLPREFIX}${TARGET_PREFIX}binutils:do_populate_sysroot.

Also pass ${IMAGE_ROOTFS} with --sysroot option which works well per
test, or else the do_rootfs needs pull in the entire sysroot which cost
too much.

Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
---
 meta/classes/image-mklibs.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/image-mklibs.bbclass b/meta/classes/image-mklibs.bbclass
index 5f6df1b..af9b140 100644
--- a/meta/classes/image-mklibs.bbclass
+++ b/meta/classes/image-mklibs.bbclass
@@ -1,4 +1,4 @@
-do_rootfs[depends] += "mklibs-native:do_populate_sysroot"
+do_rootfs[depends] += "mklibs-native:do_populate_sysroot virtual/${MLPREFIX}${TARGET_PREFIX}binutils:do_populate_sysroot"
 
 IMAGE_PREPROCESS_COMMAND += "mklibs_optimize_image; "
 
@@ -24,7 +24,7 @@ mklibs_optimize_image_doit() {
 	mklibs -v \
 		--ldlib ${dynamic_loader} \
 		--libdir ${baselib} \
-		--sysroot ${PKG_CONFIG_SYSROOT_DIR} \
+		--sysroot ${IMAGE_ROOTFS} \
 		--gcc-options "--sysroot=${PKG_CONFIG_SYSROOT_DIR}" \
 		--root ${IMAGE_ROOTFS} \
 		--target `echo ${TARGET_PREFIX} | sed 's/-$//' ` \
-- 
2.7.4




More information about the Openembedded-core mailing list