mirror of
https://github.com/sds1979v/game-and-watch-backup-4-windows.git
synced 2025-12-18 07:16:00 +01:00
22 lines
673 B
PowerShell
22 lines
673 B
PowerShell
Clear-Host
|
|
Write-Host "Running sanity checks..."
|
|
|
|
Invoke-Expression 'openocd --version' *>&1 | Out-Null
|
|
if(-not $LASTEXITCODE -eq 0){
|
|
Write-Host "OpenOCD does not seem to be working. Please validate that you have it installed correctly!"
|
|
break
|
|
}
|
|
|
|
Invoke-Expression 'python -v' *>&1 | Out-Null
|
|
if(-not $LASTEXITCODE -eq 0){
|
|
Write-Host "Could not run python3. Please validate that you have it installed correctly!"
|
|
break
|
|
}
|
|
|
|
Invoke-Expression 'arm-none-eabi-objdump -v' *>&1 | Out-Null
|
|
if(-not $LASTEXITCODE -eq 0){
|
|
Write-Host "Could not find arm-none-eabi-objdump. Please validate that it's installed and in PATH."
|
|
break
|
|
}
|
|
|
|
Write-Host "Looks good!" |