From: Jean-François Nguyen Date: Mon, 28 Jun 2021 17:56:47 +0000 (+0200) Subject: soc.base: add support for adding user-provided template parameters. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e101b421724ec7ba9d070d8a251f9842fccac438;p=lambdasoc.git soc.base: add support for adding user-provided template parameters. --- 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))