📄 deviceemulatorclone-preri.bat
字号:
@REM
@REM Copyright (c) Microsoft Corporation. All rights reserved.
@REM
@REM
@REM Use of this sample source code is subject to the terms of the Microsoft
@REM license agreement under which you licensed this sample source code. If
@REM you did not accept the terms of the license agreement, you are not
@REM authorized to use this sample source code. For the terms of the license,
@REM please see the license agreement between you and Microsoft or, if applicable,
@REM see the LICENSE.RTF on your install media or the root of your tools installation.
@REM THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
@REM
@echo off
echo ***
echo *** Selecting KITL transport to include in image (Ethernet or DMA)
echo ***
@REM
@REM This bit of pre-romimage processing is because we can't override
@REM modules in platform.bib, if they've already been included in common.bib
@REM (e.g. kitl.dll). In the future romimage.exe should support the following
@REM syntax for module overrides, similar to .reg overrides:
@REM
@REM -kitl.dll
@REM IF BSP_KITL_DMA
@REM kitl.dll $(_FLATRELEASEDIR)\kitldma.dll NK SHZ
@REM END; IF BSP_KITL_DMA
@REM
@REM IF BSP_KITL_ETHERNET
@REM kitl.dll $(_FLATRELEASEDIR)\kitlethernet.dll NK SHZ
@REM END; IF BSP_KITL_DMA
@REM
if "%BSP_KITL_DMA%"=="1" (
if "%BSP_KITL_ETHERNET%"=="1" (
echo ERROR: both BSP_KITL_DMA and BSP_KITL_ETHERNET are set; pick one
set ERRORLEVEL=-1
goto end
)
)
set _FRD=%_FLATRELEASEDIR%
if "%BSP_KITL_DMA%"=="1" (
echo BSP_KITL_DMA=1; copy kitldma.dll kitl.dll
if exist %_FRD%\kitldma.dll copy %_FRD%\kitldma.dll %_FRD%\kitl.dll
if exist %_FRD%\kitldma.rel copy %_FRD%\kitldma.rel %_FRD%\kitl.rel
if exist %_FRD%\kitldma.map copy %_FRD%\kitldma.map %_FRD%\kitl.map
if exist %_FRD%\kitldma.pdb copy %_FRD%\kitldma.pdb %_FRD%\kitl.pdb
)
if "%BSP_KITL_ETHERNET%"=="1" (
echo BSP_KITL_ETHERNET=1; copy kitlethernet.dll kitl.dll
if exist %_FRD%\kitlethernet.dll copy %_FRD%\kitlethernet.dll %_FRD%\kitl.dll
if exist %_FRD%\kitlethernet.rel copy %_FRD%\kitlethernet.rel %_FRD%\kitl.rel
if exist %_FRD%\kitlethernet.map copy %_FRD%\kitlethernet.map %_FRD%\kitl.map
if exist %_FRD%\kitlethernet.pdb copy %_FRD%\kitlethernet.pdb %_FRD%\kitl.pdb
)
:end
if "%MAKEIMG_NEXT_CMD%" NEQ "" exit %ERRORLEVEL%
exit /B %ERRORLEVEL%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -