From 953b1f70df6439ff67e987148e62439d5495d2bb Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 23 Nov 2018 08:11:57 +0100 Subject: [PATCH] build/microsemi/libero_soc: remove previous impl directory if exists --- litex/build/microsemi/libero_soc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litex/build/microsemi/libero_soc.py b/litex/build/microsemi/libero_soc.py index 657df3d6..720b7b58 100644 --- a/litex/build/microsemi/libero_soc.py +++ b/litex/build/microsemi/libero_soc.py @@ -237,6 +237,9 @@ class MicrosemiLiberoSoCPolarfireToolchain: # run if run: + # delete previous impl + if os.path.exists("impl"): + shutil.rmtree("impl") _run_script(script) os.chdir(cwd) -- 2.30.2