Add firmware update tools location for FreeBSD (#4688)
Add paths for avrdude and dfu-util programs under FreeBSD. SAM-BA does not exist yet in the FreeBSD port collection.
This commit is contained in:
committed by
Bertrand Songis
parent
1d21309935
commit
36a6ba24b8
@@ -125,6 +125,11 @@ void burnConfigDialog::getSettings()
|
|||||||
sambaLoc = "/usr/local/bin/sam-ba";
|
sambaLoc = "/usr/local/bin/sam-ba";
|
||||||
if ( dfuLoc.isEmpty())
|
if ( dfuLoc.isEmpty())
|
||||||
dfuLoc = QFileInfo(QApplication::applicationDirPath() + "/../Resources/dfu-util").absoluteFilePath();
|
dfuLoc = QFileInfo(QApplication::applicationDirPath() + "/../Resources/dfu-util").absoluteFilePath();
|
||||||
|
#elif defined __FreeBSD__
|
||||||
|
if (avrLoc.isEmpty())
|
||||||
|
avrLoc = "/usr/local/bin/avrdude";
|
||||||
|
if (dfuLoc.isEmpty())
|
||||||
|
dfuLoc = "/usr/local/bin/dfu-util";
|
||||||
#else
|
#else
|
||||||
if ( avrLoc.isEmpty())
|
if ( avrLoc.isEmpty())
|
||||||
avrLoc = "/usr/bin/avrdude";
|
avrLoc = "/usr/bin/avrdude";
|
||||||
|
|||||||
Reference in New Issue
Block a user