From: Sebastien Bourdeauducq Date: Sat, 26 Sep 2015 13:54:19 +0000 (+0800) Subject: Revert "Use shutil rather then rm -rf command." X-Git-Tag: 24jan2021_ls180~2106^2~40 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a186bfe0f38bddb0849aef92ea97626e2f723998;p=litex.git Revert "Use shutil rather then rm -rf command." This reverts commit d8fd4fe7257eea9efe252376305b716b2f51840f. --- diff --git a/make.py b/make.py index e0aa8d0d..2d820aa9 100755 --- a/make.py +++ b/make.py @@ -5,7 +5,6 @@ import os import argparse import subprocess import struct -import shutil from migen.build.tools import write_to_file from migen.util.misc import autotype @@ -137,8 +136,7 @@ CPU type: {} actions["build-headers"] = True if actions["clean"]: - shutil.rmtree("build") # Need shell for the build/* globbing - os.mkdir("build") + subprocess.check_call("rm -rvf build/*", shell=True) # Need shell for the build/* globbing subprocess.check_call(["make", "-C", os.path.join("software", "libcompiler-rt"), "clean"]) subprocess.check_call(["make", "-C", os.path.join("software", "libbase"), "clean"]) subprocess.check_call(["make", "-C", os.path.join("software", "libnet"), "clean"])