From e101b421724ec7ba9d070d8a251f9842fccac438 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Fran=C3=A7ois=20Nguyen?= Date: Mon, 28 Jun 2021 19:56:47 +0200 Subject: [PATCH] soc.base: add support for adding user-provided template parameters. --- lambdasoc/soc/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lambdasoc/soc/base.py b/lambdasoc/soc/base.py index ceb3663..1c48f12 100644 --- a/lambdasoc/soc/base.py +++ b/lambdasoc/soc/base.py @@ -65,7 +65,7 @@ class ConfigBuilder: } command_templates = [] - def prepare(self, soc, build_dir, name): + def prepare(self, soc, build_dir, name, **render_params): name = name or type(soc).__name__.lower() autogenerated = "Automatically generated by LambdaSoC {}. Do not edit.".format(__version__) @@ -110,6 +110,7 @@ class ConfigBuilder: "periph_csrs": periph_csrs, "soc": soc, "software_dir": os.path.dirname(software.__file__), + **render_params, }) plan = BuildPlan(script="build_{}".format(name)) -- 2.30.2