This repository has been archived by the owner on Apr 17, 2021. It is now read-only.
forked from ms-iot/rpi-iotcore
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07f37ce
commit 80b4b3a
Showing
4 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Clone Repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run Build Script | ||
run: | | ||
cmd.exe /c "$env:GITHUB_WORKSPACE\tools\build.cmd" | ||
Compress-Archive "$env:GITHUB_WORKSPACE\build\bcm2836\Output\*" -DestinationPath "$env:GITHUB_WORKSPACE\rpi-arm64-bsp.zip" | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
draft: true | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./rpi-arm64-bsp.zip | ||
asset_name: rpi-arm64-bsp.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Clone Repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run Build Script | ||
run: | | ||
cmd.exe /c "$env:GITHUB_WORKSPACE\tools\build.cmd" | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: output | ||
path: build/bcm2836/Output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@echo off | ||
setlocal enableDelayedExpansion | ||
pushd "%~dp0..\build\bcm2836" | ||
|
||
REM Find Visual Studio Installations | ||
for /f "tokens=*" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -latest -requires Microsoft.Component.MSBuild -find VC\Auxiliary\Build\vcvarsall.bat') do ( | ||
set vcvarsall="%%i" | ||
) | ||
call !vcvarsall! x86 | ||
|
||
REM Build drivers | ||
msbuild /p:Configuration=Release /p:Platform=ARM64 /m | ||
|
||
REM Copy to output directory | ||
rmdir Output /s /q 2>nul | ||
mkdir Output 2>nul | ||
pushd ARM64\Release | ||
for /f "tokens=*" %%i in ('dir /b *.dll *.sys *.inf *.pdb') do ( | ||
copy %%i ..\..\Output /y > nul | ||
) | ||
popd | ||
|
||
pushd Output | ||
|
||
REM Sign drivers | ||
inf2cat /os:10_VB_ARM64 /drv:. /uselocaltime | ||
signtool sign /fd SHA256 /f "%~dp0testcert.pfx" /p testcert123 /v *.dll *.sys *.cat *.dll | ||
|
||
REM Package | ||
for /f "delims=. tokens=1" %%i in ('dir /b *.inf') do ( | ||
mkdir %%i 2>nul | ||
move %%i.* %%i >nul | ||
) | ||
move vchiq_arm_kern.* vchiq >nul | ||
move vcos_win32_kern.* vchiq >nul | ||
|
||
REM Generate compatibility list | ||
for %%m in (RPi3 RPi4) do ( | ||
for /f "tokens=*" %%i in ('dir /b /a:d') do ( | ||
set supported=1 | ||
|
||
if /I [%%m] == [RPi3] ( | ||
if /I [%%i] == [vchiq] set supported=0 | ||
if /I [%%i] == [rpiuxflt] set supported=0 | ||
if /I [%%i] == [bcmgenet] set supported=0 | ||
) | ||
|
||
if /I [%%m] == [RPi4] ( | ||
if /I [%%i] == [vchiq] set supported=0 | ||
if /I [%%i] == [RpiLanPropertyChange] set supported=0 | ||
) | ||
|
||
if !supported! == 1 (echo %%i>> %%m.txt) | ||
) | ||
) | ||
|
||
popd | ||
popd | ||
|
Binary file not shown.