[Feature]Upload Modem source code
Change-Id: Id4294f30faced84d3e6fd6d5e61e1111bf287a37
diff --git a/mcu/make/common/cmd_cfg.mak b/mcu/make/common/cmd_cfg.mak
new file mode 100644
index 0000000..e617ee6
--- /dev/null
+++ b/mcu/make/common/cmd_cfg.mak
@@ -0,0 +1,114 @@
+#########################
+## . variable part ##
+##########################
+# script, tools, commands
+
+CAT = perl ./tools/init/cat.pl
+CHK_OS = perl ./tools/init/chkOS.pl
+CH_MOD = perl ./tools/init/chmod.pl
+COPY_FILE = perl ./tools/init/copy_files.pl -f
+COPY_DIR = perl ./tools/init/copy_files.pl -r
+COMPARE = perl ./tools/init/compare.pl
+DEL_FILE = perl ./tools/init/remove.pl -f
+DEL_DIR = perl ./tools/init/rmdir.pl -f
+ECHO = perl ./tools/init/echo.pl
+GET_FNAME = perl ./tools/init/get_filename.pl
+LIST_DIR = perl ./tools/init/dir.pl
+MKDIR = perl ./tools/init/mkdir.pl
+MOVE = perl ./tools/init/move.pl -f
+RECURSIVE_DIR = perl ./tools/init/recursive_dir.pl
+
+GEN_TARGET_FILE = python ./tools/genTargetFile/genTargetFile.py True
+
+
+CHK_TIME = perl ./tools/time.pl -n
+CHDIR = cd
+
+# others
+AND = &&
+
+
+OS_VERSION = $(shell perl ./tools/init/chkOS.pl)
+#####################
+## windows section ##
+#####################
+ifeq ($(strip $(OS_VERSION)),MSWin32)
+# script, tools, commands
+LINKER = "./mtk_tools/guardian/Linker.exe"
+SENDER = "./mtk_tools/guardian/Sender.exe"
+STRCMPEX = .\tools\init\strcmpex_window.exe
+MAKE = "./tools/make.exe"
+GREP_V = find /V
+
+# if-else command
+IF = if
+IF_EXIST = if exist
+IF_NOT = if not
+IF_NOT_EXIST = if not exist
+IF_ERR_TRUE = if ERRORLEVEL 1
+IF_ERR_FALSE = if not errorlevel 1
+THEN =
+ELSE = else
+CMD_END =
+
+# for loop command
+FOR = for
+F_OPT = /F usebackq
+IN = in (
+DO = ) do
+DONE =
+
+# condition
+EQU = EQU
+NEQ = NEQ
+
+# others
+DEV_NUL = NUL
+DECLARE_VAR = %%
+PRE_VAR = %%
+P_VAR = %
+WITH = &
+
+else
+###################
+## Linux section ##
+###################
+# script, tools
+LINKER = ./mtk_tools/guardian/Linker
+SENDER = ./mtk_tools/guardian/Sender
+STRCMPEX = ./tools/init/strcmpex_linux.exe
+MAKE = make
+GREP_V = grep -v
+
+# if-else command
+IF = if [
+IF_EXIST = if [ -e
+IF_NOT = if [ !
+IF_NOT_EXIST = if [ ! -e
+IF_ERR_TRUE = if [ $$? != 0
+IF_ERR_FALSE = if [ $$? == 0
+THEN = ]; then
+ELSE = ;else
+CMD_END = ;fi
+
+
+# for loop command
+FOR = for
+F_OPT =
+IN = in
+DO = ;do
+DONE = ;done
+
+# condition
+EQU = =
+NEQ = !=
+
+# others
+DEV_NUL = /dev/null
+DECLARE_VAR =
+PRE_VAR = $$
+P_VAR = $
+WITH = ;
+
+endif # OS_VERSION end
+