summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-01 08:04:03 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-01 08:04:03 +0000
commitb0e441b554c716bfa684439f708d751843e7f585 (patch)
treedb0e03e58f4a563b5449d0296af92bccdb277c27
parentfe74f17339e9d91f4886cc2406f9ea0bc4d4388c (diff)
downloadedk2-platforms-b0e441b554c716bfa684439f708d751843e7f585.tar.xz
Update step for FAT32 usb.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7740 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--DuetPkg/CreateBootDisk.bat10
1 files changed, 7 insertions, 3 deletions
diff --git a/DuetPkg/CreateBootDisk.bat b/DuetPkg/CreateBootDisk.bat
index b1438bdbf1..3e5272030a 100644
--- a/DuetPkg/CreateBootDisk.bat
+++ b/DuetPkg/CreateBootDisk.bat
@@ -76,6 +76,7 @@ copy %WORKSPACE%\EdkShellBinPkg\bin\ia32\Shell.efi %EFI_BOOT_DISK%\efi\boot\boot
@goto end
:CreateUsb_FAT32
+@if "%4"=="step2" goto CreateUsb_FAT32_step2
@echo Format %EFI_BOOT_DISK% ...
@echo.> FormatCommandInput.txt
@format /FS:FAT32 /v:%DISK_LABEL% /q %EFI_BOOT_DISK% < FormatCommandInput.txt > NUL
@@ -86,13 +87,16 @@ copy %WORKSPACE%\EdkShellBinPkg\bin\ia32\Shell.efi %EFI_BOOT_DISK%\efi\boot\boot
@del UsbBs32.com
@%BASETOOLS_DIR%\Genbootsector.exe -o %EFI_BOOT_DISK% -i %BUILD_DIR%\IA32\DuetPkg\BootSector\BootSector\OUTPUT\Bs32.com
@%BASETOOLS_DIR%\Genbootsector.exe -m -o %EFI_BOOT_DISK% -i %BUILD_DIR%\IA32\DuetPkg\BootSector\BootSector\OUTPUT\Mbr.com
-@copy %BUILD_DIR%\FV\EfiLdr20 %EFI_BOOT_DISK%
-@mkdir %EFI_BOOT_DISK%\efi\boot
-@copy %WORKSPACE%\EdkShellBinPkg\bin\ia32\Shell.efi %EFI_BOOT_DISK%\efi\boot\bootia32.efi /y
@echo Done.
@echo PLEASE UNPLUG USB, THEN PLUG IT AGAIN!
@goto end
+:CreateUsb_FAT32_step2
+@copy %BUILD_DIR%\FV\EfiLdr20 %EFI_BOOT_DISK%
+@mkdir %EFI_BOOT_DISK%\efi\boot
+@copy %WORKSPACE%\EdkShellBinPkg\bin\ia32\Shell.efi %EFI_BOOT_DISK%\efi\boot\bootia32.efi /y
+@goto end
+
:CreateIde
@goto end