mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[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:
|
||||
|
||||
Reference in New Issue
Block a user