| 1 |
@REM Copyright (c) Microsoft. All rights reserved. |
| 2 |
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
setlocal |
| 5 |
|
| 6 |
@REM Script arguments: |
| 7 |
|
| 8 |
@REM %1 File list for the project that is being built |
| 9 |
|
| 10 |
set project_path=..\.. |
| 11 |
set filelist=shared-util_filelist.txt |
| 12 |
|
| 13 |
if exist source rd /s /q source |
| 14 |
|
| 15 |
mkdir source |
| 16 |
|
| 17 |
echo Copying files ... |
| 18 |
|
| 19 |
for /f "tokens=*" %%i in (%filelist%) DO ( |
| 20 |
xcopy /y "%project_path%\%%i" "source" |
| 21 |
if !ERRORLEVEL! neq 0 goto :eof |
| 22 |
) |
| 23 |
echo . |
| 24 |
|
| 25 |
yotta target frdm-k64f-gcc |
| 26 |
if !ERRORLEVEL! neq 0 goto :eof |
| 27 |
|
| 28 |
yotta build |
| 29 |
if !ERRORLEVEL! neq 0 goto :eof |