mirror of
https://github.com/drasko/codezero.git
synced 2026-03-15 00:31:50 +01:00
Removed hard coded values of toolchain and gcc cpu flags
This commit is contained in:
@@ -23,6 +23,8 @@ from config.projpaths import *
|
||||
from config.configuration import *
|
||||
from tools.pyelf import elf
|
||||
|
||||
config = configuration_retrieve()
|
||||
|
||||
bootdesc_template = \
|
||||
'''
|
||||
/* This file is autogenerated, do not edit by hand. */
|
||||
@@ -95,8 +97,8 @@ def relocate_bootdesc(target, source, env):
|
||||
images = source[1:]
|
||||
mm0 = images[0]
|
||||
start, end = image_lma_start_end(mm0.path)
|
||||
print "arm-none-linux-gnueabi-objcopy --adjust-section-vma .data=" + conv_hex(end) + " " + bootdesc_raw.path
|
||||
os.system("arm-none-linux-gnueabi-objcopy --adjust-section-vma .data=" + conv_hex(end) + " " + bootdesc_raw.path)
|
||||
print config.user_toolchain + "objcopy --adjust-section-vma .data=" + conv_hex(end) + " " + bootdesc_raw.path
|
||||
os.system(config.user_toolchain + "objcopy --adjust-section-vma .data=" + conv_hex(end) + " " + bootdesc_raw.path)
|
||||
shutil.copyfile(bootdesc_raw.path, target[0].path)
|
||||
|
||||
bootdesc_c = e.Command('bootdesc.c', images, generate_bootdesc)
|
||||
|
||||
Reference in New Issue
Block a user