diff options
| -rw-r--r-- | meta/classes/image.bbclass | 16 |
1 files changed, 11 insertions, 5 deletions
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()}" | |||
| 23 | 23 | ||
| 24 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 24 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 25 | 25 | ||
| 26 | do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ldconfig-native:do_populate_sysroot" | 26 | LDCONFIGDEPEND = "ldconfig-native:do_populate_sysroot" |
| 27 | LDCONFIGDEPEND_linux-uclibc = "" | ||
| 28 | LDCONFIGDEPEND_linux-uclibceabi = "" | ||
| 29 | |||
| 30 | do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ${LDCONFIGDEPEND}" | ||
| 27 | do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot" | 31 | do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot" |
| 28 | 32 | ||
| 29 | python () { | 33 | python () { |
| @@ -96,10 +100,12 @@ fakeroot do_rootfs () { | |||
| 96 | 100 | ||
| 97 | insert_feed_uris | 101 | insert_feed_uris |
| 98 | 102 | ||
| 99 | # Run ldconfig on the image to create a valid cache | 103 | if [ "x${LDCONFIGDEPEND}" != "x" ]; then |
| 100 | # (new format for cross arch compatibility) | 104 | # Run ldconfig on the image to create a valid cache |
| 101 | echo executing: ldconfig -r ${IMAGE_ROOTFS} -c new -v | 105 | # (new format for cross arch compatibility) |
| 102 | ldconfig -r ${IMAGE_ROOTFS} -c new -v | 106 | echo executing: ldconfig -r ${IMAGE_ROOTFS} -c new -v |
| 107 | ldconfig -r ${IMAGE_ROOTFS} -c new -v | ||
| 108 | fi | ||
| 103 | 109 | ||
| 104 | # (re)create kernel modules dependencies | 110 | # (re)create kernel modules dependencies |
| 105 | # This part is done by kernel-module-* postinstall scripts but if image do | 111 | # This part is done by kernel-module-* postinstall scripts but if image do |
