diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-25 02:59:16 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-04-25 02:59:16 +0000 |
commit | 52ce3fafd078e524672ff3f3371bdcbd46950012 (patch) | |
tree | 763de61b31115b4b864d1fe7952a2f90c25188b2 /DuetPkg/PostBuild.bat | |
parent | 79f16ea384cb3d08ef94d0b62f55efe078ffafaf (diff) | |
download | edk2-platforms-52ce3fafd078e524672ff3f3371bdcbd46950012.tar.xz |
Move post building command from make file to bat file. Until build system support post build, these command will be for Duet platform's post building commands.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5126 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/PostBuild.bat')
-rw-r--r-- | DuetPkg/PostBuild.bat | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/DuetPkg/PostBuild.bat b/DuetPkg/PostBuild.bat new file mode 100644 index 0000000000..cbc0babc1c --- /dev/null +++ b/DuetPkg/PostBuild.bat @@ -0,0 +1,15 @@ +#
+# Currently, Build system does not provide post build mechanism for module
+# and platform building, so just use a bat file to do post build commands.
+# Originally, following post building command is for EfiLoader module.
+#
+
+set BUILD_DIR=%WORKSPACE%\Build\DuetPkg\DEBUG_MYTOOLS
+set BASETOOLS_DIR=%WORKSPACE_TOOLS_PATH%\Bin\Win32
+set OUTPUT_DIR=%BUILD_DIR%\IA32\DuetPkg\BootSector\BootSector\OUTPUT
+
+%BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DUETEFIMAINFV.z %BUILD_DIR%\FV\DUETEFIMAINFV.Fv
+%BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DxeMain.z %BUILD_DIR%\IA32\DxeMain.efi
+%BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DxeIpl.z %BUILD_DIR%\IA32\DxeIpl.efi
+%BASETOOLS_DIR%\EfiLdrImage.exe -o %BUILD_DIR%\FV\Efildr32 %BUILD_DIR%\IA32\EfiLoader.efi %BUILD_DIR%\FV\DxeIpl.z %BUILD_DIR%\FV\DUETEFIMAINFV.z
+copy /b %OUTPUT_DIR%\Start.com+%OUTPUT_DIR%\Efi32.com2+%BUILD_DIR%\FV\Efildr32 %BUILD_DIR%\FV\Efildr
|