From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AFAB981E9E for ; Fri, 11 Nov 2016 00:32:14 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP; 11 Nov 2016 00:32:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,620,1473145200"; d="scan'208";a="190253319" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 11 Nov 2016 00:32:16 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 11 Nov 2016 00:32:15 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.142]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.138]) with mapi id 14.03.0248.002; Fri, 11 Nov 2016 16:32:13 +0800 From: "Ni, Ruiyu" To: "Wu, Hao A" , "edk2-devel@lists.01.org" Thread-Topic: [PATCH 2/3] DuetPkg: Use 'echo off' in BATCH script files Thread-Index: AQHSO/Vp632djEbSCUuFBW192PHWVqDTdAZg Date: Fri, 11 Nov 2016 08:32:12 +0000 Deferred-Delivery: Fri, 11 Nov 2016 08:32:00 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D58E73BAE@SHSMSX104.ccr.corp.intel.com> References: <1478852805-11900-1-git-send-email-hao.a.wu@intel.com> <1478852805-11900-3-git-send-email-hao.a.wu@intel.com> In-Reply-To: <1478852805-11900-3-git-send-email-hao.a.wu@intel.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZWYwYzI5NjktYjYxNS00ZWY1LTkxMTgtOTEwNTNlYjc5MDg5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX1BVQkxJQyJ9XX1dfSwiU3ViamVjdExhYmVscyI6W10sIlRNQ1ZlcnNpb24iOiIxNS45LjYuNiIsIlRydXN0ZWRMYWJlbEhhc2giOiJYeDhVOER4dDdQVFFPMDhTNVFEUlZhS2hFSDlFWUx4NGM1MVhFT0ZVaVpzPSJ9 x-ctpclassification: CTP_PUBLIC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 2/3] DuetPkg: Use 'echo off' in BATCH script files X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2016 08:32:14 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ruiyu Ni Regards, Ray >-----Original Message----- >From: Wu, Hao A >Sent: Friday, November 11, 2016 4:27 PM >To: edk2-devel@lists.01.org >Cc: Wu, Hao A ; Ni, Ruiyu >Subject: [PATCH 2/3] DuetPkg: Use 'echo off' in BATCH script files > >Instead of putting a '@' at the beginning of every command in BATCH script >files, use 'echo off' at the beginning of each file. > >Cc: Ruiyu Ni >Contributed-under: TianoCore Contribution Agreement 1.0 >Signed-off-by: Hao Wu >--- > DuetPkg/CreateBootDisk.bat | 197 +++++++++++++++++++++++-----------------= ----- > DuetPkg/GetVariables.bat | 23 +++--- > DuetPkg/PostBuild.bat | 69 ++++++++-------- > 3 files changed, 146 insertions(+), 143 deletions(-) > >diff --git a/DuetPkg/CreateBootDisk.bat b/DuetPkg/CreateBootDisk.bat >index 214b5b6..7265837 100644 >--- a/DuetPkg/CreateBootDisk.bat >+++ b/DuetPkg/CreateBootDisk.bat >@@ -1,3 +1,4 @@ >+@echo off > @REM ## @file > @REM # > @REM # Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved= .
>@@ -14,133 +15,133 @@ > > @REM Set up environment at first. > >-@set BASETOOLS_DIR=3D%WORKSPACE_TOOLS_PATH%\Bin\Win32 >-@set BOOTSECTOR_BIN_DIR=3D%WORKSPACE%\DuetPkg\BootSector\bin >-@set DISK_LABEL=3DDUET >-@set PROCESSOR=3D"" >-@set STEP=3D1 >-@call %WORKSPACE%\DuetPkg\GetVariables.bat >- >-@echo on >- >-@if "%1"=3D=3D"" goto Help >-@if "%2"=3D=3D"" goto Help >-@if "%3"=3D=3D"" goto Help >-@if "%4"=3D=3D"" goto Set_BootDisk >-@if "%4"=3D=3D"step2" (@set STEP=3D2) else @set TARGET_ARCH=3D%4 >-@if "%5"=3D=3D"step2" @set STEP=3D2 >+set BASETOOLS_DIR=3D%WORKSPACE_TOOLS_PATH%\Bin\Win32 >+set BOOTSECTOR_BIN_DIR=3D%WORKSPACE%\DuetPkg\BootSector\bin >+set DISK_LABEL=3DDUET >+set PROCESSOR=3D"" >+set STEP=3D1 >+call %WORKSPACE%\DuetPkg\GetVariables.bat >+ >+echo on >+ >+if "%1"=3D=3D"" goto Help >+if "%2"=3D=3D"" goto Help >+if "%3"=3D=3D"" goto Help >+if "%4"=3D=3D"" goto Set_BootDisk >+if "%4"=3D=3D"step2" (@set STEP=3D2) else @set TARGET_ARCH=3D%4 >+if "%5"=3D=3D"step2" @set STEP=3D2 > :Set_BootDisk >-@set EFI_BOOT_DISK=3D%2 >-@if "%TARGET_ARCH%"=3D=3D"IA32" set PROCESSOR=3DIA32 >-@if "%TARGET_ARCH%"=3D=3D"X64" set PROCESSOR=3DX64 >-@if %PROCESSOR%=3D=3D"" goto WrongArch >-@set BUILD_DIR=3D%WORKSPACE%\Build\DuetPkg%PROCESSOR%\%TARGET%_%TOOL_CHAI= N_TAG% >+set EFI_BOOT_DISK=3D%2 >+if "%TARGET_ARCH%"=3D=3D"IA32" set PROCESSOR=3DIA32 >+if "%TARGET_ARCH%"=3D=3D"X64" set PROCESSOR=3DX64 >+if %PROCESSOR%=3D=3D"" goto WrongArch >+set BUILD_DIR=3D%WORKSPACE%\Build\DuetPkg%PROCESSOR%\%TARGET%_%TOOL_CHAIN= _TAG% > >-@if "%1"=3D=3D"floppy" goto CreateFloppy >-@if "%1"=3D=3D"file" goto CreateFile >-@if "%1"=3D=3D"usb" goto CreateUsb >-@if "%1"=3D=3D"ide" goto CreateIde >+if "%1"=3D=3D"floppy" goto CreateFloppy >+if "%1"=3D=3D"file" goto CreateFile >+if "%1"=3D=3D"usb" goto CreateUsb >+if "%1"=3D=3D"ide" goto CreateIde > > goto Help > > :CreateFloppy >-@if NOT "%3"=3D=3D"FAT12" goto WrongFATType >-@echo Start to create floppy boot disk ... >-@echo Format %EFI_BOOT_DISK% ... >-@echo.> FormatCommandInput.txt >-@echo.n>> FormatCommandInput.txt >-@format /v:%DISK_LABEL% /q %EFI_BOOT_DISK% < FormatCommandInput.txt > NUL >-@del FormatCommandInput.txt >-@echo Create boot sector ... >-@%BASETOOLS_DIR%\Genbootsector.exe -i %EFI_BOOT_DISK% -o FDBs.com >-@copy %BOOTSECTOR_BIN_DIR%\Bootsect.com FDBs-1.com >-@%BASETOOLS_DIR%\Bootsectimage.exe -g FDBs.com FDBs-1.com -f >+if NOT "%3"=3D=3D"FAT12" goto WrongFATType >+echo Start to create floppy boot disk ... >+echo Format %EFI_BOOT_DISK% ... >+echo.> FormatCommandInput.txt >+echo.n>> FormatCommandInput.txt >+format /v:%DISK_LABEL% /q %EFI_BOOT_DISK% < FormatCommandInput.txt > NUL >+del FormatCommandInput.txt >+echo Create boot sector ... >+%BASETOOLS_DIR%\Genbootsector.exe -i %EFI_BOOT_DISK% -o FDBs.com >+copy %BOOTSECTOR_BIN_DIR%\Bootsect.com FDBs-1.com >+%BASETOOLS_DIR%\Bootsectimage.exe -g FDBs.com FDBs-1.com -f > @REM @del FDBS.com >-@%BASETOOLS_DIR%\Genbootsector.exe -o %EFI_BOOT_DISK% -i FDBs-1.com >-@del FDBs-1.com >-@echo Done. >-@copy %BUILD_DIR%\FV\EfiLdr %EFI_BOOT_DISK% >-@goto CreateBootFile >+%BASETOOLS_DIR%\Genbootsector.exe -o %EFI_BOOT_DISK% -i FDBs-1.com >+del FDBs-1.com >+echo Done. >+copy %BUILD_DIR%\FV\EfiLdr %EFI_BOOT_DISK% >+goto CreateBootFile > > :CreateFile >-@if NOT "%3"=3D=3D"FAT12" goto WrongFATType >-@echo Start to create file boot disk ... >-@echo Create boot sector ... >+if NOT "%3"=3D=3D"FAT12" goto WrongFATType >+echo Start to create file boot disk ... >+echo Create boot sector ... > %BASETOOLS_DIR%\Genbootsector.exe -i %EFI_BOOT_DISK% -o FDBs.com >-@copy %BOOTSECTOR_BIN_DIR%\Bootsect.com FDBs-1.com >-@%BASETOOLS_DIR%\Bootsectimage.exe -g FDBs.com FDBs-1.com -f >-@REM @del FDBS.com >-@%BASETOOLS_DIR%\Genbootsector.exe -o %EFI_BOOT_DISK% -i FDBs-1.com >-@del FDBs-1.com >-@echo Done. >-@goto end >+copy %BOOTSECTOR_BIN_DIR%\Bootsect.com FDBs-1.com >+%BASETOOLS_DIR%\Bootsectimage.exe -g FDBs.com FDBs-1.com -f >+REM @del FDBS.com >+%BASETOOLS_DIR%\Genbootsector.exe -o %EFI_BOOT_DISK% -i FDBs-1.com >+del FDBs-1.com >+echo Done. >+goto end > > :CreateUsb >-@echo Start to create usb boot disk ... >-@if "%3"=3D=3D"FAT16" goto CreateUsb_FAT16 >-@if "%3"=3D=3D"FAT32" goto CreateUsb_FAT32 >-@if "%3"=3D=3D"FAT12" goto WrongFATType >+echo Start to create usb boot disk ... >+if "%3"=3D=3D"FAT16" goto CreateUsb_FAT16 >+if "%3"=3D=3D"FAT32" goto CreateUsb_FAT32 >+if "%3"=3D=3D"FAT12" goto WrongFATType > > :CreateUsb_FAT16 >-@if "%STEP%"=3D=3D"2" goto CreateUsb_FAT16_step2 >-@echo Format %EFI_BOOT_DISK% ... >-@echo.> FormatCommandInput.txt >-@format /FS:FAT /v:%DISK_LABEL% /q %EFI_BOOT_DISK% < FormatCommandInput.t= xt > NUL >-@del FormatCommandInput.txt >-@echo Create boot sector ... >-@%BASETOOLS_DIR%\Genbootsector.exe -i %EFI_BOOT_DISK% -o UsbBs16.com >-@copy %BOOTSECTOR_BIN_DIR%\Bs16.com Bs16-1.com >-@%BASETOOLS_DIR%\Bootsectimage.exe -g UsbBs16.com Bs16-1.com -f >-@%BASETOOLS_DIR%\Genbootsector.exe -o %EFI_BOOT_DISK% -i Bs16-1.com >-@del Bs16-1.com >-@%BASETOOLS_DIR%\Genbootsector.exe -m -o %EFI_BOOT_DISK% -i %BOOTSECTOR_B= IN_DIR%\Mbr.com >-@echo Done. >-@echo PLEASE UNPLUG USB, THEN PLUG IT AGAIN! >-@goto end >+if "%STEP%"=3D=3D"2" goto CreateUsb_FAT16_step2 >+echo Format %EFI_BOOT_DISK% ... >+echo.> FormatCommandInput.txt >+format /FS:FAT /v:%DISK_LABEL% /q %EFI_BOOT_DISK% < FormatCommandInput.tx= t > NUL >+del FormatCommandInput.txt >+echo Create boot sector ... >+%BASETOOLS_DIR%\Genbootsector.exe -i %EFI_BOOT_DISK% -o UsbBs16.com >+copy %BOOTSECTOR_BIN_DIR%\Bs16.com Bs16-1.com >+%BASETOOLS_DIR%\Bootsectimage.exe -g UsbBs16.com Bs16-1.com -f >+%BASETOOLS_DIR%\Genbootsector.exe -o %EFI_BOOT_DISK% -i Bs16-1.com >+del Bs16-1.com >+%BASETOOLS_DIR%\Genbootsector.exe -m -o %EFI_BOOT_DISK% -i %BOOTSECTOR_BI= N_DIR%\Mbr.com >+echo Done. >+echo PLEASE UNPLUG USB, THEN PLUG IT AGAIN! >+goto end > > :CreateUsb_FAT16_step2 >-@copy %BUILD_DIR%\FV\EfiLdr16 %EFI_BOOT_DISK% >-@goto CreateBootFile >+copy %BUILD_DIR%\FV\EfiLdr16 %EFI_BOOT_DISK% >+goto CreateBootFile > > :CreateUsb_FAT32 >-@if "%STEP%"=3D=3D"2" 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 >-@del FormatCommandInput.txt >-@echo Create boot sector ... >-@%BASETOOLS_DIR%\Genbootsector.exe -i %EFI_BOOT_DISK% -o UsbBs32.com >-@copy %BOOTSECTOR_BIN_DIR%\Bs32.com Bs32-1.com >-@%BASETOOLS_DIR%\Bootsectimage.exe -g UsbBs32.com Bs32-1.com -f >-@del UsbBs32.com >-@%BASETOOLS_DIR%\Genbootsector.exe -o %EFI_BOOT_DISK% -i Bs32-1.com >-@del Bs32-1.com >-@%BASETOOLS_DIR%\Genbootsector.exe -m -o %EFI_BOOT_DISK% -i %BOOTSECTOR_B= IN_DIR%\Mbr.com >-@echo Done. >-@echo PLEASE UNPLUG USB, THEN PLUG IT AGAIN! >-@goto end >+if "%STEP%"=3D=3D"2" 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 >+del FormatCommandInput.txt >+echo Create boot sector ... >+%BASETOOLS_DIR%\Genbootsector.exe -i %EFI_BOOT_DISK% -o UsbBs32.com >+copy %BOOTSECTOR_BIN_DIR%\Bs32.com Bs32-1.com >+%BASETOOLS_DIR%\Bootsectimage.exe -g UsbBs32.com Bs32-1.com -f >+del UsbBs32.com >+%BASETOOLS_DIR%\Genbootsector.exe -o %EFI_BOOT_DISK% -i Bs32-1.com >+del Bs32-1.com >+%BASETOOLS_DIR%\Genbootsector.exe -m -o %EFI_BOOT_DISK% -i %BOOTSECTOR_BI= N_DIR%\Mbr.com >+echo Done. >+echo PLEASE UNPLUG USB, THEN PLUG IT AGAIN! >+goto end > > :CreateUsb_FAT32_step2 >-@copy %BUILD_DIR%\FV\EfiLdr20 %EFI_BOOT_DISK% >-@goto CreateBootFile >+copy %BUILD_DIR%\FV\EfiLdr20 %EFI_BOOT_DISK% >+goto CreateBootFile > > :CreateIde >-@goto end >+goto end > > :CreateBootFile >-@mkdir %EFI_BOOT_DISK%\efi\boot >+mkdir %EFI_BOOT_DISK%\efi\boot > copy %WORKSPACE%\ShellBinPkg\UefiShell\%PROCESSOR%\Shell.efi %EFI_BOOT_DI= SK%\efi\boot\boot%PROCESSOR%.efi >/y >-@goto end >+goto end > > :WrongFATType >-@echo Wrong FAT type %3 for %1 >-@goto end >+echo Wrong FAT type %3 for %1 >+goto end > > :WrongArch >-@echo Error! Wrong architecture. >-@goto Help >+echo Error! Wrong architecture. >+goto Help > > :Help >-@echo "Usage: CreateBootDisk [usb|floppy|ide] DiskNumber [FAT12|FAT16|FAT= 32] [IA32|X64]" >+echo "Usage: CreateBootDisk [usb|floppy|ide] DiskNumber [FAT12|FAT16|FAT3= 2] [IA32|X64]" > :end >-@echo on >+echo on >diff --git a/DuetPkg/GetVariables.bat b/DuetPkg/GetVariables.bat >index c781228..c81d3d1 100644 >--- a/DuetPkg/GetVariables.bat >+++ b/DuetPkg/GetVariables.bat >@@ -1,3 +1,4 @@ >+@echo off > @REM ## @file > @REM # > @REM # Copyright (c) 2011, Intel Corporation. All rights reserved.
>@@ -19,20 +20,20 @@ > @REM the original equal sign for our first assignation. Then we trim any = left whitespaces. > @REM NB: default token delimiters for "for /f" are tab and space. > >-@set CONFIG_FILE=3D%WORKSPACE%\Conf\target.txt >+set CONFIG_FILE=3D%WORKSPACE%\Conf\target.txt > >-@for /f "tokens=3D1*" %%i in ('type %CONFIG_FILE% ^| find "TOOL_CHAIN_TAG= " ^| find /V "#"') do @set >TOOL_CHAIN_TAG%%j >-@for /f "tokens=3D*" %%i in ("%TOOL_CHAIN_TAG%") do @set TOOL_CHAIN_TAG= =3D%%i >+for /f "tokens=3D1*" %%i in ('type %CONFIG_FILE% ^| find "TOOL_CHAIN_TAG"= ^| find /V "#"') do @set >TOOL_CHAIN_TAG%%j >+for /f "tokens=3D*" %%i in ("%TOOL_CHAIN_TAG%") do @set TOOL_CHAIN_TAG=3D= %%i > >-@for /f "tokens=3D1*" %%i in ('type %CONFIG_FILE% ^| find "TARGET" ^| fin= d /V "#" ^| find /V "TARGET_ARCH"') do @set >TARGET%%j >-@for /f "tokens=3D*" %%i in ("%TARGET%") do @set TARGET=3D%%i >+for /f "tokens=3D1*" %%i in ('type %CONFIG_FILE% ^| find "TARGET" ^| find= /V "#" ^| find /V "TARGET_ARCH"') do @set >TARGET%%j >+for /f "tokens=3D*" %%i in ("%TARGET%") do @set TARGET=3D%%i > >-@for /f "tokens=3D1*" %%i in ('type %CONFIG_FILE% ^| find "TARGET_ARCH" ^= |find /V "#"') do @set TARGET_ARCH%%j >-@for /f "tokens=3D*" %%i in ("%TARGET_ARCH%") do @set TARGET_ARCH=3D%%i >+for /f "tokens=3D1*" %%i in ('type %CONFIG_FILE% ^| find "TARGET_ARCH" ^|= find /V "#"') do @set TARGET_ARCH%%j >+for /f "tokens=3D*" %%i in ("%TARGET_ARCH%") do @set TARGET_ARCH=3D%%i > > >-@REM Set defaults if above variables are undefined in target.txt >+REM Set defaults if above variables are undefined in target.txt > >-@if "%TOOL_CHAIN_TAG%%"=3D=3D"" @set TOOL_CHAIN_TAG=3DMYTOOLS >-@if "%TARGET%"=3D=3D"" @set TARGET=3DDEBUG >-@if "%TARGET_ARCH%"=3D=3D"" @set TARGET_ARCH=3DIA32 >+if "%TOOL_CHAIN_TAG%%"=3D=3D"" @set TOOL_CHAIN_TAG=3DMYTOOLS >+if "%TARGET%"=3D=3D"" @set TARGET=3DDEBUG >+if "%TARGET_ARCH%"=3D=3D"" @set TARGET_ARCH=3DIA32 >diff --git a/DuetPkg/PostBuild.bat b/DuetPkg/PostBuild.bat >index df34fa7..28cab6b 100644 >--- a/DuetPkg/PostBuild.bat >+++ b/DuetPkg/PostBuild.bat >@@ -1,3 +1,4 @@ >+@echo off > @REM ## @file > @REM # > @REM # Currently, Build system does not provide post build mechanism for= module >@@ -16,54 +17,54 @@ > @REM # > @REM ## > >-@set BASETOOLS_DIR=3D%WORKSPACE_TOOLS_PATH%\Bin\Win32 >-@set BOOTSECTOR_BIN_DIR=3D%WORKSPACE%\DuetPkg\BootSector\bin >-@set PROCESSOR=3D"" >-@call %WORKSPACE%\DuetPkg\GetVariables.bat >+set BASETOOLS_DIR=3D%WORKSPACE_TOOLS_PATH%\Bin\Win32 >+set BOOTSECTOR_BIN_DIR=3D%WORKSPACE%\DuetPkg\BootSector\bin >+set PROCESSOR=3D"" >+call %WORKSPACE%\DuetPkg\GetVariables.bat > >-@if NOT "%1"=3D=3D"" @set TARGET_ARCH=3D%1 >-@if "%TARGET_ARCH%"=3D=3D"IA32" set PROCESSOR=3DIA32 >-@if "%TARGET_ARCH%"=3D=3D"X64" set PROCESSOR=3DX64 >-@if %PROCESSOR%=3D=3D"" goto WrongArch >+if NOT "%1"=3D=3D"" @set TARGET_ARCH=3D%1 >+if "%TARGET_ARCH%"=3D=3D"IA32" set PROCESSOR=3DIA32 >+if "%TARGET_ARCH%"=3D=3D"X64" set PROCESSOR=3DX64 >+if %PROCESSOR%=3D=3D"" goto WrongArch > >-@set BUILD_DIR=3D%WORKSPACE%\Build\DuetPkg%PROCESSOR%\%TARGET%_%TOOL_CHAI= N_TAG% >+set BUILD_DIR=3D%WORKSPACE%\Build\DuetPkg%PROCESSOR%\%TARGET%_%TOOL_CHAIN= _TAG% > > >-@echo Compressing DUETEFIMainFv.FV ... >-@%BASETOOLS_DIR%\LzmaCompress -e -o %BUILD_DIR%\FV\DUETEFIMAINFV.z %BUILD= _DIR%\FV\DUETEFIMAINFV.Fv >+echo Compressing DUETEFIMainFv.FV ... >+%BASETOOLS_DIR%\LzmaCompress -e -o %BUILD_DIR%\FV\DUETEFIMAINFV.z %BUILD_= DIR%\FV\DUETEFIMAINFV.Fv > >-@echo Compressing DxeMain.efi ... >-@%BASETOOLS_DIR%\LzmaCompress -e -o %BUILD_DIR%\FV\DxeMain.z %BUILD_DIR%\= %PROCESSOR%\DxeCore.efi >+echo Compressing DxeMain.efi ... >+%BASETOOLS_DIR%\LzmaCompress -e -o %BUILD_DIR%\FV\DxeMain.z %BUILD_DIR%\%= PROCESSOR%\DxeCore.efi > >-@echo Compressing DxeIpl.efi ... >-@%BASETOOLS_DIR%\LzmaCompress -e -o %BUILD_DIR%\FV\DxeIpl.z %BUILD_DIR%\%= PROCESSOR%\DxeIpl.efi >+echo Compressing DxeIpl.efi ... >+%BASETOOLS_DIR%\LzmaCompress -e -o %BUILD_DIR%\FV\DxeIpl.z %BUILD_DIR%\%P= ROCESSOR%\DxeIpl.efi > >-@echo Generate Loader Image ... >-@if "%PROCESSOR%"=3D=3D"IA32" goto GENERATE_IMAGE_IA32 >-@if "%PROCESSOR%"=3D=3D"X64" goto GENERATE_IMAGE_X64 >+echo Generate Loader Image ... >+if "%PROCESSOR%"=3D=3D"IA32" goto GENERATE_IMAGE_IA32 >+if "%PROCESSOR%"=3D=3D"X64" goto GENERATE_IMAGE_X64 > > :GENERATE_IMAGE_IA32 >-@%BASETOOLS_DIR%\EfiLdrImage.exe >-o %BUILD_DIR%\FV\Efildr32 %BUILD_DIR%\%PROCESSOR%\EfiLoader.efi %BUILD_DI= R%\FV\DxeIpl.z %BUILD_DIR%\FV\Dx >eMain.z %BUILD_DIR%\FV\DUETEFIMAINFV.z >-@copy >/b %BOOTSECTOR_BIN_DIR%\Start.com+%BOOTSECTOR_BIN_DIR%\Efi32.com2+%BUILD_D= IR%\FV\Efildr32 %BUILD_DIR% >\FV\Efildr >-@copy >/b %BOOTSECTOR_BIN_DIR%\Start16.com+%BOOTSECTOR_BIN_DIR%\Efi32.com2+%BUILD= _DIR%\FV\Efildr32 %BUILD_DIR >%\FV\Efildr16 >-@copy >/b %BOOTSECTOR_BIN_DIR%\Start32.com+%BOOTSECTOR_BIN_DIR%\Efi32.com2+%BUILD= _DIR%\FV\Efildr32 %BUILD_DIR >%\FV\Efildr20 >-@goto end >+%BASETOOLS_DIR%\EfiLdrImage.exe >-o %BUILD_DIR%\FV\Efildr32 %BUILD_DIR%\%PROCESSOR%\EfiLoader.efi %BUILD_DI= R%\FV\DxeIpl.z %BUILD_DIR%\FV\Dx >eMain.z %BUILD_DIR%\FV\DUETEFIMAINFV.z >+copy >/b %BOOTSECTOR_BIN_DIR%\Start.com+%BOOTSECTOR_BIN_DIR%\Efi32.com2+%BUILD_D= IR%\FV\Efildr32 %BUILD_DIR% >\FV\Efildr >+copy >/b %BOOTSECTOR_BIN_DIR%\Start16.com+%BOOTSECTOR_BIN_DIR%\Efi32.com2+%BUILD= _DIR%\FV\Efildr32 %BUILD_DIR >%\FV\Efildr16 >+copy >/b %BOOTSECTOR_BIN_DIR%\Start32.com+%BOOTSECTOR_BIN_DIR%\Efi32.com2+%BUILD= _DIR%\FV\Efildr32 %BUILD_DIR >%\FV\Efildr20 >+goto end > > :GENERATE_IMAGE_X64 >-@%BASETOOLS_DIR%\EfiLdrImage.exe >-o %BUILD_DIR%\FV\Efildr64 %BUILD_DIR%\%PROCESSOR%\EfiLoader.efi %BUILD_DI= R%\FV\DxeIpl.z %BUILD_DIR%\FV\Dx >eMain.z %BUILD_DIR%\FV\DUETEFIMAINFV.z >-@copy >/b %BOOTSECTOR_BIN_DIR%\Start64.com+%BOOTSECTOR_BIN_DIR%\Efi64.com2+%BUILD= _DIR%\FV\Efildr64 %BUILD_DIR >%\FV\EfildrPure >-@%BASETOOLS_DIR%\GenPage.exe %BUILD_DIR%\FV\EfildrPure -o %BUILD_DIR%\FV\= Efildr >-@copy >/b %BOOTSECTOR_BIN_DIR%\St16_64.com+%BOOTSECTOR_BIN_DIR%\Efi64.com2+%BUILD= _DIR%\FV\Efildr64 %BUILD_DI >R%\FV\Efildr16Pure >-@%BASETOOLS_DIR%\GenPage.exe %BUILD_DIR%\FV\Efildr16Pure -o %BUILD_DIR%\F= V\Efildr16 >-@copy >/b %BOOTSECTOR_BIN_DIR%\St32_64.com+%BOOTSECTOR_BIN_DIR%\Efi64.com2+%BUILD= _DIR%\FV\Efildr64 %BUILD_DI >R%\FV\Efildr20Pure >-@%BASETOOLS_DIR%\GenPage.exe %BUILD_DIR%\FV\Efildr20Pure -o %BUILD_DIR%\F= V\Efildr20 >-@goto end >+%BASETOOLS_DIR%\EfiLdrImage.exe >-o %BUILD_DIR%\FV\Efildr64 %BUILD_DIR%\%PROCESSOR%\EfiLoader.efi %BUILD_DI= R%\FV\DxeIpl.z %BUILD_DIR%\FV\Dx >eMain.z %BUILD_DIR%\FV\DUETEFIMAINFV.z >+copy >/b %BOOTSECTOR_BIN_DIR%\Start64.com+%BOOTSECTOR_BIN_DIR%\Efi64.com2+%BUILD= _DIR%\FV\Efildr64 %BUILD_DIR >%\FV\EfildrPure >+%BASETOOLS_DIR%\GenPage.exe %BUILD_DIR%\FV\EfildrPure -o %BUILD_DIR%\FV\E= fildr >+copy >/b %BOOTSECTOR_BIN_DIR%\St16_64.com+%BOOTSECTOR_BIN_DIR%\Efi64.com2+%BUILD= _DIR%\FV\Efildr64 %BUILD_DI >R%\FV\Efildr16Pure >+%BASETOOLS_DIR%\GenPage.exe %BUILD_DIR%\FV\Efildr16Pure -o %BUILD_DIR%\FV= \Efildr16 >+copy >/b %BOOTSECTOR_BIN_DIR%\St32_64.com+%BOOTSECTOR_BIN_DIR%\Efi64.com2+%BUILD= _DIR%\FV\Efildr64 %BUILD_DI >R%\FV\Efildr20Pure >+%BASETOOLS_DIR%\GenPage.exe %BUILD_DIR%\FV\Efildr20Pure -o %BUILD_DIR%\FV= \Efildr20 >+goto end > > > :WrongArch >-@echo Error! Wrong architecture. >-@goto Help >+echo Error! Wrong architecture. >+goto Help > > :Help >-@echo Usage: "PostBuild [IA32|X64]" >+echo Usage: "PostBuild [IA32|X64]" > :end >\ No newline at end of file >-- >1.9.5.msysgit.0