mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 09:43:14 +01:00
Configuration can now extract container attributes and store in container class.
Configuration symbols are stored as container class attributes CML2 arm.cml has richer container parameters, lma, vma, type etc.
This commit is contained in:
@@ -18,6 +18,15 @@ def cml2_header_to_symbols(cml2_header, symbols):
|
||||
symbols.get_subarch(name, value)
|
||||
symbols.get_platform(name, value)
|
||||
symbols.get_ncontainers(name, value)
|
||||
symbols.get_container_parameters(name, value)
|
||||
for cont in symbols.containers:
|
||||
print "Container", cont.id
|
||||
print "vma start:", cont.vma_start
|
||||
print "vma end:", cont.vma_end
|
||||
print "lma start:", cont.lma_start
|
||||
print "lma end:", cont.lma_end
|
||||
print "type:", cont.type
|
||||
print "\n"
|
||||
|
||||
def cml2_update_config_h(config_h_path, config):
|
||||
with open(config_h_path, "a") as config_h:
|
||||
|
||||
Reference in New Issue
Block a user