image-mklibs.bbclass: add a missing dependency
PATCH 1/1 image-mklibs.bbclass: add a missing dependency
From: Ming Liu <[email protected]>
${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.
--- meta/classes/image-mklibs.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/image-mklibs.bbclass +2 -2
@@ -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/-$//' ` \
Signature · 1 line
2.7.4
Quoted 4 lines · On 6 July 2017 at 15:40, <[email protected]> wrote:
${HOST_PREFIX}readelf is being called in
mklibs_optimize_image_doit, sodo_rootfsshould depend on virtual/${MLPREFIX}${TARGET_PREFIX}binutils:do_populate_sysroot.
I think this was responsible for my latest autobuilder run failing:
ERROR: Nothing PROVIDES 'virtual/none-poky-none-binutils'. Close matches:
virtual/aarch64-poky-linux-binutils
Missing or unbuildable dependency chain was: ['core-image-minimal', 'uninative-tarball', 'virtual/none-poky-none-binutils']
Ross
Hi, Burton:
This patch is relying on another one I sent several days ago: "[OE-core] [PATCH V2] meta: move image-mklibs image-prelink to IMAGE_CLASSES"
Maybe I should send them together in one mail.
the best,
thank you
2017-07-11 10:36 GMT+02:00 Burton, Ross <[email protected]>:
Quoted 17 lines · On 6 July 2017 at 15:40, <[email protected]> wrote:
Quoted 5 lines
${HOST_PREFIX}readelf is being called in
mklibs_optimize_image_doit, sodo_rootfsshould depend on virtual/${MLPREFIX}${TARGET_PREFIX}binutils:do_populate_sysroot.I think this was responsible for my latest autobuilder run failing:
ERROR: Nothing PROVIDES 'virtual/none-poky-none-binutils'. Close matches:
virtual/aarch64-poky-linux-binutils
Missing or unbuildable dependency chain was: ['core-image-minimal', 'uninative-tarball', 'virtual/none-poky-none-binutils']Ross
Ah, thanks.
Ross
Quoted 31 lines · Ming Liu
Hi, Burton:
This patch is relying on another one I sent several days ago: "[OE-core] [PATCH V2] meta: move image-mklibs image-prelink to
IMAGE_CLASSES"Maybe I should send them together in one mail.
the best,
thank you2017-07-11 10:36 GMT+02:00 Burton, Ross <[email protected]>:
Quoted 17 lines · On 6 July 2017 at 15:40, <[email protected]> wrote:
Quoted 5 lines
${HOST_PREFIX}readelf is being called in
mklibs_optimize_image_doit, sodo_rootfsshould depend on virtual/${MLPREFIX}${TARGET_PREFIX}binutils:do_populate_sysroot.I think this was responsible for my latest autobuilder run failing:
ERROR: Nothing PROVIDES 'virtual/none-poky-none-binutils'. Close matches:
virtual/aarch64-poky-linux-binutils
Missing or unbuildable dependency chain was: ['core-image-minimal', 'uninative-tarball', 'virtual/none-poky-none-binutils']Ross