Put the FD creation operation in run.cmd temporary.
[mirror_edk2.git] / EdkNt32Pkg / run.cmd
index 167cfc9685831a66159556b2cd962baefec9f587..36bb4c5732af43ede9a4da302f9d0c71853a23d7 100644 (file)
 @REM\r
 \r
 @echo off\r
+\r
+:check_fd\r
+if exist %WORKSPACE%\EdkNt32Pkg\build\Debug\Fv\Fv_Recovery.fd goto start_secmain\r
+\r
+:create_fd\r
+if not exist Build\Debug\Fv mkdir Build\Debug\Fv\r
+copy Build\Debug\Msft\Fv\FV_RECOVERY.fv /B + Build\Debug\Msft\Fv\NV_STORAGE.fv /B Build\Debug\Fv\Fv_Recovery.fd /B\r
+\r
+:start_secmain\r
 pushd .\r
-cd Build\DEBUG\IA32\r
+cd Build\DEBUG\MSFT\IA32\r
 SecMain.exe\r
 popd\r
 @echo on\r