Maemo: Start up Qemu if required.

We still fail in that case, because the connection can't succeed
due to Qemu's long start-up time.

Task-number: QTCREATORBUG-3607
This commit is contained in:
Christian Kandeler
2011-02-08 11:55:28 +01:00
parent 1c1ebe40a0
commit a57da84be8
5 changed files with 36 additions and 5 deletions

View File

@@ -38,6 +38,7 @@
#include "maemoglobal.h"
#include "maemopackagecreationstep.h"
#include "maemopertargetdeviceconfigurationlistmodel.h"
#include "maemoqemumanager.h"
#include "maemoremotemounter.h"
#include "maemorunconfiguration.h"
#include "maemotoolchain.h"
@@ -354,6 +355,18 @@ void MaemoDeployStep::start()
}
if (m_needsInstall || !m_filesToCopy.isEmpty()) {
if (m_cachedDeviceConfig->type() == MaemoDeviceConfig::Simulator
&& !MaemoQemuManager::instance().qemuIsRunning()) {
MaemoQemuManager::instance().startRuntime();
raiseError(tr("Deployment failed: Qemu was not running. "
"It has now been started up for you, but it will take "
"a bit of time until it is ready."));
m_needsInstall = false;
m_filesToCopy.clear();
emit done();
return;
}
if (m_deployToSysroot)
installToSysroot();
else