summaryrefslogtreecommitdiff
path: root/DuetPkg/CreateBootDisk.sh
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2016-11-11 16:21:35 +0800
committerHao Wu <hao.a.wu@intel.com>2016-11-14 19:33:11 +0800
commitbab82372a9e6ce066fa725a792e71d07191046ca (patch)
tree8f7f709bb0b64ce8e972f37a901c2b49e0a1d3f5 /DuetPkg/CreateBootDisk.sh
parentea4511d127f45e5028996aba6613b4807c3c7902 (diff)
downloadedk2-platforms-bab82372a9e6ce066fa725a792e71d07191046ca.tar.xz
DuetPkg: Add POSTBUILD in DSC files to run post-build automatically
https://bugzilla.tianocore.org/show_bug.cgi?id=220 Currently, the post-build scripts PostBuild.bat/PostBuild.sh in DuetPkg need to be run manually. Especially for Windows batch script, it also requires users to set the build options (like tool chain, target and arch) in file Conf/target.txt. If users using command line options via '-t' or '-a', the post-build script won't work properly. The package DSC files now support the feature to execute post-build script automatically by adding a 'POSTBUILD' definition. This feature also passes the build options into the post-build script as parameters. This commit uses this feature to make the post-build works for DuetPkg more user-friendly. Also, ReadMe.txt is updated to reflect the new steps for UEFI Emulation (DUET) development. Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'DuetPkg/CreateBootDisk.sh')
-rwxr-xr-xDuetPkg/CreateBootDisk.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/DuetPkg/CreateBootDisk.sh b/DuetPkg/CreateBootDisk.sh
index fa00408d84..897ba9bc93 100755
--- a/DuetPkg/CreateBootDisk.sh
+++ b/DuetPkg/CreateBootDisk.sh
@@ -34,7 +34,7 @@ if [ \
"$*" = "--help" \
]
then
- echo "Usage: CreateBootDisk [usb|floppy|ide|file] MediaPath DevicePath [FAT12|FAT16|FAT32] [IA32|X64] [GCC44|UNIXGCC]"
+ echo "Usage: CreateBootDisk [usb|floppy|ide|file] MediaPath DevicePath [FAT12|FAT16|FAT32] [IA32|X64]"
echo "e.g. : CreateBootDisk floppy /media/floppy0 /dev/fd0 FAT12 IA32"
PROCESS_MARK=FALSE
fi
@@ -51,13 +51,7 @@ case "$5" in
return 1
esac
-if [ -z "$6" ]
-then
- TOOLCHAIN=GCC44
-else
- TOOLCHAIN=$6
-fi
-
+. $WORKSPACE/DuetPkg/SetEnv_$PROCESSOR.sh
export BUILD_DIR=$WORKSPACE/Build/DuetPkg$PROCESSOR/DEBUG_$TOOLCHAIN