From: Florent Kermarrec Date: Fri, 23 Nov 2018 07:11:57 +0000 (+0100) Subject: build/microsemi/libero_soc: remove previous impl directory if exists X-Git-Tag: 24jan2021_ls180~1469 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=953b1f70df6439ff67e987148e62439d5495d2bb;p=litex.git build/microsemi/libero_soc: remove previous impl directory if exists --- 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)