Pull out the toolchains specification as a separate file and extend to cover the new options in the configuration file.

This commit is contained in:
Russel Winder
2009-08-30 13:47:16 +01:00
parent 34d691794c
commit 399f1d530d
3 changed files with 55 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ import os.path
Import('environment')
e = environment.Clone()
e['CC'] = e['toolChains'][e['CPU']]['kernelCompiler']
e['CC'] = e['toolchains'][e['ARCH']][e['CPU']]['kernelCompiler']
e.Append(CPPPATH = ['#' + e['buildDirectory'], '#' + e['buildDirectory'] + '/l4', '#' + e['includeDirectory'], '#' + e['includeDirectory'] + '/l4'])
e.Append(LINKFLAGS = ['-T' + e['includeDirectory'] + '/l4/arch/' + e['ARCH'] + '/linker.lds'])
####