Put the FD creation operation in run.cmd temporary.
[mirror_edk2.git] / EdkNt32Pkg / run.cmd
1 @REM
2 @REM Copyright (c) 2006, Intel Corporation
3 @REM All rights reserved. This program and the accompanying materials
4 @REM are licensed and made available under the terms and conditions of the BSD License
5 @REM which accompanies this distribution. The full text of the license may be found at
6 @REM http://opensource.org/licenses/bsd-license.php
7 @REM
8 @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
10 @REM
11
12 @echo off
13
14 :check_fd
15 if exist %WORKSPACE%\EdkNt32Pkg\build\Debug\Fv\Fv_Recovery.fd goto start_secmain
16
17 :create_fd
18 if not exist Build\Debug\Fv mkdir Build\Debug\Fv
19 copy Build\Debug\Msft\Fv\FV_RECOVERY.fv /B + Build\Debug\Msft\Fv\NV_STORAGE.fv /B Build\Debug\Fv\Fv_Recovery.fd /B
20
21 :start_secmain
22 pushd .
23 cd Build\DEBUG\MSFT\IA32
24 SecMain.exe
25 popd
26 @echo on
27