]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/PostBuild.bat
Update for NetworkPkg.
[mirror_edk2.git] / DuetPkg / PostBuild.bat
index 97b3649a2283ad2bc5441da90b3452a3c844da6b..bdcafb864ffccf17c1005b53d1c754974a4457cd 100644 (file)
@@ -4,7 +4,7 @@
 @REM #  and platform building, so just use a bat file to do post build commands.\r
 @REM #  Originally, following post building command is for EfiLoader module.\r
 @REM #\r
-@REM #  Copyright (c) 2010, Intel Corporation, All rights reserved. <BR>\r
+@REM #  Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
 @REM #\r
 @REM #  This program and the accompanying materials\r
 @REM #  are licensed and made available under the terms and conditions of the BSD License\r
 @REM #\r
 @REM ##\r
 \r
-@set BUILD_DIR=%WORKSPACE%\Build\DuetPkg\DEBUG_MYTOOLS\r
 @set BASETOOLS_DIR=%WORKSPACE_TOOLS_PATH%\Bin\Win32\r
 @set BOOTSECTOR_BIN_DIR=%WORKSPACE%\DuetPkg\BootSector\bin\r
 @set PROCESSOR=""\r
+@call %WORKSPACE%\DuetPkg\GetVariables.bat\r
 \r
-@if "%1"=="" goto NoArch\r
-@if "%1"=="IA32" set PROCESSOR=IA32\r
-@if "%1"=="X64" set PROCESSOR=X64\r
+@if NOT "%1"=="" @set TARGET_ARCH=%1\r
+@if "%TARGET_ARCH%"=="IA32" set PROCESSOR=IA32\r
+@if "%TARGET_ARCH%"=="X64" set PROCESSOR=X64\r
 @if %PROCESSOR%=="" goto WrongArch\r
 \r
+@set BUILD_DIR=%WORKSPACE%\Build\DuetPkg%PROCESSOR%\%TARGET%_%TOOL_CHAIN_TAG%\r
+\r
+\r
 @echo Compressing DUETEFIMainFv.FV ...\r
 @%BASETOOLS_DIR%\LzmaCompress -e -o %BUILD_DIR%\FV\DUETEFIMAINFV.z %BUILD_DIR%\FV\DUETEFIMAINFV.Fv\r
 \r
 @goto end\r
 \r
 \r
-:NoArch\r
-@echo Error! Please specific the architecture.\r
-@goto Help\r
-\r
 :WrongArch\r
 @echo Error! Wrong architecture.\r
 @goto Help\r