[][openwrt][mt7988][tops][refactor tops-tool and add logger suuport]

[Description]
Refactor tops-tool and add logger support

add menu config for tops-tool
move common code into common part

save log cmd will open log relayfs and save
its data(log) as file in the filesystem

log relayfs path :
/sys/kernel/debug/tops/log-mgmt0
/sys/kernel/debug/tops/log-offload0

log file path :
<LOG_DIR>/log-mgmt-<time>
<LOG_DIR>/log-offload-<time>

[Release-log]
N/A

Change-Id: I1c563efbb584540eeb1b78c2a438c0173c4cdbba
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7988095
diff --git a/feed/app/tops-tool/Config.in b/feed/app/tops-tool/Config.in
new file mode 100644
index 0000000..6733c1b
--- /dev/null
+++ b/feed/app/tops-tool/Config.in
@@ -0,0 +1,14 @@
+menu "TOPS Tool Configurations"
+	depends on PACKAGE_tops-tool
+
+config MTK_TOPS_TOOL_SAVE_LOG
+	bool "Save Log"
+	depends on MTK_TOPS_LOGGER
+	default y
+	help
+	  Set y to enable tops-tool logging feature to save
+	  TOPS firmware log to file system for further
+	  debugging purpose.
+	  Use command echo ON to start collecting log and
+	  echo OFF to stop collecting log.
+endmenu