forked from qt-creator/qt-creator
McuSupport: Remove flashing of bootloader for STM
An earlier version of Qt for MCUs had run CMake targets like flash_<application>_and_bootloader. At some point they were removed. Now, Qt Creator will not use that CMake target, as-well. Change-Id: Ie122acd042f816fafd27779d164e87ec00c509a5 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -54,10 +54,7 @@ static QStringList flashAndRunArgs(const Target *target)
|
|||||||
const QString projectName = target->project()->displayName();
|
const QString projectName = target->project()->displayName();
|
||||||
|
|
||||||
// TODO: Hack! Implement flash target name handling, properly
|
// TODO: Hack! Implement flash target name handling, properly
|
||||||
const QString targetName =
|
const QString targetName = "flash_" + projectName;
|
||||||
target->kit()->value(Constants::KIT_MCUTARGET_VENDOR_KEY).toString() == "NXP"
|
|
||||||
? QString("flash_%1").arg(projectName)
|
|
||||||
: QString("flash_%1_and_bootloader").arg(projectName);
|
|
||||||
|
|
||||||
return {"--build", ".", "--target", targetName};
|
return {"--build", ".", "--target", targetName};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user