mirror of
https://github.com/drasko/codezero.git
synced 2026-02-24 15:53:14 +01:00
Fixed a fault with posix tasks not getting their LMA correctly
This commit is contained in:
@@ -24,6 +24,7 @@ def generate_lma_lds(target, source, env):
|
||||
with open(source[0].path, 'r') as lds_in:
|
||||
with open(target[0].path, 'w+') as lds_out:
|
||||
linker_script = lds_in.read()
|
||||
assert container.pager_lma != 0
|
||||
lds_out.write(linker_script % conv_hex(container.pager_lma))
|
||||
|
||||
lma_lds = Command('include/linker.lds', 'include/linker.lds.in', generate_lma_lds)
|
||||
|
||||
@@ -48,8 +48,9 @@ env.Append(LINKFLAGS = ['-T' + lma_lds[0].path, '-u_start'])
|
||||
env.Append(CPPFLAGS = ' -D__USERSPACE__')
|
||||
objs = env.Object(src + test_exec_asm)
|
||||
test0 = env.Program('test0.elf', objs)
|
||||
|
||||
Depends(test0, objs)
|
||||
Depends(test0, lma_lds)
|
||||
Depends(lma_lds, previmage)
|
||||
env.Depends(test0, test_exec)
|
||||
|
||||
Return('test0')
|
||||
|
||||
Reference in New Issue
Block a user