mirror of
https://github.com/drasko/codezero.git
synced 2026-02-11 01:13:16 +01:00
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:
@@ -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"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user