diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-11-22 02:13:00 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-19 22:45:41 +0000 |
commit | 0704f15d1ad7483f80ffa18fa32b6115923641cf (patch) | |
tree | a3a25a0b4d5f2d790f3dc97bc22924711ab2e2c6 /meta/classes/qemuboot.bbclass | |
parent | a7cb408dd784178197687a2129e936620bf6a0d3 (diff) | |
download | openembedded-core-0704f15d1ad7483f80ffa18fa32b6115923641cf.tar.gz openembedded-core-0704f15d1ad7483f80ffa18fa32b6115923641cf.tar.bz2 openembedded-core-0704f15d1ad7483f80ffa18fa32b6115923641cf.zip |
qemuboot.bbclass: use IMGDEPLOYDIR
So that "bitbake <image> -ccleansstate" can remove qemuboot.conf
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/qemuboot.bbclass')
-rw-r--r-- | meta/classes/qemuboot.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass index 28e8a737f8..a181fa2213 100644 --- a/meta/classes/qemuboot.bbclass +++ b/meta/classes/qemuboot.bbclass @@ -43,6 +43,7 @@ QB_OPT_APPEND ?= "-show-cursor" # Create qemuboot.conf addtask do_write_qemuboot_conf after do_rootfs before do_image +IMGDEPLOYDIR ?= "${WORKDIR}/deploy-${PN}-image-complete" def qemuboot_vars(d): build_vars = ['MACHINE', 'TUNE_ARCH', 'DEPLOY_DIR_IMAGE', @@ -55,8 +56,8 @@ do_write_qemuboot_conf[vardeps] += "${@' '.join(qemuboot_vars(d))}" python do_write_qemuboot_conf() { import configparser - qemuboot = "%s/%s.qemuboot.conf" % (d.getVar('DEPLOY_DIR_IMAGE'), d.getVar('IMAGE_NAME')) - qemuboot_link = "%s/%s.qemuboot.conf" % (d.getVar('DEPLOY_DIR_IMAGE'), d.getVar('IMAGE_LINK_NAME')) + qemuboot = "%s/%s.qemuboot.conf" % (d.getVar('IMGDEPLOYDIR'), d.getVar('IMAGE_NAME')) + qemuboot_link = "%s/%s.qemuboot.conf" % (d.getVar('IMGDEPLOYDIR'), d.getVar('IMAGE_LINK_NAME')) cf = configparser.ConfigParser() cf.add_section('config_bsp') for k in qemuboot_vars(d): |