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:
Bahadir Balban
2009-09-13 01:12:20 +03:00
parent 35097b1492
commit f7acdc116d
3 changed files with 63 additions and 3 deletions

View File

@@ -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: