Various changes post sorting out some of the issues regarding task ordering.

test0 cannot be the first task in the list as it must have a prior physical_base.lds in order to create test_exec_linker.lds.
mm0 appears to have to precede fs0 for the tests to execute on start.  This should be considered a bug.
This commit is contained in:
Russel Winder
2009-08-30 10:12:12 +01:00
parent 46e10bfde8
commit 5974a327d0
4 changed files with 36 additions and 11 deletions

View File

@@ -36,6 +36,16 @@ def createTestExecS(target, source, env):
.align 4
''' % ( source[0].path ))
try:
environment['physicalBaseLinkerScript']
except KeyError:
print '''
####
#### The test0 task cannot be the first task in the list of tasks.
####
'''
Exit ( 1 )
testTaskEnvironment = environment.Clone()
testTaskEnvironment.Append(CPPPATH=['#' + testTaskEnvironment['posixServicesDirectory'] +'/libposix/include/posix'])
testExecLinkerScript = Command('#build/' + testTaskEnvironment['posixServicesDirectory'] +'/' + taskName + '/test_exec_linker.lds', ['test_exec_linker.lds.in', testTaskEnvironment['physicalBaseLinkerScript']], createTestExecLinkerScript)