From: Waldemar Kozaczuk <jwkozac...@gmail.com> Committer: Waldemar Kozaczuk <jwkozac...@gmail.com> Branch: master
Clean build tree when doing scripts/build check or make check Apparently there are missing dependencies in our Makefile that in some cases lead to situation when certain artifacts are not properly rebuilt and manual cleanup of the build machine is necessary. This patch changes the scripts/build to automatically clean main build artifacts as well as modules before build starts. Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com> --- diff --git a/scripts/build b/scripts/build --- a/scripts/build +++ b/scripts/build @@ -26,7 +26,9 @@ stage1_args="stage1" for i do case $i in - image=*|modules=*|fs=*|usrskel=*|check) ;; + image=*|modules=*|fs=*|usrskel=*) ;; + check) + make clean ;; clean) stage1_args=clean ;; *) # yuck... Is there a prettier way to append to array? @@ -51,6 +53,8 @@ do set -x OSV_BASE=`pwd` ./scripts/module.py clean -q exit;; + check) + OSV_BASE=`pwd` ./scripts/module.py clean -q ;; esac done -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.