mirror of
https://github.com/drasko/codezero.git
synced 2026-01-11 18:33:16 +01:00
Safety check-in of the next stage in getting the tasks linked.
This commit is contained in:
@@ -197,7 +197,8 @@ else :
|
||||
LIBS = taskLibraries + ['gcc', libs['userspace']],
|
||||
PROGSUFFIX = '.axf',
|
||||
CPPDEFINES = ['__USERSPACE__'],
|
||||
CPPPATH = ['#' + buildDirectory, '#' + buildDirectory + '/l4', '#' + includeDirectory, 'include', '#tasks/libl4/include', '#tasks/libmem', '#tasks/libposix/include'])
|
||||
CPPPATH = ['#' + buildDirectory, '#' + buildDirectory + '/l4', '#' + includeDirectory, 'include', '#tasks/libl4/include', '#tasks/libmem', '#tasks/libposix/include'],
|
||||
kernel = startAxf)
|
||||
|
||||
tasks = []
|
||||
for task in [f.name for f in Glob('tasks/*') if f.name not in taskLibraryNames + ['bootdesc']]:
|
||||
|
||||
@@ -21,9 +21,12 @@ Import('environment')
|
||||
|
||||
e = environment.Clone()
|
||||
e.Append(LINKFLAGS = ['-Ttasks/fs0/include/linker.lds'])
|
||||
e.Append(LIBPATH=['#build/tasks/fs0', '#build/lib/c/userspace/crt/sys-userspace/arch-arm'])
|
||||
|
||||
objects = e.StaticObject(Glob('*.c') + Glob('src/*.c'))
|
||||
objects = e.StaticObject(Glob('*.c') + [Glob(directory + '/*.c') for directory in [ 'src', 'src/lib', 'src/memfs']])
|
||||
Depends(objects, e['configFiles'])
|
||||
library = e.Program('fs0', objects + [e['crt0']])
|
||||
program = e.Program('fs0', objects)
|
||||
physicalBaseLinkerScript = Command('include/physical_base.lds', e['kernel'], 'tools/pyelf/readelf.py --first-free-page ' + e['kernel'][0].path + ' >> $TARGET')
|
||||
Depends(program, [physicalBaseLinkerScript, e['crt0']])
|
||||
|
||||
Return('library')
|
||||
Return('program')
|
||||
|
||||
@@ -20,10 +20,13 @@
|
||||
Import('environment')
|
||||
|
||||
e = environment.Clone()
|
||||
e.Append(LINKFLAGS = ['-Ttasks/mm0/include/linker.lds'])
|
||||
e.Append(LINKFLAGS=['-Ttasks/mm0/include/linker.lds'])
|
||||
e.Append(LIBPATH=['#build/tasks/mm0', '#build/lib/c/userspace/crt/sys-userspace/arch-arm'])
|
||||
|
||||
objects = e.StaticObject(Glob('*.c') + Glob('src/*.c'))
|
||||
objects = e.StaticObject(Glob('*.c') + Glob('src/*.c') + Glob('src/lib/*.c') + Glob('src/arch/*.c'))
|
||||
Depends(objects, e['configFiles'])
|
||||
library = e.Program('mm0', objects + [e['crt0']])
|
||||
program = e.Program('mm0', objects)
|
||||
physicalBaseLinkerScript = Command('include/physical_base.lds', e['kernel'], 'tools/pyelf/readelf.py --first-free-page ' + e['kernel'][0].path + ' >> $TARGET')
|
||||
Depends(program, [physicalBaseLinkerScript, e['crt0']])
|
||||
|
||||
Return('library')
|
||||
Return('program')
|
||||
|
||||
@@ -21,9 +21,12 @@ Import('environment')
|
||||
|
||||
e = environment.Clone()
|
||||
e.Append(LINKFLAGS = ['-Ttasks/test0/include/linker.lds'])
|
||||
e.Append(LIBPATH=['#build/tasks/test0', '#build/lib/c/userspace/crt/sys-userspace/arch-arm'])
|
||||
|
||||
objects = e.StaticObject(Glob('*.c') + Glob('src/*.c'))
|
||||
Depends(objects, e['configFiles'])
|
||||
library = e.Program('test0', objects + [e['crt0']])
|
||||
program = e.Program('test0', objects)
|
||||
physicalBaseLinkerScript = Command('include/physical_base.lds', e['kernel'], 'tools/pyelf/readelf.py --first-free-page ' + e['kernel'][0].path + ' >> $TARGET')
|
||||
Depends(program, [physicalBaseLinkerScript, e['crt0']])
|
||||
|
||||
Return('library')
|
||||
Return('program')
|
||||
|
||||
Reference in New Issue
Block a user