diff options
-rw-r--r-- | meta/classes/qemuboot.bbclass | 6 |
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" | |||
42 | QB_OPT_APPEND ?= "-show-cursor" | 42 | QB_OPT_APPEND ?= "-show-cursor" |
43 | 43 | ||
44 | # Create qemuboot.conf | 44 | # Create qemuboot.conf |
45 | ROOTFS_POSTPROCESS_COMMAND += "write_qemuboot_conf; " | 45 | addtask do_write_qemuboot_conf after do_rootfs before do_image |
46 | 46 | ||
47 | def qemuboot_vars(d): | 47 | def 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 | ||
54 | write_qemuboot_conf[vardeps] += "${@' '.join(qemuboot_vars(d))}" | 54 | do_write_qemuboot_conf[vardeps] += "${@' '.join(qemuboot_vars(d))}" |
55 | python write_qemuboot_conf() { | 55 | python 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)) |