diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-16 22:44:27 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-16 22:44:27 +0000 |
commit | d3dae8c16aadf26f7213a34e1ae6bd1dd5be2125 (patch) | |
tree | e9584df80d1996bfbfb79bc4df3de27ba8822031 /Tools/BaseTools/Bin/PosixLike/RunBinToolFromBuildDir | |
parent | 33bb799a0747fa3c455ec6e68c799572a25c5d81 (diff) | |
download | edk2-platforms-d3dae8c16aadf26f7213a34e1ae6bd1dd5be2125.tar.xz |
Tools/BaseTools/Bin/PosixLike/*:
Initial support for running BaseTools from binaries or source (python)
on unix-like operating systems.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4145 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/BaseTools/Bin/PosixLike/RunBinToolFromBuildDir')
-rwxr-xr-x | Tools/BaseTools/Bin/PosixLike/RunBinToolFromBuildDir | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Tools/BaseTools/Bin/PosixLike/RunBinToolFromBuildDir b/Tools/BaseTools/Bin/PosixLike/RunBinToolFromBuildDir new file mode 100755 index 0000000000..c1368925d6 --- /dev/null +++ b/Tools/BaseTools/Bin/PosixLike/RunBinToolFromBuildDir @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +if [ ! $WORKSPACE=="" ] +then + echo WORKSPACE environment variable must be set +elif [ -e $WORKSPACE/Conf/BaseToolsCBinaries ] +then + $WORKSPACE/Conf/BaseToolsCBinaries/`basename $0` +elif [ -e $WORKSPACE/Conf/BaseToolsSource ] +then + if [ ! -e $WORKSPACE/Conf/BaseToolsSource/Source/C/bin/`basename $0` ] + then + echo BaseTools C Tool binary was not found \(`basename $0`\) + echo You may need to run: + echo " make -C $WORKSPACE/Conf/BaseToolsSource/Source/C" + else + $WORKSPACE/Conf/BaseToolsSource/Source/C/bin/`basename $0` $* + fi +else + echo Unable to find the real \'`basename $0`\' to run + echo A symbolic link is needed under + echo " $WORKSPACE/Conf" + echo This message was printed by + echo " $0" + exit -1 +fi + |