diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-12-29 06:16:53 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-12-29 06:16:53 +0000 |
commit | a709adfaf0bebbaf3d989f56b500e3985687d0e3 (patch) | |
tree | 47d6f44e4afffe70535e492f8585f433efcbf24d /BaseTools/Bin/CYGWIN_NT-5.1-i686 | |
parent | 4661d5df04ce804e454509922fd54f45332553da (diff) | |
download | edk2-platforms-a709adfaf0bebbaf3d989f56b500e3985687d0e3.tar.xz |
Sync tool code to BuildTools project r1783.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9623 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Bin/CYGWIN_NT-5.1-i686')
31 files changed, 560 insertions, 9 deletions
diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/Arm/DEBUG_RVCT31CYGWIN/CompilerIntrinsicsLib.lib b/BaseTools/Bin/CYGWIN_NT-5.1-i686/Arm/DEBUG_RVCT31CYGWIN/CompilerIntrinsicsLib.lib Binary files differdeleted file mode 100644 index 5f149545f6..0000000000 --- a/BaseTools/Bin/CYGWIN_NT-5.1-i686/Arm/DEBUG_RVCT31CYGWIN/CompilerIntrinsicsLib.lib +++ /dev/null diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/Arm/RELEASE_RVCT31CYGWIN/CompilerIntrinsicsLib.lib b/BaseTools/Bin/CYGWIN_NT-5.1-i686/Arm/RELEASE_RVCT31CYGWIN/CompilerIntrinsicsLib.lib Binary files differdeleted file mode 100644 index d3efae3d88..0000000000 --- a/BaseTools/Bin/CYGWIN_NT-5.1-i686/Arm/RELEASE_RVCT31CYGWIN/CompilerIntrinsicsLib.lib +++ /dev/null diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/BootSectImage b/BaseTools/Bin/CYGWIN_NT-5.1-i686/BootSectImage new file mode 100644 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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/BuildEnv b/BaseTools/Bin/CYGWIN_NT-5.1-i686/BuildEnv new file mode 100644 index 0000000000..2cb8b86a99 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/BuildEnv @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +#python `dirname $0`/RunToolFromSource.py `basename $0` $* +PYTHONPATH="`dirname $0`/../../Source/Python" \ + python "`dirname $0`/../../Source/Python"/`basename $0`/`basename $0`.py $* + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/Ecc b/BaseTools/Bin/CYGWIN_NT-5.1-i686/Ecc new file mode 100644 index 0000000000..2cb8b86a99 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/Ecc @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +#python `dirname $0`/RunToolFromSource.py `basename $0` $* +PYTHONPATH="`dirname $0`/../../Source/Python" \ + python "`dirname $0`/../../Source/Python"/`basename $0`/`basename $0`.py $* + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/EfiLdrImage b/BaseTools/Bin/CYGWIN_NT-5.1-i686/EfiLdrImage new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/EfiLdrImage @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/EfiRom b/BaseTools/Bin/CYGWIN_NT-5.1-i686/EfiRom new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/EfiRom @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenCrc32 b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenCrc32 new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenCrc32 @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenDepex b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenDepex new file mode 100644 index 0000000000..bd3141a758 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenDepex @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +PYTHONPATH="`dirname $0`/../../Source/Python" \ + python "`dirname $0`/../../Source/Python"/AutoGen/`basename $0`.py $* diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFds b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFds new file mode 100644 index 0000000000..2cb8b86a99 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFds @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +#python `dirname $0`/RunToolFromSource.py `basename $0` $* +PYTHONPATH="`dirname $0`/../../Source/Python" \ + python "`dirname $0`/../../Source/Python"/`basename $0`/`basename $0`.py $* + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFfs b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFfs new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFfs @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFv b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFv new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFv @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFw b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFw new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenFw @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenPage b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenPage new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenPage @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenSec b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenSec new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenSec @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenVtf b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenVtf new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GenVtf @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/GnuGenBootSector b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GnuGenBootSector new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/GnuGenBootSector @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaCompress b/BaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaCompress new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaCompress @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/RunBinToolFromBuildDir b/BaseTools/Bin/CYGWIN_NT-5.1-i686/RunBinToolFromBuildDir new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/RunBinToolFromBuildDir @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/RunToolFromSource b/BaseTools/Bin/CYGWIN_NT-5.1-i686/RunToolFromSource new file mode 100644 index 0000000000..2cb8b86a99 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/RunToolFromSource @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +#python `dirname $0`/RunToolFromSource.py `basename $0` $* +PYTHONPATH="`dirname $0`/../../Source/Python" \ + python "`dirname $0`/../../Source/Python"/`basename $0`/`basename $0`.py $* + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/Split b/BaseTools/Bin/CYGWIN_NT-5.1-i686/Split new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/Split @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/TargetTool b/BaseTools/Bin/CYGWIN_NT-5.1-i686/TargetTool new file mode 100644 index 0000000000..2cb8b86a99 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/TargetTool @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +#python `dirname $0`/RunToolFromSource.py `basename $0` $* +PYTHONPATH="`dirname $0`/../../Source/Python" \ + python "`dirname $0`/../../Source/Python"/`basename $0`/`basename $0`.py $* + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/TianoCompress b/BaseTools/Bin/CYGWIN_NT-5.1-i686/TianoCompress new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/TianoCompress @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/Trim b/BaseTools/Bin/CYGWIN_NT-5.1-i686/Trim new file mode 100644 index 0000000000..2cb8b86a99 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/Trim @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +#python `dirname $0`/RunToolFromSource.py `basename $0` $* +PYTHONPATH="`dirname $0`/../../Source/Python" \ + python "`dirname $0`/../../Source/Python"/`basename $0`/`basename $0`.py $* + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/VfrCompile b/BaseTools/Bin/CYGWIN_NT-5.1-i686/VfrCompile new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/VfrCompile @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/VolInfo b/BaseTools/Bin/CYGWIN_NT-5.1-i686/VolInfo new file mode 100644 index 0000000000..4821d24fa7 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/VolInfo @@ -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 + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/armcc_wrapper.py b/BaseTools/Bin/CYGWIN_NT-5.1-i686/armcc_wrapper.py index 4d91a264ba..6d7aa00c4d 100755 --- a/BaseTools/Bin/CYGWIN_NT-5.1-i686/armcc_wrapper.py +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/armcc_wrapper.py @@ -25,14 +25,15 @@ # import sys import os -import subprocess +import subprocess +import pipes # # Convert using cygpath command line tool # Currently not used, but just in case we need it in the future # def ConvertCygPathToDosViacygpath(CygPath): - p = subprocess.Popen("cygpath -m " + CygPath, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True) + p = subprocess.Popen("cygpath -m " + pipes.quote(CygPath), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True) return p.stdout.read().strip() # @@ -45,32 +46,36 @@ def ConvertCygPathToDos(CygPath): else: DosPath = CygPath - # need the extra \\ as we are making a string to pass to a command - return DosPath.replace('/','\\\\') + # pipes.quote will add the extra \\ for us. + return DosPath.replace('/','\\') +# we receive our options as a list, but we will be passing them to the shell as a line +# this means we have to requote things as they will get one round of unquoting. +# we can't set "shell=False" because we are running commands from the PATH and +# if you don't use the shell you don't get a PATH search. def main(argv): # use 1st argument as name of tool to call - Command = sys.argv[1] + Command = pipes.quote(sys.argv[1]); ExceptionList = ["/interwork"] for arg in argv: if arg.find('/') == -1: # if we don't need to convert just add to the command line - Command = Command + ' ' + arg + Command = Command + ' ' + pipes.quote(arg) elif arg in ExceptionList: # if it is in the list, then don't do a cygpath # assembler stuff after --apcs has the /. - Command = Command + ' ' + arg + Command = Command + ' ' + pipes.quote(arg) else: if ((arg[0] == '-') and (arg[1] == 'I' or arg[1] == 'i')): CygPath = arg[0] + arg[1] + ConvertCygPathToDos(arg[2:]) else: CygPath = ConvertCygPathToDos(arg) - - Command = Command + ' ' + CygPath + + Command = Command + ' ' + pipes.quote(CygPath) # call the real tool with the converted paths return subprocess.call(Command, shell=True) diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/build b/BaseTools/Bin/CYGWIN_NT-5.1-i686/build new file mode 100644 index 0000000000..2cb8b86a99 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/build @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +#python `dirname $0`/RunToolFromSource.py `basename $0` $* +PYTHONPATH="`dirname $0`/../../Source/Python" \ + python "`dirname $0`/../../Source/Python"/`basename $0`/`basename $0`.py $* + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/fpd2dsc b/BaseTools/Bin/CYGWIN_NT-5.1-i686/fpd2dsc new file mode 100644 index 0000000000..2cb8b86a99 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/fpd2dsc @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +#python `dirname $0`/RunToolFromSource.py `basename $0` $* +PYTHONPATH="`dirname $0`/../../Source/Python" \ + python "`dirname $0`/../../Source/Python"/`basename $0`/`basename $0`.py $* + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/msa2inf b/BaseTools/Bin/CYGWIN_NT-5.1-i686/msa2inf new file mode 100644 index 0000000000..2cb8b86a99 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/msa2inf @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +#python `dirname $0`/RunToolFromSource.py `basename $0` $* +PYTHONPATH="`dirname $0`/../../Source/Python" \ + python "`dirname $0`/../../Source/Python"/`basename $0`/`basename $0`.py $* + diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/spd2dec b/BaseTools/Bin/CYGWIN_NT-5.1-i686/spd2dec new file mode 100644 index 0000000000..2cb8b86a99 --- /dev/null +++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/spd2dec @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +#python `dirname $0`/RunToolFromSource.py `basename $0` $* +PYTHONPATH="`dirname $0`/../../Source/Python" \ + python "`dirname $0`/../../Source/Python"/`basename $0`/`basename $0`.py $* + |