From 2d8da8b8cf82ce6d96ac548a6600744a054ba3c6 Mon Sep 17 00:00:00 2001 From: Yaniv Machani Date: Thu, 17 Jul 2014 22:12:40 +0300 Subject: [PATCH] Fix default kernel cleanup issue Signed-off-by: Yaniv Machani --- build_wl18xx.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/build_wl18xx.sh b/build_wl18xx.sh index 85ee848..9744f73 100755 --- a/build_wl18xx.sh +++ b/build_wl18xx.sh @@ -111,7 +111,7 @@ function cd_back() function read_kernel_version() { - filename=`repo_path kernel`/Makefile + filename=$KERNEL_PATH/Makefile if [ ! -f $filename ] then @@ -431,25 +431,25 @@ function build_scripts_download() function clean_kernel() { - echo "Cleaning kernel folder" - cd_repo kernel - git clean -fdx > /dev/null + [ "$DEFAULT_KERNEL" ] && echo "Cleaning kernel folder" + [ "$DEFAULT_KERNEL" ] && cd_repo kernel + [ "$DEFAULT_KERNEL" ] && git clean -fdx > /dev/null } function clean_outputs() { if [[ "$ROOTFS" == "DEFAULT" ]] then - echo "Cleaning outputs" + echo "Cleaning outputs" rm -rf `path filesystem`/* rm -f `path outputs`/${tar_filesystem[0]} rm -f `path outputs`/uImage - fi + fi } function build_outputs() { - if [[ "$ROOTFS" == "DEFAULT" ]] + if [[ "$ROOTFS" == "DEFAULT" ]] then echo "Building outputs" cd_path filesystem -- 2.39.2