summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-27 15:24:52 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-29 15:35:29 +0000
commit41f0f86ec0a3e0b6f6c9bb4ef71a4215c00bf66c (patch)
treefc03ba27484725ce8de73728626e83ecfe4434cf
parentfe1f5c90eede593100fe57630d39cf329e59ef8f (diff)
downloadopenembedded-core-contrib-41f0f86ec0a3e0b6f6c9bb4ef71a4215c00bf66c.tar.gz
openembedded-core-contrib-41f0f86ec0a3e0b6f6c9bb4ef71a4215c00bf66c.tar.bz2
openembedded-core-contrib-41f0f86ec0a3e0b6f6c9bb4ef71a4215c00bf66c.zip
image: Add missing depends on virtual/kernel for depmod data
We need the depmod data so that the kernel depmod command works successfully at rootfs time. The fact this was working inconsistently is now highlighted after the command was made to error out. A simple test case is: bitbake virtual/kernel image bitbake vrituak/kernel -c clean bitbake image -c rootfs -f We fix it by adding the missing dependency, the data is in PKGDATA_DIR and hence we use packagedata. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/image.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 22b6970344..677c81acaf 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -72,8 +72,10 @@ LDCONFIGDEPEND ?= "ldconfig-native:do_populate_sysroot"
LDCONFIGDEPEND_libc-uclibc = ""
LDCONFIGDEPEND_libc-musl = ""
-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"
+do_rootfs[depends] += " \
+ makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ${LDCONFIGDEPEND} \
+ virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot \
+ virtual/kernel:do_packagedata"
do_rootfs[recrdeptask] += "do_packagedata"
def command_variables(d):