From 751f42b943cbb060a95a158c17b0c5b825ae3dfa Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 5 Apr 2011 17:21:53 +0100 Subject: image.bbclass: Disable ldconfig-native when using uclibc (From OE-Core rev: 58286c2bc19f073d273895ad760689e2074489e4) Signed-off-by: Richard Purdie --- meta/classes/image.bbclass | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'meta/classes/image.bbclass') diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index d693ea5984..7d31d04a24 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -23,7 +23,11 @@ PID = "${@os.getpid()}" PACKAGE_ARCH = "${MACHINE_ARCH}" -do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ldconfig-native:do_populate_sysroot" +LDCONFIGDEPEND = "ldconfig-native:do_populate_sysroot" +LDCONFIGDEPEND_linux-uclibc = "" +LDCONFIGDEPEND_linux-uclibceabi = "" + +do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ${LDCONFIGDEPEND}" do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot" python () { @@ -96,10 +100,12 @@ fakeroot do_rootfs () { insert_feed_uris - # Run ldconfig on the image to create a valid cache - # (new format for cross arch compatibility) - echo executing: ldconfig -r ${IMAGE_ROOTFS} -c new -v - ldconfig -r ${IMAGE_ROOTFS} -c new -v + if [ "x${LDCONFIGDEPEND}" != "x" ]; then + # Run ldconfig on the image to create a valid cache + # (new format for cross arch compatibility) + echo executing: ldconfig -r ${IMAGE_ROOTFS} -c new -v + ldconfig -r ${IMAGE_ROOTFS} -c new -v + fi # (re)create kernel modules dependencies # This part is done by kernel-module-* postinstall scripts but if image do -- cgit v1.2.3-54-g00ecf