[build] Change memory_layout from csv to yaml
I realized we don't need yet another format for configuration. As a bonus, yaml also allows for a more descriptive file.
This commit is contained in:
@@ -68,7 +68,7 @@ kernel = module("kernel",
|
||||
from glob import glob
|
||||
from os.path import join
|
||||
|
||||
layout = join(source_root, "definitions/memory_layout.csv")
|
||||
layout = join(source_root, "definitions/memory_layout.yaml")
|
||||
definitions = glob('definitions/**/*.def', recursive=True)
|
||||
|
||||
kernel.add_depends(["memory.h.cog"], [layout])
|
||||
|
||||
@@ -37,7 +37,7 @@ constexpr unsigned kernel_buffer_pages = 16;
|
||||
from os.path import join
|
||||
from memory import Layout
|
||||
|
||||
layout = Layout(join(definitions_path, "memory_layout.csv"))
|
||||
layout = Layout(join(definitions_path, "memory_layout.yaml"))
|
||||
l = max([len(r.name) for r in layout.regions])
|
||||
|
||||
for region in layout.regions:
|
||||
|
||||
@@ -8,5 +8,5 @@ bp = module("bootproto",
|
||||
|
||||
from os.path import join
|
||||
|
||||
layout = join(source_root, "definitions/memory_layout.csv")
|
||||
layout = join(source_root, "definitions/memory_layout.yaml")
|
||||
bp.add_input("include/bootproto/memory.h.cog", deps=[layout])
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace mem {
|
||||
from os.path import join
|
||||
from memory import Layout
|
||||
|
||||
layout = Layout(join(definitions_path, "memory_layout.csv"))
|
||||
layout = Layout(join(definitions_path, "memory_layout.yaml"))
|
||||
|
||||
for region in layout.regions:
|
||||
if region.shared:
|
||||
|
||||
Reference in New Issue
Block a user