MM.bat
2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
@echo.
:CONFIG_CONTROL
@set TOPWELL_CTRL_NEW_BUILD=1
@set TOPWELL_CTRL_NEW_COPY=2
@set TOPWELL_CTRL_NEW_USER=3
@set TOPWELL_CTRL_NEW_VERNO=4
@set TOPWELL_CTRL_ZIP_NAME=5
@set TOPWELL_CTRL_ZIP_BAG=6
@set TOPWELL_CTRL_DEL_DB=7
:CONFIG_MTK
@set TOPWELL_MTK_PLAT=60D
@set TOPWELL_MTK_VERNO=none
@set TOPWELL_MTK_TOUCH=slim_non_touch
@set TOPWELL_MTK_SIZE=none
@set TOPWELL_MTK_MEMERY=MemoryDevice
:CONFIG_INFOMATION
@set TOPWELL_HW=%1%
@set TOPWELL_SW=0
@set TOPWELL_OP=0
@set TOPWELL_TM=none
@set TOPWELL_RF=ref_list
:CONFIG_VERSION
@set TOPWELL_USER_DEF=0
@set TOPWELL_VERNO_HW=0
@set TOPWELL_VERNO_PX=0
@set TOPWELL_VERNO_IN=0
@set TOPWELL_VERNO_SW=0
@set TOPWELL_VERNO2_SW=0
@if "%2%" == "NEW" @goto _GO_CONFIG_01
@if "%2%" == "COPY" @goto _GO_CONFIG_02
@if "%1%" == "ZIP" @goto _GO_CONFIG_03
@if "%1%" == "DEL" @goto _GO_CONFIG_04
@if "%1%" == "MODIS" @goto _GO_MODIS
@goto _GO_REMAKE
:_GO_CONFIG_01
@call Projects\%1%\tc_cfg.bat
@call Projects\%TOPWELL_HW%\%TOPWELL_SW%\tc_option.bat
:CONFIG_DELETE
@perl ZMC_CFILE.pl %TOPWELL_CTRL_DEL_DB%
:CONFIG_COPY
@perl ZMC_CFILE.pl %TOPWELL_CTRL_NEW_BUILD% %TOPWELL_MTK_VERNO% %TOPWELL_MTK_TOUCH% %TOPWELL_MTK_SIZE% %TOPWELL_MTK_MEMERY% %TOPWELL_HW% %TOPWELL_SW% %TOPWELL_OP% %TOPWELL_TM% %TOPWELL_RF%
:CONFIG_CRETER_USER_INFO
@perl ZMC_CFILE.pl %TOPWELL_CTRL_NEW_USER% %TOPWELL_OP%
:CONFIG_CRETER_VERSION_NO
@perl ZMC_CFILE.pl %TOPWELL_CTRL_NEW_VERNO% %TOPWELL_VERNO_HW% %TOPWELL_VERNO_PX% %TOPWELL_VERNO_IN% %TOPWELL_VERNO_SW% %TOPWELL_VERNO2_SW%
:CONFIG_CRETER_ZIP_NAME
@perl ZMC_CFILE.pl %TOPWELL_CTRL_ZIP_NAME% %TOPWELL_USER_DEF% %TOPWELL_VERNO_HW% %TOPWELL_MTK_PLAT% %TOPWELL_VERNO_PX% %TOPWELL_VERNO_SW% %TOPWELL_SW%
@goto _GO_NEW
:_GO_CONFIG_02
@call Projects\%1%\tc_cfg.bat
@call Projects\%TOPWELL_HW%\%TOPWELL_SW%\tc_option.bat
@perl ZMC_CFILE.pl %TOPWELL_CTRL_NEW_COPY% %TOPWELL_MTK_VERNO% %TOPWELL_MTK_TOUCH% %TOPWELL_MTK_SIZE% %TOPWELL_MTK_MEMERY% %TOPWELL_HW% %TOPWELL_SW% %TOPWELL_OP% %TOPWELL_TM% %TOPWELL_RF%
@goto _GO_END
:_GO_CONFIG_03
@set ZIP_VERNO_NAME=none
@call topwell_verno.bat
@perl ZMC_CFILE.pl %TOPWELL_CTRL_ZIP_BAG% %ZIP_VERNO_NAME%
@goto _GO_END
:_GO_CONFIG_04
@perl ZMC_CFILE.pl %TOPWELL_CTRL_DEL_DB%
@goto _GO_END
:_GO_NEW
make KEYTAK61D_GB_11C GPRS new
@goto _GO_END
:_GO_REMAKE
make KEYTAK61D_GB_11C GPRS %*
@goto _GO_END
:_GO_MODIS
make -debug custom=KEYTAK61D_GB_11C GPRS new_modis
:_GO_END