summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/qemuboot.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass
index 39df3ad388..8b1d4d087d 100644
--- a/meta/classes/qemuboot.bbclass
+++ b/meta/classes/qemuboot.bbclass
@@ -42,7 +42,7 @@ QB_DEFAULT_FSTYPE ?= "ext4"
42QB_OPT_APPEND ?= "-show-cursor" 42QB_OPT_APPEND ?= "-show-cursor"
43 43
44# Create qemuboot.conf 44# Create qemuboot.conf
45ROOTFS_POSTPROCESS_COMMAND += "write_qemuboot_conf; " 45addtask do_write_qemuboot_conf after do_rootfs before do_image
46 46
47def qemuboot_vars(d): 47def qemuboot_vars(d):
48 build_vars = ['MACHINE', 'TUNE_ARCH', 'DEPLOY_DIR_IMAGE', 48 build_vars = ['MACHINE', 'TUNE_ARCH', 'DEPLOY_DIR_IMAGE',
@@ -51,8 +51,8 @@ def qemuboot_vars(d):
51 'STAGING_DIR_HOST'] 51 'STAGING_DIR_HOST']
52 return build_vars + [k for k in d.keys() if k.startswith('QB_')] 52 return build_vars + [k for k in d.keys() if k.startswith('QB_')]
53 53
54write_qemuboot_conf[vardeps] += "${@' '.join(qemuboot_vars(d))}" 54do_write_qemuboot_conf[vardeps] += "${@' '.join(qemuboot_vars(d))}"
55python write_qemuboot_conf() { 55python do_write_qemuboot_conf() {
56 import configparser 56 import configparser
57 57
58 qemuboot = "%s/%s.qemuboot.conf" % (d.getVar('DEPLOY_DIR_IMAGE', True), d.getVar('IMAGE_NAME', True)) 58 qemuboot = "%s/%s.qemuboot.conf" % (d.getVar('DEPLOY_DIR_IMAGE', True), d.getVar('IMAGE_NAME', True))