forked from qt-creator/qt-creator
boot2qt: QDB devices support rsync and sftp
Users don't add QDB device themselves and therefore device test isn't run. This means neither rsync or sftp is available with GenericUpload deployment. Ideally, we should run the device test in the background but that would require larger code refactoring to support it. For now, set all QDB devices with support for both rsync and sftp. Host's support will still determine if either one can be used. Change-Id: I1f73508b9255e0984ca48c763dcaf49b931e0e21 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Ari Parkkila <ari.parkkila@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#include "../qdbutils.h"
|
#include "../qdbutils.h"
|
||||||
|
|
||||||
#include <projectexplorer/devicesupport/devicemanager.h>
|
#include <projectexplorer/devicesupport/devicemanager.h>
|
||||||
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
|
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
|
||||||
@@ -85,6 +86,8 @@ void DeviceDetector::handleDeviceEvent(QdbDeviceTracker::DeviceEventType eventTy
|
|||||||
device->settings()->displayName.setValue(name);
|
device->settings()->displayName.setValue(name);
|
||||||
device->setType(Qdb::Constants::QdbLinuxOsType);
|
device->setType(Qdb::Constants::QdbLinuxOsType);
|
||||||
device->setMachineType(IDevice::Hardware);
|
device->setMachineType(IDevice::Hardware);
|
||||||
|
device->setExtraData(ProjectExplorer::Constants::SUPPORTS_RSYNC, true);
|
||||||
|
device->setExtraData(ProjectExplorer::Constants::SUPPORTS_SFTP, true);
|
||||||
|
|
||||||
const QString ipAddress = info["ipAddress"];
|
const QString ipAddress = info["ipAddress"];
|
||||||
device->setupDefaultNetworkSettings(ipAddress);
|
device->setupDefaultNetworkSettings(ipAddress);
|
||||||
|
Reference in New Issue
Block a user