mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 18:32:13 +02:00
qemuboot.bbclass: don't fail on very first build
During the very first build, the DEPLOY_DIR_IMAGE directory might not have been created yet, causing the creation of the qemuboot.conf config file to fail. This is because write_qemuboot_conf() runs at rootfs creation time, i.e. before deploy. So let's create the directory if necessary before trying to write the config file. (From OE-Core rev: ee4697350a553a36ca17b9376911e56eee43a465) Signed-off-by: André Draszik <git@andred.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
dbb76e297b
commit
1a8e50e153
@@ -72,6 +72,7 @@ python write_qemuboot_conf() {
|
||||
kernel = os.readlink(kernel_link)
|
||||
cf.set('config_bsp', 'QB_DEFAULT_KERNEL', kernel)
|
||||
|
||||
bb.utils.mkdirhier(os.path.dirname(qemuboot))
|
||||
with open(qemuboot, 'w') as f:
|
||||
cf.write(f)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user