From b0104554156bec0335ea628428dc43cb23dd9f05 Mon Sep 17 00:00:00 2001 From: Christian Klarhorst Date: Mon, 29 Aug 2022 10:40:31 +0200 Subject: [PATCH] integration/builder Make bios console configurable --- litex/soc/integration/builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py index 692bfd44c..de711012b 100644 --- a/litex/soc/integration/builder.py +++ b/litex/soc/integration/builder.py @@ -117,7 +117,6 @@ class Builder: # List software packages and libraries. self.software_packages = [] self.software_libraries = [] - for name in soc_software_packages: self.add_software_package(name) self.add_software_library(name) @@ -398,6 +397,7 @@ def builder_args(parser): builder_group.add_argument("--no-compile-software", action="store_true", help="Disable Software compilation only.") builder_group.add_argument("--no-compile-gateware", action="store_true", help="Disable Gateware compilation only.") builder_group.add_argument("--lto", action="store_true", help="Enable LTO (Link Time Optimization) for Software compilation.") + builder_group.add_argument("--bios-console", default=[], help="Select bios options.", choices=["TERM_NO_HIST", "TERM_MINI", "TERM_NO_COMPLETE"], nargs=1) builder_group.add_argument("--csr-csv", default=None, help="Write SoC mapping to the specified CSV file.") builder_group.add_argument("--csr-json", default=None, help="Write SoC mapping to the specified JSON file.") builder_group.add_argument("--csr-svd", default=None, help="Write SoC mapping to the specified SVD file.") @@ -415,6 +415,7 @@ def builder_argdict(args): "compile_software" : (not args.no_compile) and (not args.no_compile_software), "compile_gateware" : (not args.no_compile) and (not args.no_compile_gateware), "lto" : args.lto, + "bios_options" : args.bios_console, "csr_csv" : args.csr_csv, "csr_json" : args.csr_json, "csr_svd" : args.csr_svd,