[][openwrt-24][common][config][Allow bypass cleaning feeds for unified autobuild]

[Description]
Add support to bypass cleaning feeds for unified autobuild

[Release-log]
N/A

Change-Id: Ib7dcff38616e8e4de7221025f40ce2c3a113063a
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9684128
diff --git a/autobuild/unified/autobuild.sh b/autobuild/unified/autobuild.sh
index ddfa76c..9dae891 100755
--- a/autobuild/unified/autobuild.sh
+++ b/autobuild/unified/autobuild.sh
@@ -128,8 +128,10 @@
 
 	exec_log "git -C \"${openwrt_root}\" checkout ."
 	exec_log "git -C \"${openwrt_root}\" clean -f -d -e autobuild"
-	exec_log "rm -rf \"${openwrt_root}/feeds\""
-	exec_log "rm -rf \"${openwrt_root}/package/feeds\""
+	if test x"${reserve_feeds_set}" != x"yes"; then
+		exec_log "rm -rf \"${openwrt_root}/feeds\""
+		exec_log "rm -rf \"${openwrt_root}/package/feeds\""
+	fi
 	exec_log "rm -rf \"${openwrt_root}/.ab\""
 
 	exit 0