16 lines
715 B
PowerShell
16 lines
715 B
PowerShell
# Fetch the Bouffalo SDK and the T-Head RISC-V toolchain into third_party\.
|
|||
|
|
$ErrorActionPreference = 'Stop'
|
||
|
|
. (Join-Path $PSScriptRoot 'common.ps1')
|
||
|
|
|
||
|
|
$root = Get-ProjectRoot
|
||
|
|
$tp = Join-Path $root 'third_party'
|
||
|
|
New-Item -ItemType Directory -Force $tp | Out-Null
|
||
|
|
|
||
|
|
if (-not (Test-Path (Join-Path $tp 'bouffalo_sdk'))) {
|
||
|
|
git clone --depth 1 --branch v2.3.16 https://github.com/bouffalolab/bouffalo_sdk.git (Join-Path $tp 'bouffalo_sdk')
|
||
|
|
}
|
||
|
|
if (-not (Test-Path (Join-Path $tp 'toolchain_gcc_t-head_windows'))) {
|
||
|
|
git clone --depth 1 https://github.com/bouffalolab/toolchain_gcc_t-head_windows.git (Join-Path $tp 'toolchain_gcc_t-head_windows')
|
||
|
|
}
|
||
|
|
Write-Host 'SDK and toolchain are in place.' -ForegroundColor Green
|