diff --git a/build.sh b/build.sh index 94a3efd83d..9cead600bc 100755 --- a/build.sh +++ b/build.sh @@ -107,6 +107,9 @@ elif [ "$target" == "clean-target" ]; then echo "removing .stamp_images_installed files" find $outputdir/build -name .stamp_images_installed | xargs -r rm + + echo "removing linux kernel build dir" + make O=$outputdir linux-dirclean fi if [ -f $outputdir/.config ]; then