Got the bootdesc building.

This commit is contained in:
Russel Winder
2009-08-05 18:33:37 +01:00
parent 38a0fdd4e2
commit 6f3d3fdf49
4 changed files with 109 additions and 19 deletions

View File

@@ -237,9 +237,26 @@ else :
Alias ('tasks', tasks)
########## Create the boot description ########################
taskName = 'bootdesc'
bootdescEnvironment = baseEnvironment.Clone(
CC = 'arm-none-linux-gnueabi-gcc',
CCFLAGS = ['-g', '-nostdlib', '-ffreestanding', '-std=gnu99', '-Wall', '-Werror'],
LINKFLAGS = ['-nostdlib', '-Ttasks/' + taskName + '/linker.lds'],
ASFLAGS = ['-D__ASSEMBLY__'],
PROGSUFFIX = '.axf',
LIBS = ['gcc'],
CPPPATH = ['#' + includeDirectory])
bootdesc = SConscript('tasks/' + taskName + '/SConscript', variant_dir = buildDirectory + '/tasks/' + taskName, duplicate = 0, exports = {'environment': bootdescEnvironment, 'images': [startAxf] + tasks})
Alias('bootdesc', bootdesc)
########## Other rules. ########################
Default(crts.values() + libs.values() + [libelf, startAxf] + tasks)
Default(crts.values() + libs.values() + [libelf, startAxf] + tasks + bootdesc)
Clean('.', [buildDirectory])