summaryrefslogtreecommitdiffstats
path: root/BaseTools/Bin/CYGWIN_NT-5.1-i686/BootSectImage
diff options
context:
space:
mode:
authorvanjeff <vanjeff>2013-09-25 03:31:09 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2013-09-25 03:31:09 +0000
commitfb639311912cf61194610fe1705ac87aa0345914 (patch)
tree734bb8ebfb84d0c97a2a568bed00ae34808b606a /BaseTools/Bin/CYGWIN_NT-5.1-i686/BootSectImage
parente45567f3c78f20a637dbe8f7c18b4be11af45585 (diff)
downloadedk2-fb639311912cf61194610fe1705ac87aa0345914.tar.gz
Copy BaseTools r14710 to UDK2010.SR1 Branch.
git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14723 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Bin/CYGWIN_NT-5.1-i686/BootSectImage')
-rwxr-xr-xBaseTools/Bin/CYGWIN_NT-5.1-i686/BootSectImage29
1 files changed, 29 insertions, 0 deletions
diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/BootSectImage b/BaseTools/Bin/CYGWIN_NT-5.1-i686/BootSectImage
new file mode 100755
index 0000000000..4821d24fa7
--- /dev/null
+++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/BootSectImage
@@ -0,0 +1,29 @@
+#!/usr/bin/env bash
+#python `dirname $0`/RunToolFromSource.py `basename $0` $*
+#exec `dirname $0`/../../../../C/bin/`basename $0` $*
+
+TOOL_BASENAME=`basename $0`
+
+if [ -n "$WORKSPACE" -a -e $WORKSPACE/Conf/BaseToolsCBinaries ]
+then
+ exec $WORKSPACE/Conf/BaseToolsCBinaries/$TOOL_BASENAME
+elif [ -n "$WORKSPACE" -a -e $EDK_TOOLS_PATH/Source/C ]
+then
+ if [ ! -e $EDK_TOOLS_PATH/Source/C/bin/$TOOL_BASENAME ]
+ then
+ echo BaseTools C Tool binary was not found \($TOOL_BASENAME\)
+ echo You may need to run:
+ echo " make -C $EDK_TOOLS_PATH/Source/C"
+ else
+ exec $EDK_TOOLS_PATH/Source/C/bin/$TOOL_BASENAME $*
+ fi
+elif [ -e `dirname $0`/../../Source/C/bin/$TOOL_BASENAME ]
+then
+ exec `dirname $0`/../../Source/C/bin/$TOOL_BASENAME $*
+else
+ echo Unable to find the real \'$TOOL_BASENAME\' to run
+ echo This message was printed by
+ echo " $0"
+ exit -1
+fi
+