apicompatanamdw/compatanalysercmd/libraryanalyser/tsrc/scripts/latestrun.py
author shrivatsa
Mon, 27 Sep 2010 14:51:17 +0530
changeset 12 a0eee409ff14
permissions -rw-r--r--
Updates to CompatibilityAnalyser - The Tool should now work with Symbian^4 - Some minor bug fixes related to Qt headers in the Symbian Platform
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
     1
#
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
     3
# All rights reserved.
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
     4
# This component and the accompanying materials are made available
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
     5
# under the terms of "Eclipse Public License v1.0"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
     6
# which accompanies this distribution, and is available
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
     8
#
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
     9
# Initial Contributors:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    11
#
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    12
# Contributors:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    13
#
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    14
# Description:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    15
#
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    16
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    17
import sys
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    18
import os
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    19
import shutil
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    20
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    21
LATEST_GCCE_BIN = os.pardir+os.sep+"tsrc"+os.sep+"bin"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    22
LATEST_GCC_BIN = os.pardir+os.sep+"tsrc"+os.sep+"bin"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    23
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    24
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    25
TC_NUM = sys.argv[1]
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    26
TC_FOLDER = os.getcwd()+os.sep+"TC"+os.sep+TC_NUM
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    27
SCRIPT_DIR = TC_FOLDER+os.sep+"scripts"+os.sep
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    28
BBCRESULTS = os.pardir+os.sep+os.pardir+os.sep+"checkbc"+os.sep+"results"+os.sep+"BBCResults.xsl"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    29
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    30
if len(sys.argv) == 1:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    31
    print "Usage: latestrun testcase_name"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    32
    sys.exit()
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    33
    
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    34
if not os.path.exists(TC_FOLDER):
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    35
    print "Test case directory cannot be found: " + TC_FOLDER
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    36
    sys.exit()
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    37
    
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    38
if not os.path.exists(SCRIPT_DIR+"prepare.txt"):
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    39
    print "Test case directory cannot be found: " + SCRIPT_DIR + "prepare.txt"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    40
    sys.exit()
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    41
    
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    42
file = open( SCRIPT_DIR+"prepare.txt" )
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    43
BASENAME = ((file.readline()).replace("\\",os.sep).replace("/",os.sep)).rstrip('\n\r ')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    44
BASEDIR = ((file.readline()).replace("\\",os.sep).replace("/",os.sep)).rstrip('\n\r ')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    45
CURRNAME = ((file.readline()).replace("\\",os.sep).replace("/",os.sep)).rstrip('\n\r ')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    46
CURRDIR = ((file.readline()).replace("\\",os.sep).replace("/",os.sep)).rstrip('\n\r ')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    47
RESDIR = ((file.readline()).replace("\\",os.sep).replace("/",os.sep)).rstrip('\n\r ')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    48
TOOLCHAIN = ((file.readline()).replace("\\",os.sep).replace("/",os.sep)).rstrip('\n\r ')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    49
USELIBS = ((file.readline()).replace("\\",os.sep).replace("/",os.sep)).rstrip('\n\r ')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    50
BASEDLLDIR = ((file.readline()).replace("\\",os.sep).replace("/",os.sep)).rstrip('\n\r ')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    51
CURRDLLDIR = ((file.readline()).replace("\\",os.sep).replace("/",os.sep)).rstrip('\n\r ')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    52
file.close()
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    53
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    54
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    55
print "Checking test case directories..."
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    56
basedirlist = BASEDIR.split(';')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    57
BASEDIRS = ""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    58
for d in basedirlist:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    59
	if d != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    60
		if not os.path.exists(TC_FOLDER+os.sep+d):
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    61
			print "Cannot find base platform directory: " + TC_FOLDER+os.sep+d
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    62
			sys.exit()
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    63
		if BASEDIRS != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    64
			BASEDIRS = BASEDIRS + ";"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    65
		BASEDIRS = BASEDIRS+TC_FOLDER+os.sep+d
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    66
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    67
curdirlist = CURRDIR.split(';')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    68
CURRDIRS = ""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    69
for d in curdirlist:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    70
	if d != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    71
		if not os.path.exists(TC_FOLDER+os.sep+d):
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    72
			print "Cannot find current platform directory: " + TC_FOLDER+os.sep+d
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    73
			sys.exit()
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    74
		if CURRDIRS != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    75
			CURRDIRS = CURRDIRS + ";"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    76
		CURRDIRS = CURRDIRS+TC_FOLDER+os.sep+d
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    77
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    78
basedlldirlist = BASEDLLDIR.split(';')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    79
BASEDLLDIRS = ""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    80
for d in basedlldirlist:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    81
	if d != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    82
		if not os.path.exists(TC_FOLDER+os.sep+d):
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    83
			BASEDLLDIRS = ""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    84
		else:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    85
			if BASEDLLDIRS != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    86
				BASEDLLDIRS = BASEDLLDIRS + ";"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    87
			BASEDLLDIRS = BASEDLLDIRS+TC_FOLDER+os.sep+d
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    88
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    89
curdlldirlist = CURRDLLDIR.split(';')
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    90
CURRDLLDIRS = ""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    91
for d in curdlldirlist:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    92
	if d != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    93
		if not os.path.exists(TC_FOLDER+os.sep+d):
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    94
			CURRDLLDIRS = ""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    95
		else:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    96
			if CURRDLLDIRS != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    97
				CURRDLLDIRS = CURRDLLDIRS + ";"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    98
			CURRDLLDIRS = CURRDLLDIRS+TC_FOLDER+os.sep+d
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
    99
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   100
if not os.path.exists(TC_FOLDER+os.sep+RESDIR):
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   101
    print "Cannot find result directory: " + TC_FOLDER+os.sep+RESDIR
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   102
    sys.exit()    
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   103
TC_BBCRESULTS =  TC_FOLDER+os.sep+RESDIR+os.sep +"BBCResults.xsl"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   104
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   105
if not os.path.exists( BBCRESULTS):
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   106
    print "Cannot find BBCResults.xsl"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   107
else:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   108
    shutil.copyfile(BBCRESULTS,TC_BBCRESULTS)
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   109
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   110
if TOOLCHAIN == "GCCE":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   111
    LATEST_TOOLDIR = LATEST_GCCE_BIN
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   112
elif TOOLCHAIN == "GCC":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   113
    if os.name == "posix":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   114
        print "Test case not supported on Linux"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   115
        sys.exit()
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   116
    LATEST_TOOLDIR = LATEST_GCC_BIN 
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   117
elif TOOLCHAIN == "RVCT":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   118
    LATEST_TOOLDIR = ""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   119
else:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   120
	  TOOLCHAIN = "GCCE"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   121
	  LATEST_TOOLDIR ="" 
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   122
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   123
print "---- Starting Library Analyser ----"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   124
os.chdir(os.pardir+os.sep+"bin")
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   125
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   126
if os.name == "posix":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   127
    LATEST_CFILT_BIN = "cfilt"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   128
else:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   129
    LATEST_CFILT_BIN = "cfilt.exe"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   130
    
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   131
lib_command = ""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   132
if BASEDIRS != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   133
	lib_command = " -baselinelibdir " + "\"" + BASEDIRS + "\""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   134
if CURRDIRS != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   135
	lib_command = lib_command + " -currentlibdir " + "\""+ CURRDIRS + "\""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   136
	
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   137
dll_command = ""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   138
if BASEDLLDIRS != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   139
	dll_command=" -baselinedlldir " + "\"" + BASEDLLDIRS + "\""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   140
if CURRDLLDIRS != "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   141
	dll_command = dll_command + " -currentdlldir " + "\"" + CURRDLLDIRS + "\""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   142
    
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   143
RESULTS_DIR = TC_FOLDER + os.sep + RESDIR + os.sep
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   144
if os.path.exists(RESULTS_DIR+"results.xml"):
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   145
    os.remove(RESULTS_DIR+"results.xml")
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   146
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   147
if LATEST_TOOLDIR == "":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   148
	cmd="la "+TOOLCHAIN+lib_command+dll_command+" -baselineversion \""+BASENAME+"\" -currentversion \""+CURRNAME+"\" -reportfile \""+TC_FOLDER+os.sep+"results"+os.sep+"results.xml\" -temp \""+os.getcwd()+os.sep+"temp\" -set \""+TC_FOLDER+os.sep+"scripts"+os.sep+"config.txt\"" 
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   149
elif TOOLCHAIN == "RVCT":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   150
  cmd="la "+TOOLCHAIN+lib_command+dll_command+" -baselineversion \""+BASENAME+"\" -currentversion \""+CURRNAME+"\" -reportfile \""+TC_FOLDER+os.sep+"results"+os.sep+"results.xml\" -temp \""+os.getcwd()+os.sep+"temp\" -set \""+TC_FOLDER+os.sep+"scripts"+os.sep+"config.txt\""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   151
else:
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   152
	cmd="la "+TOOLCHAIN+lib_command+dll_command+" -baselineversion \""+BASENAME+"\" -currentversion \""+CURRNAME+"\" -reportfile \""+TC_FOLDER+os.sep+"results"+os.sep+"results.xml\" -temp \""+os.getcwd()+os.sep+"temp\" -set \""+TC_FOLDER+os.sep+"scripts"+os.sep+"config.txt\""
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   153
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   154
print cmd
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   155
if USELIBS == "TRUE":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   156
    cmd = cmd + " --uselibs"
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   157
if TOOLCHAIN == "RVCT":
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   158
    cmd = cmd + " -cfilt " + LATEST_CFILT_BIN
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   159
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   160
os.system(cmd)
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   161
os.chdir(os.pardir+os.sep+"tsrc")
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   162
sys.exit()
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   163
a0eee409ff14 Updates to CompatibilityAnalyser
shrivatsa
parents:
diff changeset
   164