Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is the first of the Windows implementation code that will be merged. This is only the driver code. Also note the updates to the appveyor configuration. It now builds, installs and queries the status of driver directly on the build machine. Then it builds an 'artifact' which is essentially the binaries packaged up.
- Loading branch information
Showing
47 changed files
with
13,041 additions
and
228 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
Binary file not shown.
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,43 @@ | ||
REM | ||
REM Copyright (c) 2016, The OpenThread Authors. | ||
REM All rights reserved. | ||
REM | ||
REM Redistribution and use in source and binary forms, with or without | ||
REM modification, are permitted provided that the following conditions are met: | ||
REM 1. Redistributions of source code must retain the above copyright | ||
REM notice, this list of conditions and the following disclaimer. | ||
REM 2. Redistributions in binary form must reproduce the above copyright | ||
REM notice, this list of conditions and the following disclaimer in the | ||
REM documentation and/or other materials provided with the distribution. | ||
REM 3. Neither the name of the copyright holder nor the | ||
REM names of its contributors may be used to endorse or promote products | ||
REM derived from this software without specific prior written permission. | ||
REM | ||
REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
REM AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
REM IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
REM ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
REM LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
REM CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
REM SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
REM INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
REM CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
REM ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
REM POSSIBILITY OF SUCH DAMAGE. | ||
REM | ||
|
||
IF NOT "%Platform%"=="x64" GOTO :EOF | ||
|
||
pushd %APPVEYOR_BUILD_FOLDER%\build\bin\%Platform2%\%Configuration%\sys | ||
|
||
REM Install the certifications to the cert stores | ||
certutil -addstore root otLwf.cer | ||
certutil -addstore TrustedPublisher otLwf.cer | ||
|
||
cd otLwf | ||
|
||
REM Install the NDSI LWF driver, otLwf.sys | ||
|
||
netcfg.exe -v -l otlwf.inf -c s -i otLwf | ||
|
||
popd |
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,55 @@ | ||
REM | ||
REM Copyright (c) 2016, The OpenThread Authors. | ||
REM All rights reserved. | ||
REM | ||
REM Redistribution and use in source and binary forms, with or without | ||
REM modification, are permitted provided that the following conditions are met: | ||
REM 1. Redistributions of source code must retain the above copyright | ||
REM notice, this list of conditions and the following disclaimer. | ||
REM 2. Redistributions in binary form must reproduce the above copyright | ||
REM notice, this list of conditions and the following disclaimer in the | ||
REM documentation and/or other materials provided with the distribution. | ||
REM 3. Neither the name of the copyright holder nor the | ||
REM names of its contributors may be used to endorse or promote products | ||
REM derived from this software without specific prior written permission. | ||
REM | ||
REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
REM AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
REM IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
REM ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
REM LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
REM CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
REM SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
REM INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
REM CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
REM ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
REM POSSIBILITY OF SUCH DAMAGE. | ||
REM | ||
|
||
pushd %APPVEYOR_BUILD_FOLDER% | ||
|
||
REM Make the release directory | ||
mkdir release | ||
mkdir release\symbols | ||
mkdir release\symbols\TraceFormat | ||
mkdir release\logs | ||
|
||
REM Copy the relavant binaries | ||
|
||
copy build\bin\%Platform2%\%Configuration%\sys\otlwf\* release | ||
copy build\bin\%Platform2%\%Configuration%\sys\otlwf.cer release | ||
copy build\bin\%Platform2%\%Configuration%\sys\otlwf.pdb release\symbols | ||
copy build\bin\%Platform2%\%Configuration%\dll\otApi.dll release | ||
copy build\bin\%Platform2%\%Configuration%\dll\otApi.pdb release\symbols | ||
copy build\bin\%Platform2%\%Configuration%\dll\otNodeApi.dll release | ||
copy build\bin\%Platform2%\%Configuration%\dll\otNodeApi.pdb release\symbols | ||
copy build\bin\%Platform2%\%Configuration%\exe\otCli.exe release | ||
copy build\bin\%Platform2%\%Configuration%\exe\otCli.pdb release\symbols | ||
copy build\bin\%Platform2%\%Configuration%\exe\otTestRunner.exe release | ||
copy build\bin\%Platform2%\%Configuration%\exe\otTestRunner.pdb release\symbols | ||
|
||
REM Generate the trace format files to decode the WPP logs | ||
|
||
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\x64\TracePdb.exe" -f release\symbols\*.pdb -p release\symbols\TraceFormat | ||
|
||
popd |
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,42 @@ | ||
REM | ||
REM Copyright (c) 2016, The OpenThread Authors. | ||
REM All rights reserved. | ||
REM | ||
REM Redistribution and use in source and binary forms, with or without | ||
REM modification, are permitted provided that the following conditions are met: | ||
REM 1. Redistributions of source code must retain the above copyright | ||
REM notice, this list of conditions and the following disclaimer. | ||
REM 2. Redistributions in binary form must reproduce the above copyright | ||
REM notice, this list of conditions and the following disclaimer in the | ||
REM documentation and/or other materials provided with the distribution. | ||
REM 3. Neither the name of the copyright holder nor the | ||
REM names of its contributors may be used to endorse or promote products | ||
REM derived from this software without specific prior written permission. | ||
REM | ||
REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
REM AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
REM IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
REM ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
REM LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
REM CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
REM SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
REM INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
REM CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
REM ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
REM POSSIBILITY OF SUCH DAMAGE. | ||
REM | ||
|
||
IF NOT "%Platform%"=="x64" GOTO :EOF | ||
|
||
pushd %APPVEYOR_BUILD_FOLDER%\release | ||
|
||
REM Query the driver state | ||
|
||
sc query otlwf | ||
|
||
REM Grab the logs | ||
|
||
logman stop Thread -ets | ||
copy %SystemRoot%\System32\LogFiles\WMI\Thread.* logs | ||
|
||
popd |
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
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
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
Oops, something went wrong.