Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Pre-populate Pico-specific submodules in TinyUSB
Browse files Browse the repository at this point in the history
  • Loading branch information
ndabas committed Feb 18, 2023
1 parent 68e3450 commit 67be7a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ $repositories | ForEach-Object {
}
}

# Clone additional Pico-specific submodules in TinyUSB
exec { git -C .\build\pico-sdk\lib\tinyusb submodule update --init --depth=1 hw\mcu\raspberry_pi }

$sdkVersion = (cmake -P .\packages\pico-setup-windows\pico-sdk-version.cmake -N | Select-String -Pattern 'PICO_SDK_VERSION_STRING=(.*)$').Matches.Groups[1].Value
if (-not ($sdkVersion -match $versionRegEx)) {
Write-Error 'Could not determine Pico SDK version.'
Expand Down

0 comments on commit 67be7a8

Please sign in to comment.