diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/testimage.bbclass | 1 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 8 |
3 files changed, 9 insertions, 2 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 4eef0be1d6..c83906d0f8 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -122,6 +122,7 @@ def testimage_main(d): | |||
122 | 122 | ||
123 | qemu = QemuRunner(machine, rootfs) | 123 | qemu = QemuRunner(machine, rootfs) |
124 | qemu.tmpdir = d.getVar("TMPDIR", True) | 124 | qemu.tmpdir = d.getVar("TMPDIR", True) |
125 | qemu.deploy_dir_image = d.getVar("DEPLOY_DIR_IMAGE", True) | ||
125 | qemu.display = d.getVar("BB_ORIGENV", False).getVar("DISPLAY", True) | 126 | qemu.display = d.getVar("BB_ORIGENV", False).getVar("DISPLAY", True) |
126 | qemu.logfile = os.path.join(testdir, "qemu_boot_log.%s" % d.getVar('DATETIME', True)) | 127 | qemu.logfile = os.path.join(testdir, "qemu_boot_log.%s" % d.getVar('DATETIME', True)) |
127 | try: | 128 | try: |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 578c7d00eb..9eed72ad3f 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -379,7 +379,7 @@ DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar" | |||
379 | DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk" | 379 | DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk" |
380 | DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm" | 380 | DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm" |
381 | DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb" | 381 | DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb" |
382 | DEPLOY_DIR_IMAGE ?= "${DEPLOY_DIR}/images" | 382 | DEPLOY_DIR_IMAGE ?= "${DEPLOY_DIR}/images/${MACHINE}" |
383 | DEPLOY_DIR_TOOLS = "${DEPLOY_DIR}/tools" | 383 | DEPLOY_DIR_TOOLS = "${DEPLOY_DIR}/tools" |
384 | 384 | ||
385 | PKGDATA_DIR = "${TMPDIR}/pkgdata/${MULTIMACH_TARGET_SYS}" | 385 | PKGDATA_DIR = "${TMPDIR}/pkgdata/${MULTIMACH_TARGET_SYS}" |
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index b5c757a927..d362edeecb 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
@@ -16,7 +16,7 @@ import bb | |||
16 | 16 | ||
17 | class QemuRunner: | 17 | class QemuRunner: |
18 | 18 | ||
19 | def __init__(self, machine, rootfs, display = None, tmpdir = None, logfile = None, boottime = 400, runqemutime = 60): | 19 | def __init__(self, machine, rootfs, display = None, tmpdir = None, deploy_dir_image = None, logfile = None, boottime = 400, runqemutime = 60): |
20 | # Popen object | 20 | # Popen object |
21 | self.runqemu = None | 21 | self.runqemu = None |
22 | 22 | ||
@@ -28,6 +28,7 @@ class QemuRunner: | |||
28 | 28 | ||
29 | self.display = display | 29 | self.display = display |
30 | self.tmpdir = tmpdir | 30 | self.tmpdir = tmpdir |
31 | self.deploy_dir_image = deploy_dir_image | ||
31 | self.logfile = logfile | 32 | self.logfile = logfile |
32 | self.boottime = boottime | 33 | self.boottime = boottime |
33 | self.runqemutime = runqemutime | 34 | self.runqemutime = runqemutime |
@@ -71,6 +72,11 @@ class QemuRunner: | |||
71 | return False | 72 | return False |
72 | else: | 73 | else: |
73 | os.environ["OE_TMPDIR"] = self.tmpdir | 74 | os.environ["OE_TMPDIR"] = self.tmpdir |
75 | if not os.path.exists(self.deploy_dir_image): | ||
76 | bb.error("Invalid DEPLOY_DIR_IMAGE path %s" % self.deploy_dir_image) | ||
77 | return False | ||
78 | else: | ||
79 | os.environ["DEPLOY_DIR_IMAGE"] = self.deploy_dir_image | ||
74 | 80 | ||
75 | self.qemuparams = 'bootparams="console=tty1 console=ttyS0,115200n8" qemuparams="-serial tcp:127.0.0.1:%s"' % self.serverport | 81 | self.qemuparams = 'bootparams="console=tty1 console=ttyS0,115200n8" qemuparams="-serial tcp:127.0.0.1:%s"' % self.serverport |
76 | if qemuparams: | 82 | if qemuparams: |