Minor mods on linux patches

This commit is contained in:
Bahadir Balban
2009-10-21 21:27:41 +03:00
parent 4f5ab576b8
commit c6bdd65e48
4 changed files with 11 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ from scripts.loader.generate_loader_asm import *
from config.lib import *
# Function to determine the LMA for 'final.elf'
def find_lma_codezero(target, source, env):
def find_loader_load_address(target, source, env):
# Start/end addresses of various physical memory regions defined
array_start = []
array_end = []
@@ -52,7 +52,7 @@ def find_lma_codezero(target, source, env):
# Create target file
with open(source[1].path, 'r') as input:
buffer = input.read()
print 'LMA FOR FINAL.ELF IS : ' + str(conv_hex(loadaddr))
#print 'Load address for final.elf: ' + str(conv_hex(loadaddr))
with open(target[0].path, 'w+') as output:
output.write(buffer % str(conv_hex(loadaddr)))
@@ -67,7 +67,7 @@ loader_image_S = Command(join(PROJROOT, 'loader/images.S'), [join(BUILDDIR, 'ker
gen_loader_images_S)
lma_lds = Command(join(BUILDDIR, 'loader/linker.lds'), \
[join(BUILDDIR, 'kernel.elf'), \
join(PROJROOT, 'loader/linker.lds.in')], find_lma_codezero)
join(PROJROOT, 'loader/linker.lds.in')], find_loader_load_address)
src = Glob('*.[cS]')
objs = env.Object(src)