Make the firmware upgrade scripts working directory independent.
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ function getBlhostCmd(pid) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return `../../../lib/bootloader/bin/Tools/blhost/${blhostPath} --usb 0x1d50,${pid}`;
|
return `${__dirname}/../lib/bootloader/bin/Tools/blhost/${blhostPath} --usb 0x1d50,${pid}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function execRetry(command) {
|
function execRetry(command) {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ program
|
|||||||
.parse(process.argv)
|
.parse(process.argv)
|
||||||
|
|
||||||
const firmwareImage = program.args[0];
|
const firmwareImage = program.args[0];
|
||||||
const usbDir = '../../../lib/agent/packages/usb';
|
const usbDir = `${__dirname}/../lib/agent/packages/usb`;
|
||||||
const blhost = getBlhostCmd(0x6120);
|
const blhost = getBlhostCmd(0x6120);
|
||||||
|
|
||||||
checkFirmwareImage(firmwareImage, extension);
|
checkFirmwareImage(firmwareImage, extension);
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ program
|
|||||||
.parse(process.argv)
|
.parse(process.argv)
|
||||||
|
|
||||||
const firmwareImage = program.args[0];
|
const firmwareImage = program.args[0];
|
||||||
const usbDir = '../../../lib/agent/packages/usb';
|
const usbDir = `${__dirname}/../lib/agent/packages/usb`;
|
||||||
const blhostUsb = getBlhostCmd(0x6121);
|
const blhostUsb = getBlhostCmd(0x6121);
|
||||||
const blhostBuspal = blhostUsb + ' --buspal i2c,0x10,100k';
|
const blhostBuspal = `${blhostUsb} --buspal i2c,0x10,100k`;
|
||||||
|
|
||||||
checkFirmwareImage(firmwareImage, extension);
|
checkFirmwareImage(firmwareImage, extension);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user