diff --git a/build.sh b/build.sh index 4ffd9268cf..3cbd03c908 100755 --- a/build.sh +++ b/build.sh @@ -105,6 +105,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