summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/image.bbclass16
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
24PACKAGE_ARCH = "${MACHINE_ARCH}" 24PACKAGE_ARCH = "${MACHINE_ARCH}"
25 25
26do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ldconfig-native:do_populate_sysroot" 26LDCONFIGDEPEND = "ldconfig-native:do_populate_sysroot"
27LDCONFIGDEPEND_linux-uclibc = ""
28LDCONFIGDEPEND_linux-uclibceabi = ""
29
30do_rootfs[depends] += "makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ${LDCONFIGDEPEND}"
27do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot" 31do_rootfs[depends] += "virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot"
28 32
29python () { 33python () {
@@ -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