CML2 rule file is autogenerated from arm.cml and the containers template

Container rules are too many and repetitive for each container. With this
change, the cml file is autogenerated from a container template cml and
the architecture cml, e.g. arm.cml. -c option determines the number of
containers. See build.py -h for more.
This commit is contained in:
Bahadir Balban
2009-09-26 16:39:04 +03:00
parent fbb1800562
commit 10d2d7269f
8 changed files with 299 additions and 352 deletions

View File

@@ -64,5 +64,7 @@ def configure_kernel(cml_file):
generate_kernel_cinfo(config.containers, KERNEL_CINFO_PATH)
if __name__ == "__main__":
configure_kernel(join(CML2_CONFIG_SRCDIR, "arm.cml"))
if not os.path.exists(join(CML2_CONFIG_SRCDIR, 'out.cml')):
generate_container_cml(4)
configure_kernel(join(CML2_CONFIG_SRCDIR, "out.cml"))