SoC c3 : script: clean files after compilation. [1/1]

PD#SWPL-165086

Problem:
excess files generated after compilation.

Solution:
clean files after compilation.

Verify:
N/A

Change-Id: I28136d164b1146796febebb0e51f526d173769b5
Signed-off-by: shijie.xiong <shijie.xiong@amlogic.com>
diff --git a/c3_fastboot.sh b/c3_fastboot.sh
index 19830e6..9b4fd19 100755
--- a/c3_fastboot.sh
+++ b/c3_fastboot.sh
@@ -147,9 +147,16 @@
 	#./mk c3_aw419 --update-bl2 --update-bl2e --bl31 ./fip/blob-bl31.bin.signed
 	./mk $BOARD_TYPE_MAPPING
 	if [ "$?" -ne 0 ]; then
+		if [ -d ./fastboot ]; then
+			rm -rf ./fastboot
+		fi
 		echo "RTOS-SDK: Uboot compilation failed !!!"
 		exit 1
 	fi
+
+	if [ -d ./fastboot ]; then
+		rm -rf ./fastboot
+	fi
 	popd
 }