36 |
36 |
37 import time |
37 import time |
38 import generic_path |
38 import generic_path |
39 |
39 |
40 |
40 |
41 PiggyBackedBuildPlatforms = {'ARMV5':['GCCXML', 'X86GCC']} |
41 PiggyBackedBuildPlatforms = {'ARMV5':['GCCXML']} |
42 |
42 |
43 PlatformDefaultDefFileDir = {'WINSCW':'bwins', |
43 PlatformDefaultDefFileDir = {'WINSCW':'bwins', |
44 'ARMV5' :'eabi', |
44 'ARMV5' :'eabi', |
45 'ARMV5SMP' :'eabi', |
45 'ARMV5SMP' :'eabi', |
46 'GCCXML':'eabi', |
46 'GCCXML':'eabi', |
47 'ARMV6':'eabi', |
47 'ARMV6':'eabi', |
48 'ARMV7' : 'eabi', |
48 'ARMV7' : 'eabi', |
49 'ARMV7SMP' : 'eabi', |
49 'ARMV7SMP' : 'eabi', |
50 'X86GCC' : ['bx86gcc', 'eabi']} |
50 'X86' : ['bx86gcc', 'eabi']} |
51 |
51 |
52 def getVariantCfgDetail(aEPOCROOT, aVariantCfgFile): |
52 def getVariantCfgDetail(aEPOCROOT, aVariantCfgFile): |
53 """Obtain pertinent build related detail from the Symbian variant.cfg file. |
53 """Obtain pertinent build related detail from the Symbian variant.cfg file. |
54 |
54 |
55 This variant.cfg file, usually located relative to $(EPOCROOT), contains: |
55 This variant.cfg file, usually located relative to $(EPOCROOT), contains: |
2482 # Some configurations support a secondary, "fall back", .def file location if a .def file doesn't physically |
2482 # Some configurations support a secondary, "fall back", .def file location if a .def file doesn't physically |
2483 # exist at the primary location. |
2483 # exist at the primary location. |
2484 # We therefore check exisitance of the primary located file if a secondary location is available, and use the |
2484 # We therefore check exisitance of the primary located file if a secondary location is available, and use the |
2485 # secondary location if required (recording the fact that the secondary file has been used, as this can influence |
2485 # secondary location if required (recording the fact that the secondary file has been used, as this can influence |
2486 # downstream processing). |
2486 # downstream processing). |
|
2487 # Secondary locations are found as follows : resolvedPrimaryLocation/../secondaryLocation/resolvedDefFileName |
2487 if secondaryDefaultDefFileDir: |
2488 if secondaryDefaultDefFileDir: |
2488 primaryFileCheck = raptor_utilities.resolveSymbianPath(self.__defFileRoot, resolvedDefFile, 'DEFFILE', "", str(aBuildPlatform['EPOCROOT'])) |
2489 primaryFileCheck = raptor_utilities.resolveSymbianPath(self.__defFileRoot, resolvedDefFile, 'DEFFILE', "", str(aBuildPlatform['EPOCROOT'])) |
2489 |
2490 |
2490 if not os.path.exists(primaryFileCheck): |
2491 if not os.path.exists(primaryFileCheck): |
2491 isSecondaryDefaultDefFile = True |
2492 isSecondaryDefaultDefFile = True |
2492 resolvedDefFile = '../'+secondaryDefaultDefFileDir+'/'+os.path.basename(resolvedDefFile) |
2493 resolvedDefFile = "{0}/../{1}/{2}".format(os.path.dirname(resolvedDefFile), secondaryDefaultDefFileDir, os.path.basename(resolvedDefFile)) |
2493 |
2494 |
2494 resolvedDefFile = raptor_utilities.resolveSymbianPath(self.__defFileRoot, resolvedDefFile, 'DEFFILE', "", str(aBuildPlatform['EPOCROOT'])) |
2495 resolvedDefFile = raptor_utilities.resolveSymbianPath(self.__defFileRoot, resolvedDefFile, 'DEFFILE', "", str(aBuildPlatform['EPOCROOT'])) |
2495 |
2496 |
2496 return (resolvedDefFile, isSecondaryDefaultDefFile) |
2497 return (resolvedDefFile, isSecondaryDefaultDefFile) |
2497 |
2498 |