summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-09-12 12:04:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-14 08:21:00 +0100
commit6670be71f75c3d7e11362d7c9076ca4de75b50f4 (patch)
tree485fcc33b9f2a7de82db59fd72485fa68ac1d316 /meta/lib
parentee7ccda0ec5d0be79bb65868c5827dea91710b2f (diff)
downloadpoky-6670be71f75c3d7e11362d7c9076ca4de75b50f4.tar.gz
bitbake.conf: include machine name in DEPLOY_DIR_IMAGE
This allows a clean seperation between image outputs from different machines, and makes it possible to have convenience symlinks to make the output ready to deploy. This did require some surgery in runqemu; if explicit paths to the image and kernel are not supplied then DEPLOY_DIR_IMAGE needs to be determined from bitbake or set in the environment. However the script does try to avoid requiring it unless it really is needed. Corresponding changes were made in the automated testing code as well. Based on an RFC patch by Koen Kooi <koen@dominion.thruhere.net> (From OE-Core rev: 7e90261aec61f79680b5eaeaf5b18c7b795412a4) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py8
1 files changed, 7 insertions, 1 deletions
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
17class QemuRunner: 17class 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: