[OE-core] [PATCH] image: Fix a build error by adding kernel dependence to do_rootfs
Firo Yang
yongming.yang at windriver.com
Wed Jul 29 07:48:28 UTC 2015
Issue: LIN7-4290
do_rootfs needs a file named kernel-abiversion generated by
virtual/kernel:do_packagedata to run depmod.
If do_rootfs scheduled before virtual/kernel:do_packagedata that will
make do_roofs failed because of leaking the file kernel-abiversion.
So add the dependence of virtual/kernel:do_packagedata to do_rootfs
will make it happier.
Signed-off-by: Firo Yang <yongming.yang at windriver.com>
---
meta/classes/image.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index ed12abb..b6128da 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -77,7 +77,7 @@ 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] += "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):
--
1.9.1
More information about the Openembedded-core
mailing list