]> code.ossystems Code Review - openembedded-core.git/commit
qemuboot.bbclass: do not hook into do_rootfs
authorPatrick Ohly <patrick.ohly@intel.com>
Thu, 24 Nov 2016 09:51:13 +0000 (10:51 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Nov 2016 15:47:14 +0000 (15:47 +0000)
commitc8260447ed115bc5be7df9b25e449a7744d9f2df
treee48a1e455bff810f415cf7dc347c7a73967975b2
parentbbe59d7c49b540d65c871666c95cc89a23cab474
qemuboot.bbclass: do not hook into do_rootfs

Writing qemuboot.conf in write_qemuboot_conf() does not modify the
rootfs and thus conceptually shouldn't be executed as part of rootfs
creation.

Running it as separate task is cleaner and fixes the problem of
missing qemuboot.conf files for meta-swupd virtual images; those
images replace do_rootfs and ROOTFS_POSTPROCESS_COMMANDs don't run at
all.

The task gets added such that it runs roughly at the same time as
before. Probably it doesn't actually need to depend on do_rootfs, but
this way we don't write a useless qemuboot.conf in cases where
do_rootfs fails.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/qemuboot.bbclass