print 'Storing environment configuration into',\r
print self.RelativeToWorkspace(scriptFilename)\r
script = open(scriptFilename, 'w')\r
+\r
print >> script, 'export WORKSPACE="%s"' % workspace\r
print >> script, 'export TOOLCHAIN="%s"' % self.conf['compiler']\r
print >> script, 'export EDK_CC_PATH_PREFIX="%s"' % self.conf['compiler-prefix']\r
+\r
+ #\r
+ # Change PATH variable\r
+ #\r
+ newPath = os.environ['PATH'].split(os.path.pathsep)\r
+ binDir = \\r
+ os.path.join(workspace, 'Tools', 'BaseTools', 'Bin', sys.platform.title())\r
+ if binDir not in newPath:\r
+ newPath.append(binDir)\r
+ newPath = os.path.pathsep.join(newPath)\r
+ print >> script, 'export PATH=%s' % newPath\r
+\r
script.close()\r
\r
def RelativeToWorkspace(self, path):\r