All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] image: Add missing depends on virtual/kernel for depmod data
@ 2015-01-27 15:29 Richard Purdie
  2015-01-27 15:45 ` Bruce Ashfield
  2015-01-27 17:20 ` Dan McGregor
  0 siblings, 2 replies; 8+ messages in thread
From: Richard Purdie @ 2015-01-27 15:29 UTC (permalink / raw)
  To: openembedded-core; +Cc: Hart, Darren

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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 22b6970..5b88f53 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_populate_sysroot"
 do_rootfs[recrdeptask] += "do_packagedata"
 
 def command_variables(d):




^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-01-27 17:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 15:29 [PATCH] image: Add missing depends on virtual/kernel for depmod data Richard Purdie
2015-01-27 15:45 ` Bruce Ashfield
2015-01-27 15:48   ` Hart, Darren
2015-01-27 16:18     ` Richard Purdie
2015-01-27 16:47       ` Hart, Darren
2015-01-27 16:17   ` Richard Purdie
2015-01-27 17:20 ` Dan McGregor
2015-01-27 17:36   ` Paul Eggleton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.