From d57bfd4a6e03f1b38121d2231d897c02b35c03c2 Mon Sep 17 00:00:00 2001 From: Shareef Jalloq Date: Tue, 28 Feb 2023 19:38:52 +0000 Subject: [PATCH] Adding support for no_export flag. Replicate --no-export command line argument using flags. This is useful for tool flows such as filelist generation where you don't want to copy all source files to the Fusesoc build directory. --- fusesoc/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fusesoc/main.py b/fusesoc/main.py index afb0a539..5ebf4b26 100644 --- a/fusesoc/main.py +++ b/fusesoc/main.py @@ -367,7 +367,7 @@ def run_backend( work_root = os.path.join(build_root, f"{target}-{tool}") logger.debug(f"Setting work_root to {work_root}") - if export: + if export and not "no_export" in flags.keys(): export_root = os.path.join(work_root, "src") logger.debug(f"Setting export_root to {export_root}") else: