Verified Commit 31bc60b1 authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

compile_fw: Run dirclean only when we have a config

parent f4aa5dea
......@@ -8,7 +8,6 @@
[ -d ./logs-nand ] && rm -rf ./logs-nand
[ -d ./logs-nor ] && rm -rf ./logs-nor
[ -d ./logs-initram ] && rm -rf ./logs-initram
[ -z "$BUILD_ALL" ] || make dirclean
if [ "$1" = turris ] || [ "$1" = omnia ]; then
export TARGET_BOARD="$1"
......@@ -40,6 +39,7 @@ if [ -d .git ] ; then
git log -n1 --format='%H' >files/etc/git-version
fi
make clean
[ -z "$BUILD_ALL" ] || make dirclean
make "$@"
mv ./logs ./logs-nand
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment