mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
33bb799a07
commit
d3dae8c16a
|
@ -0,0 +1 @@
|
|||
RunToolFromSource
|
|
@ -0,0 +1 @@
|
|||
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
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ ! $WORKSPACE=="" ]
|
||||
then
|
||||
echo WORKSPACE environment variable must be set
|
||||
elif [ -e $WORKSPACE/Conf/BaseToolsFrozenPython ]
|
||||
then
|
||||
$WORKSPACE/Conf/BaseToolsFrozenPython/`basename $0`
|
||||
elif [ -e $WORKSPACE/Conf/BaseToolsSource ]
|
||||
then
|
||||
PYTHONPATH=$WORKSPACE/Conf/BaseToolsSource/Source/Python \
|
||||
python $WORKSPACE/Conf/BaseToolsSource/Source/Python/`basename $0`/`basename $0`.py $*
|
||||
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
|
||||
|
|
@ -0,0 +1 @@
|
|||
RunToolFromSource
|
Loading…
Reference in New Issue