Option_HAL.mak
213 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
#
# Copyright Statement:
# --------------------
# This software is protected by Copyright and the information contained
# herein is confidential. The software may not be copied and the information
# contained herein may not be used or disclosed except with the written
# permission of MediaTek Inc. (C) 2005
#
# BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
# THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
# RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
# AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
# NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
# SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
# SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
# THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
# NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
# SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
#
# BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
# LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
# AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
# OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
# MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
#
# THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
# WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
# LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
# RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
# THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
# *************************************************************************
# Common include file and output directory path
# *************************************************************************
ifndef AUDLIB
ifeq ($(strip $(RVCT_VERSION)),V22)
AUDLIB = hal\audio\lib\MTKRVCT22
endif
ifeq ($(strip $(RVCT_VERSION)),V31)
AUDLIB = hal\audio\lib\MTKRVCT31
endif
endif
ifndef RTOS
RTOS = NUCLEUS
endif
ifndef RTOS_DEBUG
RTOS_DEBUG = TRUE
endif
ifeq ($(strip $(RTOS)),NUCLEUS)
COMMINCDIRS += nucleus\inc \
kal\include kal\common\include \
kal\nucleus\include \
kal\mlib\include
endif
ifeq ($(strip $(RTOS)),NUCLEUS_V2)
COMMINCDIRS += nucleus_v2\inc \
kal\include kal\common\include \
kal\nucleus\include \
kal\mlib\include
endif
ifeq ($(strip $(RTOS)),THREADX)
COMMINCDIRS += threadx\inc \
kal\include kal\common\include \
kal\threadx\include \
kal\mlib\include
endif
ifeq ($(strip $(RTOS)),NUCLEUS)
COM_DEFS += KAL_ON_NUCLEUS
ifeq ($(strip $(RTOS_DEBUG)),TRUE)
COM_DEFS += NU_DEBUG
else
COM_DEFS += NU_NO_ERROR_CHECKING
endif
endif
ifeq ($(strip $(RTOS)),NUCLEUS_V2)
COM_DEFS += KAL_ON_NUCLEUS __NUCLEUS_VERSION_2__
ifeq ($(strip $(RTOS_DEBUG)),TRUE)
COM_DEFS += NU_DEBUG
else
COM_DEFS += NU_NO_ERROR_CHECKING
endif
endif
ifeq ($(strip $(RTOS)),THREADX)
COM_DEFS += KAL_ON_THREADX
COM_DEFS += TX_ENABLE_IRQ_NESTING TX_DISABLE_NOTIFY_CALLBACKS \
TX_DISABLE_PREEMPTION_THRESHOLD TX_DISABLE_STACK_FILLING TX_REACTIVE_INLINE
ifneq ($(strip $(RTOS_DEBUG)),TRUE)
COM_DEFS += TX_DISABLE_ERROR_CHECKING
endif
endif
ifeq ($(strip $(call Upper,$(PROJECT))),L1S)
COMMINCDIRS += tst\database\unionTag
endif
ifeq ($(strip $(call Upper,$(PROJECT))),BASIC)
COMMINCDIRS += tst\database\unionTag
endif
ifeq ($(strip $(call Upper,$(PROJECT))),UDVT)
COMMINCDIRS += tst\database\unionTag \
meut\include
endif
ifeq ($(strip $(call Upper,$(PROJECT))),GSM)
COMMINCDIRS += tst\database\unionTag
endif
ifneq ($(filter $(strip $(PLATFORM)),$(UL1_HS_PLATFORM)),)
COMMINCDIRS += ul1_hs\ul1d_ext
else
COMMINCDIRS += ul1\ul1d_ext
endif
ifneq ($(call Upper,$(strip $(PROJECT))),BASIC)
COMP_TRACE_DEFS += drv\include\drv_trc.h
endif
ifneq ($(call Upper,$(strip $(PROJECT))),UDVT)
COMP_TRACE_DEFS += drv\include\drv_trc.h
endif
COMMINCDIRS += hal\drv_def
COMMINCDIRS += hal\display\lcd_power_manager\inc
COMMINCDIRS += hal\graphics\jpeg\common\inc
COMMINCDIRS += hal\lqt\include
COMMINCDIRS += hal\video\mpl\inc
COMMINCDIRS += hal\video\demuxer\mp4_parser\inc
COMMINCDIRS += hal\video\common\include
COMMINCDIRS += hal\video\renderer\include
COMMINCDIRS += hal\video\video_sec\common\include
COMMINCDIRS += hal\video\fluency\include
COMMINCDIRS += hal\video\fluency_sec\include
COMMINCDIRS += hal\video\custom
COMMINCDIRS += hal\video_codec\interface\inc
COMMINCDIRS += hal\video\demuxer\provider\inc
COMMINCDIRS += hal\system\pmu\inc
COMMINCDIRS += interface\bt
COMMINCDIRS += interface\hal
COMMINCDIRS += interface\hal\bluetooth\public
COMMINCDIRS += interface\hal\connectivity\usb_driver
COMMINCDIRS += interface\hal\display
COMMINCDIRS += interface\hal\display\ddv1
COMMINCDIRS += interface\hal\display\lcm_if
COMMINCDIRS += interface\hal\display\common
COMMINCDIRS += interface\hal\display\wfc
COMMINCDIRS += interface\hal\audio
COMMINCDIRS += interface\hal\video
COMMINCDIRS += interface\hal\drv_sw_def
COMMINCDIRS += interface\hal\storage\mc
COMMINCDIRS += interface\hal\graphics
COMMINCDIRS += interface\hal\drv_sw_def
COMMINCDIRS += interface\hal\storage\sim
COMMINCDIRS += interface\hal\peripheral
COMMINCDIRS += interface\hal\cipher\include
COMMINCDIRS += interface\meta
COMMINCDIRS += interface\wifi
COMMINCDIRS += interface\wmt
COMMINCDIRS += $(strip $(PS_FOLDER))\l4\smu\include $(strip $(PS_FOLDER))\l4\rac\include
COMMINCDIRS += $(strip $(PS_FOLDER))\interfaces\asn\rr\include
COMMINCDIRS += custom\video\$(strip $(BOARD_VER))
COMMINCDIRS += custom\video\default
COMMINCDIRS += interface\hal\opengles\MALI400MP
COMMINCDIRS += interface\hal\opengles\MALI400MP\khronos
COMMINCDIRS += interface\hal\opengles\MALI400MP\khronos\EGL
COMMINCDIRS += interface\hal\opengles\MALI400MP\khronos\GLES
COMMINCDIRS += interface\hal\opengles\MALI400MP\khronos\GLES2
COMMINCDIRS += interface\hal\opengles\MALI400MP\khronos\KHR
COMMINCDIRS += interface\hal\opengles
COMMINCDIRS += interface\hal\security
COMMINCDIRS += interface\media\video
COMMINCDIRS += $(strip $(PS_FOLDER))\smslib\include
ifeq ($(strip $(DEMO_PROJECT)),TRUE)
ifeq ($(strip $(VENDOR)),NONE)
CUS_REL_BASE_COMP += hal\graphics\bfc
CUS_REL_BASE_COMP += interface\hal\graphics
endif
else
CUS_REL_BASE_COMP += hal\graphics\bfc
CUS_REL_BASE_COMP += interface\hal\graphics
endif
COMP_TRACE_DEFS += hal\video\common\include\vcodec_v2_trc.h
CUS_REL_FILES_LIST += tst\database\log2SD_Catcher_filters.h
CUS_REL_FILES_LIST += tst\database\log2SD_Catcher_filters_FDD.ini
CUS_REL_FILES_LIST += tst\database\log2SD_Catcher_filters_TDD.ini
CUS_REL_FILES_LIST += tst\database\log2SD_Catcher_filters_2G_FDD.ini
CUS_REL_FILES_LIST += tst\database\TrcGen.lst
CUS_REL_FILES_LIST += tst\database\Pc_Cnf
CUS_REL_FILES_LIST += interface\hal\graphics\bfc_decode_api.h \
interface\hal\graphics\bfc_enum.h
CUS_REL_FILES_LIST += $(strip $(PS_FOLDER))\interfaces\enum\mm_mmi_enums.h
ifeq ($(strip $(ISP_SUPPORT)),TRUE)
COMPLIST += camera_sec
endif
COMPLIST += mtd system gfx_drv gfx_core16 gfx_core32 peripheral usb_driver
ifeq ($(strip $(GSM_PS_SUPPORT)),TRUE)
COMPLIST += sim_driver
endif
# GEMINI
ifdef GEMINI
ifneq ($(strip $(GEMINI)),FALSE)
ifneq ($(strip $(GEMINI)),2)
ifneq ($(filter __LOWCOST_MERGE_TASK__,$(COM_DEFS)),)
$(warning ERROR: __LOWCOST_MERGE_TASK__ cannot be defined when GEMINI_PLUS is larger than 2)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COMPLIST += rsva
ifndef SENDKEY_MODE
$(call DEP_ERR_ONA_OR_OFFB,SENDKEY_MODE,GEMINI)
DEPENDENCY_CONFLICT = TRUE
endif
ifdef PLATFORM
ifneq ($(filter MT6223%,$(PLATFORM)),)
ifneq ($(strip $(PLATFORM)),MT6223P)
ifeq ($(strip $(PRODUCTION_RELEASE)),TRUE)
$(call DEP_ERR_SETA_OR_OFFB,PLATFORM,MT6223P,GEMINI)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
COMP_TRACE_DEFS += l1_dm\common\l1a_trace.h
COM_DEFS += __GEMINI__ __GEMINI_GSM__ __GSM_RAT__ DRV_MULTIPLE_SIM __CTA_DUAL_SIM_STANDARD__
COM_DEFS += __L4C_ROOT__
ifneq ($(strip $(GEMINI)),2)
ifneq ($(strip $(SIM_PROVISIONING)),NONE)
$(call DEP_ERR_SETA_OR_OFFB,GEMINI,FALSE or 2,SIM_PROVISIONING)
DEPENDENCY_CONFLICT = TRUE
endif
endif
# assign GEMINI to GEMINI_PLUS_GSM
ifndef GEMINI_PLUS
GEMINI_PLUS = $(strip $(GEMINI))
endif
ifndef GEMINI_PLUS_GSM
GEMINI_PLUS_GSM = $(strip $(GEMINI))
endif
COM_DEFS += GEMINI_PLUS=$(strip $(GEMINI))
COM_DEFS += GEMINI_PLUS_GSM=$(strip $(GEMINI_PLUS_GSM))
COMPLIST += as_semaphore_utility
ifneq ($(filter MT6223P,$(strip $(PLATFORM))),)
ifdef TOUCH_PANEL_SUPPORT
ifneq ($(strip $(TOUCH_PANEL_SUPPORT)),NONE)
COM_DEFS += __DRV_SIM_TP_SHARE_PIN__
endif
endif
endif
endif
endif
# MP4_ENCODE MP4_DECODE
MP4_CODEC_NOT_SUPPORT_PLATFORM = MT6223 MT6223P MT6205B
ifndef MP4_ENCODE
MP4_ENCODE = FALSE
endif
ifndef MP4_DECODE
MP4_DECODE = FALSE
endif
ifeq ($(strip $(MP4_DECODE)),FALSE)
ifneq ($(strip $(MP4_DECODE_PROFILE)),NONE)
$(warning ERROR: MP4_DECODE_PROFILE must be NONE when MP4_DECODE = FALSE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(MP4_DECODE)),TRUE)
ifeq ($(strip $(MP4_DECODE_PROFILE)),NONE)
$(warning ERROR: MP4_DECODE_PROFILE cannot be NONE when MP4_DECODE = TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(MP4_ENCODE)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(MP4_CODEC_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support $(strip $(MP4_ENCODE)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(MP4_DECODE)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(MP4_CODEC_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support $(strip $(MP4_DECODE)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(MP4_DECODE)),TRUE)
SW_VIDEO_RESIZER_ADV_SUPPORT_PLATFORM = MT6235 MT6235B
ifneq ($(filter $(strip $(PLATFORM)),$(SW_VIDEO_RESIZER_ADV_SUPPORT_PLATFORM)),)
COM_DEFS += __SW_VIDEO_ADV_RESIZER_SUPPORT__
endif
endif
ifeq ($(strip $(MP4_ENCODE)),TRUE)
ifdef ISP_SUPPORT
ifeq ($(strip $(ISP_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,MP4_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifneq ($(strip $(AMR_CODEC)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,AMR_CODEC,MP4_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
MP4_SW_CODEC_V1_PLATFORM = MT6225
MP4_HW_CODEC_V1_PLATFORM = MT6229 MT6238 MT6239
MP4_SW_CODEC_V2_PLATFORM = MT6235 MT6235B MT6236 MT6236B MT6253 MT6253T MT6253E MT6253L MT6256 MT6276 MT6252 MT6252H MT6921 MT6255 MT6922 MT6250 MT6260 MT6261
MP4_HW_CODEC_V2_PLATFORM = MT6268 MT6268A MT6268T MT6268H
ADD_VCODEC_TRC_H_TO_COMP_TRACE_DEFS = FALSE
ifeq ($(strip $(MP4_DECODE)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(MP4_SW_CODEC_V2_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V2__
COM_DEFS += __VDEC_SUPPORT__
COM_DEFS += MP4_DECODE
COM_DEFS += __MP4_DEC_SW_SUPPORT__
COM_DEFS += __MPEG4_DEC_SUPPORT__
COM_DEFS += __MPEG4_DEC_SW_SUPPORT__
endif
ifneq ($(filter $(strip $(PLATFORM)),$(MP4_SW_CODEC_V1_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V1__
COM_DEFS += MP4_DECODE
COM_DEFS += __MP4_DEC_SW_SUPPORT__
ADD_VCODEC_TRC_H_TO_COMP_TRACE_DEFS = TRUE
endif
ifneq ($(filter $(strip $(PLATFORM)),$(MP4_HW_CODEC_V2_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V2__
COM_DEFS += __VDEC_SUPPORT__
COM_DEFS += MP4_DECODE
COM_DEFS += __MP4_DEC_HW_SUPPORT__
COM_DEFS += __MPEG4_DEC_SUPPORT__
COM_DEFS += __MPEG4_DEC_HW_SUPPORT__
endif
ifneq ($(filter $(strip $(PLATFORM)),$(MP4_HW_CODEC_V1_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V1__
COM_DEFS += MP4_DECODE
COM_DEFS += __MP4_DEC_HW_SUPPORT__
endif
endif
ifeq ($(strip $(MP4_ENCODE)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(MP4_SW_CODEC_V2_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V2__
COM_DEFS += __VENC_SUPPORT__
COM_DEFS += MP4_ENCODE
COM_DEFS += __MP4_ENC_SW_SUPPORT__
COM_DEFS += __MPEG4_ENC_SUPPORT__
COM_DEFS += __MPEG4_ENC_SW_SUPPORT__
endif
ifneq ($(filter $(strip $(PLATFORM)),$(MP4_SW_CODEC_V1_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V1__
COM_DEFS += MP4_ENCODE
COM_DEFS += __MP4_ENC_SW_SUPPORT__
ADD_VCODEC_TRC_H_TO_COMP_TRACE_DEFS = TRUE
endif
ifneq ($(filter $(strip $(PLATFORM)),$(MP4_HW_CODEC_V2_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V2__
COM_DEFS += __VENC_SUPPORT__
COM_DEFS += MP4_ENCODE
COM_DEFS += __MP4_ENC_HW_SUPPORT__
COM_DEFS += __MPEG4_ENC_SUPPORT__
COM_DEFS += __MPEG4_ENC_HW_SUPPORT__
endif
ifneq ($(filter $(strip $(PLATFORM)),$(MP4_HW_CODEC_V1_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V1__
COM_DEFS += MP4_ENCODE
COM_DEFS += __MP4_ENC_HW_SUPPORT__
endif
endif
ifdef VDOEDT_SUPPORT
VDOEDT_SUPPORT_NOT_SUPPORT_FLATFORM = MT6205B MT6208 MT6217 MT6218B MT6219 MT6226 MT6227 MT6227D MT6226D
ifeq ($(strip $(VDOEDT_SUPPORT)),TRUE)
ifneq ($(strip $(MP4_DECODE)),TRUE)
$(call DEP_ERR_SETA_OR_OFFB,MP4_DECODE,TRUE,VDOEDT_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(MP4_ENCODE)),TRUE)
$(call DEP_ERR_SETA_OR_OFFB,MP4_ENCODE,TRUE,VDOEDT_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(filter $(strip $(PLATFORM)),$(MP4_HW_CODEC_V1_PLATFORM)),)
$(warning ERROR: VDOEDT_SUPPORT require MP4_HW which is not supported by PLATFORM=$(strip $(PLATFORM)))
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter $(strip $(PLATFORM)),$(VDOEDT_SUPPORT_NOT_SUPPORT_FLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support VDOEDT_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(FINGER_TOUCH_SUPPORT)),FTE)
$(warning ERROR: VDOEDT_SUPPORT do not support FTE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(VDOEDT_SUPPORT)),TRUE)
COM_DEFS += VDOEDT_SUPPORT
COM_DEFS += __VIDEO_EDITOR__
endif
endif
NVRAM_REDUCTION_NOT_SUPPORT_PLATFORM = MT6236 MT6268
ifeq ($(filter $(strip $(PLATFORM)) ,$(NVRAM_REDUCTION_NOT_SUPPORT_PLATFORM)),)
COM_DEFS += __CAMERA_NVRAM_REDUCTION_ISP_SUPPORT__
COM_DEFS += __CAMERA_NVRAM_REDUCTION__
endif
ENABLE_M3GPMP4_FILE_FORMAT_SUPPORT_CONDITION = FALSE
ifdef MP4_DECODE
ifeq ($(strip $(MP4_DECODE)),TRUE)
ENABLE_M3GPMP4_FILE_FORMAT_SUPPORT_CONDITION = TRUE
endif
endif
ifdef MP4_ENCODE
ifeq ($(strip $(MP4_ENCODE)),TRUE)
ENABLE_M3GPMP4_FILE_FORMAT_SUPPORT_CONDITION = TRUE
endif
endif
ifdef H264_DECODE
ifeq ($(strip $(H264_DECODE)),TRUE)
ENABLE_M3GPMP4_FILE_FORMAT_SUPPORT_CONDITION = TRUE
endif
endif
ifeq ($(strip $(M4A_DECODE)),TRUE)
ENABLE_M3GPMP4_FILE_FORMAT_SUPPORT_CONDITION = TRUE
endif
ifeq ($(strip $(PURE_AUDIO_SUPPORT)),TRUE)
ENABLE_M3GPMP4_FILE_FORMAT_SUPPORT_CONDITION = TRUE
endif
ifeq ($(strip $(ENABLE_M3GPMP4_FILE_FORMAT_SUPPORT_CONDITION)),TRUE)
ifneq ($(strip $(M3GPMP4_FILE_FORMAT_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,M3GPMP4_FILE_FORMAT_SUPPORT,MP4_DECODE & MP4_ENCODE & H264_DECODE & M4A_DECODE & PURE_AUDIO_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(M3GPMP4_FILE_FORMAT_SUPPORT)),TRUE)
COM_DEFS += __M3GPMP4_FILE_FORMAT_SUPPORT__
endif
# H264_ENCODE H264_DECODE
H264_SW_CODEC_V1_PLATFORM =
H264_HW_CODEC_V1_PLATFORM = MT6238 MT6239
H264_SW_CODEC_V2_PLATFORM = MT6235 MT6235B MT6236 MT6236B MT6253 MT6253E MT6253L MT6253T MT6256 MT6276 MT6252 MT6252H MT6921 MT6255 MT6922 MT6250 MT6260 MT6261
H264_HW_CODEC_V2_PLATFORM = MT6268 MT6268A MT6268T MT6268H
ifdef H264_DECODE
ifeq ($(strip $(H264_DECODE)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(H264_SW_CODEC_V2_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V2__
COM_DEFS += __VDEC_SUPPORT__
COM_DEFS += H264_DECODE
COM_DEFS += __H264_DEC_SW_SUPPORT__
COM_DEFS += __H264_DEC_SUPPORT__
else
ifneq ($(filter $(strip $(PLATFORM)),$(H264_SW_CODEC_V1_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V1__
COM_DEFS += H264_DECODE
COM_DEFS += __H264_DEC_SW_SUPPORT__
ADD_VCODEC_TRC_H_TO_COMP_TRACE_DEFS = TRUE
else
ifneq ($(filter $(strip $(PLATFORM)),$(H264_HW_CODEC_V2_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V2__
COM_DEFS += __VDEC_SUPPORT__
COM_DEFS += H264_DECODE
COM_DEFS += __H264_DEC_HW_SUPPORT__
COM_DEFS += __H264_DEC_SUPPORT__
else
ifneq ($(filter $(strip $(PLATFORM)),$(H264_HW_CODEC_V1_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V1__
COM_DEFS += H264_DECODE
COM_DEFS += __H264_DEC_HW_SUPPORT__
else
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support H264_DECODE = TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
endif
endif
H264ENC_SW_CODEC_V2_PLATFORM = MT6276 MT6256 MT6255 MT6922 MT6260 MT6261
ifeq ($(strip $(H264_ENCODE)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(H264ENC_SW_CODEC_V2_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V2__
COM_DEFS += __VENC_SUPPORT__
COM_DEFS += H264_ENCODE
COM_DEFS += __H264_ENC_SUPPORT__
COM_DEFS += __H264_ENC_SW_SUPPORT__
else
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support H264_ENCODE = TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(H264_ENCODE)),H264_SW)
ADD_VCODEC_TRC_H_TO_COMP_TRACE_DEFS = TRUE
endif
ifeq ($(strip $(ADD_VCODEC_TRC_H_TO_COMP_TRACE_DEFS)),TRUE)
COMP_TRACE_DEFS += media\vcodec\include\vcodec_trc.h
endif
# RM_DECODE
RV_SW_CODEC_V2_PLATFORM = MT6236 MT6236B MT6253 MT6253E MT6253L MT6253T MT6276 MT6252 MT6252H MT6921 MT6256 MT6235 MT6255 MT6922 MT6250 MT6260 MT6261
ifeq ($(strip $(RM_DECODE)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(RV_SW_CODEC_V2_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V2__
COM_DEFS += __VDEC_SUPPORT__
COM_DEFS += __RM_DEC_SUPPORT__
COM_DEFS += __RV_DEC_SW_SUPPORT__
else
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support RM_DECODE = TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
H264_SW_OPEN_API_PLATFORM = MT6236 MT6921 MT6255 MT6922
H264_HW_OPEN_API_PLATFORM = MT6238
ifdef H264_OPEN_API
ifeq ($(strip $(H264_OPEN_API)),TRUE)
ifneq ($(strip $(H264_DECODE)),TRUE)
$(call DEP_ERR_SETA_OR_OFFB,H264_DECODE,TRUE,H264_OPEN_API)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter $(strip $(PLATFORM)),$(H264_SW_OPEN_API_PLATFORM)),)
COM_DEFS += __H264_SW_OPEN_API_SUPPORT__
else
ifneq ($(filter $(strip $(PLATFORM)),$(H264_HW_OPEN_API_PLATFORM)),)
COM_DEFS += __H264_HW_OPEN_API_SUPPORT__
else
$(warning ERROR: H264_OPEN_API is not supported by PLATFORM=$(strip $(PLATFORM)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
CUS_REL_FILES_LIST += media\video\h264\include\h264_open_api_video_if.h
endif
endif
# SENSOR_TYPE
RAW_SENSOR_NOT_SUPPORT_PLATFORM = MT6223 MT6223P MT6205B MT6225 MT6235 MT6235B MT6255 MT6256 MT6250 MT6260 MT6261
YUV_SENSOR_NOT_SUPPORT_PLATFORM = MT6223 MT6223P MT6205B
ifdef SENSOR_TYPE
ifneq ($(strip $(SENSOR_TYPE)),NONE)
ifeq ($(strip $(PLATFORM)),MT6223P)
ifneq ($(strip $(SENSOR_TYPE)),DIRECT)
$(warning ERROR: MT6223P only supports SENSOR_TYPE=DIRECT, please change SENSOR_TYPE value)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(CMOS_SENSOR)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR,SENSOR_TYPE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(SENSOR_TYPE)),RAW)
ifneq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_SETA_OR_ONB,SENSOR_TYPE,non RAW,ISP_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(filter $(strip $(PLATFORM)),$(RAW_SENSOR_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support SENSOR_TYPE=$(strip $(SENSOR_TYPE)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(SENSOR_TYPE)),YUV)
ifneq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_SETA_OR_ONB,SENSOR_TYPE,non YUV,ISP_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(filter $(strip $(PLATFORM)),$(YUV_SENSOR_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support SENSOR_TYPE=$(strip $(SENSOR_TYPE)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(SENSOR_TYPE)),JPEG)
ifneq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_SETA_OR_ONB,SENSOR_TYPE,non JPEG,ISP_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(filter $(strip $(PLATFORM)),$(YUV_SENSOR_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support SENSOR_TYPE=$(strip $(SENSOR_TYPE)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(SENSOR_TYPE)),DIRECT)
ifneq ($(strip $(ISP_SUPPORT)),FALSE)
$(call DEP_ERR_SETA_OR_OFFB,SENSOR_TYPE,non DIRECT,ISP_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(PLATFORM)),MT6223P)
$(warning ERROR: Only MT6223P supports SENSOR_TYPE = DIRECT)
DEPENDENCY_CONFLICT = TRUE
endif
6223_SUPPORT_LCD_SIZE = 240X320 176X220 128X160 128X128
ifeq ($(filter $(call Upper,$(strip $(MAIN_LCD_SIZE))),$(6223_SUPPORT_LCD_SIZE)),)
$(warning ERROR: $(strip $(MAIN_LCD_SIZE)) only supports $(6223_SUPPORT_LCD_SIZE) when CMOS_SENSOR is enabled)
DEPENDENCY_CONFLICT = TRUE
endif
endif
else
ifneq ($(strip $(CMOS_SENSOR)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,SENSOR_TYPE,CMOS_SENSOR)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(ISP_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,SENSOR_TYPE,ISP_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
DIRECT_IF_V2_PLATFORM = NONE
SERIAL_IF_V1_PLATFORM = MT6253E MT6253L MT6252 MT6252H MT6256 MT6276 MT6255 MT6922 MT6250 MT6260 MT6261
COM_DEFS += __SERIAL_SENSOR_V1_SUPPORT__
ifdef SENSOR_TYPE
ifneq ($(strip $(SENSOR_TYPE)),NONE)
ifdef CMOS_SENSOR
ifneq ($(strip $(CMOS_SENSOR)),NONE)
ifeq ($(strip $(SENSOR_TYPE)),RAW)
COM_DEFS += RAW_MAIN_CAMERA
endif
ifeq ($(strip $(SENSOR_TYPE)),YUV)
COM_DEFS += YUV_MAIN_CAMERA
ifneq ($(filter $(strip $(PLATFORM)),$(DIRECT_IF_V2_PLATFORM)),)
ifneq ($(findstring _DIRECT,$(CMOS_SENSOR)),)
COM_DEFS += __DIRECT_SENSOR_V2_SUPPORT__
endif
endif
ifneq ($(filter $(strip $(PLATFORM)),$(SERIAL_IF_V1_PLATFORM)),)
ifneq ($(findstring _SERIAL,$(CMOS_SENSOR)),)
COM_DEFS += __SERIAL_SENSOR_V1_SUPPORT__
endif
endif
endif
ifeq ($(strip $(SENSOR_TYPE)),JPEG)
COM_DEFS += YUV_MAIN_CAMERA
endif
ifneq ($(findstring _DIRECT,$(CMOS_SENSOR)),)
COM_DEFS += DIRECT_V2_MAIN_CAMERA
endif
ifneq ($(findstring _SERIAL,$(CMOS_SENSOR)),)
COM_DEFS += SERIAL_V1_MAIN_CAMERA
endif
endif
endif
ifdef CMOS_SENSOR_BAK1
ifneq ($(strip $(CMOS_SENSOR_BAK1)),NONE)
ifeq ($(strip $(SENSOR_TYPE)),RAW)
COM_DEFS += RAW_BAK1_CAMERA
endif
ifeq ($(strip $(SENSOR_TYPE)),YUV)
COM_DEFS += YUV_BAK1_CAMERA
ifneq ($(filter $(strip $(PLATFORM)),$(DIRECT_IF_V2_PLATFORM)),)
ifneq ($(findstring _DIRECT,$(CMOS_SENSOR_BAK1)),)
COM_DEFS += __DIRECT_SENSOR_V2_SUPPORT__
endif
endif
ifneq ($(filter $(strip $(PLATFORM)),$(SERIAL_IF_V1_PLATFORM)),)
ifneq ($(findstring _SERIAL,$(CMOS_SENSOR_BAK1)),)
COM_DEFS += __SERIAL_SENSOR_V1_SUPPORT__
endif
endif
endif
ifeq ($(strip $(SENSOR_TYPE)),JPEG)
COM_DEFS += YUV_BAK1_CAMERA
endif
ifneq ($(findstring _DIRECT,$(CMOS_SENSOR_BAK1)),)
COM_DEFS += DIRECT_V2_BAK1_CAMERA
endif
ifneq ($(findstring _SERIAL,$(CMOS_SENSOR_BAK1)),)
COM_DEFS += SERIAL_V1_BAK1_CAMERA
endif
endif
endif
endif
endif
ifdef SENSOR_TYPE_SUB
ifneq ($(strip $(SENSOR_TYPE_SUB)),NONE)
ifdef CMOS_SENSOR_SUB
ifneq ($(strip $(CMOS_SENSOR_SUB)),NONE)
ifeq ($(strip $(SENSOR_TYPE_SUB)),RAW)
COM_DEFS += RAW_SUB_CAMERA
endif
ifeq ($(strip $(SENSOR_TYPE_SUB)),YUV)
COM_DEFS += YUV_SUB_CAMERA
ifneq ($(filter $(strip $(PLATFORM)),$(DIRECT_IF_V2_PLATFORM)),)
ifneq ($(findstring _DIRECT,$(CMOS_SENSOR_SUB)),)
COM_DEFS += __DIRECT_SENSOR_V2_SUPPORT__
endif
endif
ifneq ($(filter $(strip $(PLATFORM)),$(SERIAL_IF_V1_PLATFORM)),)
ifneq ($(findstring _SERIAL,$(CMOS_SENSOR_SUB)),)
COM_DEFS += __SERIAL_SENSOR_V1_SUPPORT__
endif
endif
endif
ifeq ($(strip $(SENSOR_TYPE_SUB)),JPEG)
COM_DEFS += YUV_SUB_CAMERA
endif
ifneq ($(findstring _DIRECT,$(CMOS_SENSOR_SUB)),)
COM_DEFS += DIRECT_V2_SUB_CAMERA
endif
ifneq ($(findstring _SERIAL,$(CMOS_SENSOR_SUB)),)
COM_DEFS += SERIAL_V1_SUB_CAMERA
endif
endif
endif
ifdef CMOS_SENSOR_SUB_BAK1
ifneq ($(strip $(CMOS_SENSOR_SUB_BAK1)),NONE)
ifeq ($(strip $(SENSOR_TYPE_SUB)),RAW)
COM_DEFS += RAW_SUB_BAK1_CAMERA
endif
ifeq ($(strip $(SENSOR_TYPE_SUB)),YUV)
COM_DEFS += YUV_SUB_BAK1_CAMERA
ifneq ($(filter $(strip $(PLATFORM)),$(DIRECT_IF_V2_PLATFORM)),)
ifneq ($(findstring _DIRECT,$(CMOS_SENSOR_SUB_BAK1)),)
COM_DEFS += __DIRECT_SENSOR_V2_SUPPORT__
endif
endif
ifneq ($(filter $(strip $(PLATFORM)),$(SERIAL_IF_V1_PLATFORM)),)
ifneq ($(findstring _SERIAL,$(CMOS_SENSOR_SUB_BAK1)),)
COM_DEFS += __SERIAL_SENSOR_V1_SUPPORT__
endif
endif
endif
ifeq ($(strip $(SENSOR_TYPE_SUB)),JPEG)
COM_DEFS += YUV_SUB_BAK1_CAMERA
endif
ifneq ($(findstring _DIRECT,$(CMOS_SENSOR_SUB_BAK1)),)
COM_DEFS += DIRECT_V2_SUB_BAK1_CAMERA
endif
ifneq ($(findstring _SERIAL,$(CMOS_SENSOR_SUB_BAK1)),)
COM_DEFS += SERIAL_V1_SUB_BAK1_CAMERA
endif
endif
endif
endif
endif
# GPS_SUPPORT
ifdef GPS_SUPPORT
ifneq ($(strip $(GPS_SUPPORT)),NONE)
COMP_TRACE_DEFS += gps\inc\gps_trc.h
COMP_TRACE_DEFS += gps\bee\inc\bee_trc.h
COMP_TRACE_DEFS += gps\mnl\include\mnl_trc.h
endif
endif
ifdef GPS_SUPPORT
ifneq ($(strip $(GPS_SUPPORT)),NONE)
COM_DEFS += __GPS_SUPPORT__
ifeq ($(strip $(GPS_UART_PORT)),UART3) # GPS module is connected to UART3
COM_DEFS += __GPS_USE_UART3__
else
COM_DEFS += __GPS_USE_UART2__
COM_DEFS += __ONLY_ONE_UART__
endif
ifeq ($(strip $(MMI_VERSION)),EMPTY_MMI)
COM_DEFS += __FEATURE_PHONE_MODEM__
endif
COMPLIST += gps gps_sec
ifeq ($(strip $(GPS_SUPPORT)),MT3316)
COM_DEFS += __GPS_MT3316__
endif
ifeq ($(strip $(GPS_SUPPORT)),MT3326)
COM_DEFS += __GPS_MT3326__ __MNL_SUPPORT__
COMPLIST += mnl
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += gps\mnl\lib\MTKNav_rvct.lib
CUS_REL_OBJ_LIST += gps\mnl\lib\MTKNav_rvct.lib
else
COMPOBJS += gps\mnl\lib\MTKNav.lib
CUS_REL_OBJ_LIST += gps\mnl\lib\MTKNav.lib
endif
endif
ifeq ($(strip $(GPS_SUPPORT)),MT3336) # GPS MT3336
COM_DEFS += __GPS_MT3336__ __MNL_SUPPORT__
COMPLIST += mnl
ifeq ($(strip $(MTK_SUBSIDIARY)),TRUE)
CUS_REL_BASE_COMP += gps\mnl\lib_internal\MT3336
CUS_REL_OBJ_LIST += gps\mnl\lib\MT3336\MTKNav_WIN32.lib
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += gps\mnl\lib_internal\MT3336\MTKNav_rvct_internal.lib
CUS_REL_OBJ_LIST += gps\mnl\lib_internal\MT3336\MTKNav_rvct_internal.lib
else
COMPOBJS += gps\mnl\lib_internal\MT3336\MTKNav_internal.lib
CUS_REL_OBJ_LIST += gps\mnl\lib_internal\MT3336\MTKNav_internal.lib
endif
else
CUS_REL_BASE_COMP += gps\mnl\lib\MT3336
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += gps\mnl\lib\MT3336\MTKNav_rvct.lib
CUS_REL_OBJ_LIST += gps\mnl\lib\MT3336\MTKNav_rvct.lib
else
COMPOBJS += gps\mnl\lib\MT3336\MTKNav.lib
CUS_REL_OBJ_LIST += gps\mnl\lib\MT3336\MTKNav.lib
endif
endif
endif
ifeq ($(strip $(GPS_SUPPORT)),MT3332) # GPS MT3332
COM_DEFS += __GPS_MT3332__ __MNL_SUPPORT__
COM_DEFS += __GLONASS_SUPPORT__
# COM_DEFS += __GALILEO_SUPPORT__
# COM_DEFS += __COMPASS_SUPPORT__
COMPLIST += mnl
ifeq ($(strip $(MTK_SUBSIDIARY)),TRUE)
CUS_REL_BASE_COMP += gps\mnl\lib_internal\MT3332
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += gps\mnl\lib_internal\MT3332\MTKNav_rvct_internal.lib
CUS_REL_OBJ_LIST += gps\mnl\lib_internal\MT3332\MTKNav_rvct_internal.lib
else
COMPOBJS += gps\mnl\lib_internal\MT3332\MTKNav_internal.lib
CUS_REL_OBJ_LIST += gps\mnl\lib_internal\MT3332\MTKNav_internal.lib
endif
else
CUS_REL_BASE_COMP += gps\mnl\lib\MT3332
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += gps\mnl\lib\MT3332\MTKNav_rvct.lib
CUS_REL_OBJ_LIST += gps\mnl\lib\MT3332\MTKNav_rvct.lib
else
COMPOBJS += gps\mnl\lib\MT3332\MTKNav.lib
CUS_REL_OBJ_LIST += gps\mnl\lib\MT3332\MTKNav.lib
endif
endif
endif
ifeq ($(strip $(EMPTY_RESOURCE)),FALSE)
CUS_REL_BASE_COMP += gps\mnl make\mnl
endif
endif
endif
ifeq ($(strip $(GPS_HS_SUPPORT)),TRUE)
ifneq ($(strip $(GPS_SUPPORT)),MT3326)
ifneq ($(strip $(GPS_SUPPORT)),MT3336)
ifneq ($(strip $(GPS_SUPPORT)),MT3332)
$(call DEP_ERR_SETA_OR_OFFB,GPS_SUPPORT,MT3332,GPS_HS_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
COM_DEFS += __BEE_SUPPORT__
COMPLIST += bee
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += gps\bee\lib\MTK_HS_rvct.lib
CUS_REL_OBJ_LIST += gps\bee\lib\MTK_HS_rvct.lib
else
COMPOBJS += gps\bee\lib\MTK_HS.lib
CUS_REL_OBJ_LIST += gps\bee\lib\MTK_HS.lib
endif
CUS_REL_FILES_LIST += gps\bee\lib\MTK_HS_WIN32.lib
endif
ifneq ($(strip $(DSP_SOLUTION)),DUALMACDSP)
COM_DEFS += IDMA_DOWNLOAD
endif
ifeq ($(strip $(call Upper,$(PROJECT))),BASIC)
ifeq ($(strip $(MMI_VERSION)),EMPTY_MMI)
COM_DEFS += EMPTY_MMI
endif
endif
ifeq ($(strip $(call Upper,$(PROJECT))),UDVT)
ifeq ($(strip $(MMI_VERSION)),EMPTY_MMI)
COM_DEFS += EMPTY_MMI
endif
endif
ifeq ($(strip $(call Upper,$(PROJECT))),L1S)
ifeq ($(strip $(MMI_VERSION)),EMPTY_MMI)
COM_DEFS += EMPTY_MMI
endif
endif
ifneq ($(strip $(DSP_SOLUTION)),DUALMACDSP)
ifdef SMART_PHONE_CORE
ifeq ($(strip $(SMART_PHONE_CORE)),NONE)
COMP_TRACE_DEFS += hal\audio\src\v1\inc\l1sp_trc.h
endif
else
COMP_TRACE_DEFS += hal\audio\src\v1\inc\l1sp_trc.h
endif
endif
ifneq ($(strip $(MODIS_CONFIG)),TRUE)
ifeq ($(filter __MAUI_BASIC__,$(COM_DEFS)),)
ifneq ($(strip $(DSP_SOLUTION)),DUALMACDSP)
ifdef SMART_PHONE_CORE
ifeq ($(strip $(SMART_PHONE_CORE)),NONE)
COMP_TRACE_DEFS += hal\audio\src\v1\inc\l1audio_sph_trc.h
endif
else
COMP_TRACE_DEFS += hal\audio\src\v1\inc\l1audio_sph_trc.h
endif
endif
endif
endif
ifdef CMUX_SUPPORT
ifeq ($(strip $(CMUX_SUPPORT)),TRUE)
COMP_TRACE_DEFS += $(strip $(PS_FOLDER))\cmux\include\cmux_trc.h
COMMINCDIRS += $(strip $(PS_FOLDER))\cmux\include
endif
endif
ifdef DT_SUPPORT
ifneq ($(strip $(DT_SUPPORT)),FALSE)
ifeq ($(filter L1S BASIC UDVT,$(strip $(call Upper,$(PROJECT)))),)
COMP_TRACE_DEFS += $(strip $(PS_FOLDER))\dt\include\dt_trc.h
endif
endif
endif
ifeq ($(filter L1S BASIC UDVT,$(strip $(call Upper,$(PROJECT)))),)
COMP_TRACE_DEFS += $(strip $(PS_FOLDER))\ems\include\ems_trc.h
ifneq ($(filter __MTK_3G_MRAT_ARCH__,$(strip $(COM_DEFS))),)
COMP_TRACE_DEFS += $(strip $(PS_FOLDER))\rr2\mpal\include\mpal_trace.h
else
ifeq ($(strip $(call Upper,$(PROJECT))),GPRS)
COMP_TRACE_DEFS += $(strip $(PS_FOLDER))\rr\mpal\include\mpal_trace.h
COMMINCDIRS += $(strip $(PS_FOLDER))\rr\mpal\include
endif
ifeq ($(strip $(call Upper,$(PROJECT))),GSM)
COMP_TRACE_DEFS += $(strip $(PS_FOLDER))\rr\mpal\include\mpal_trace.h
COMMINCDIRS += $(strip $(PS_FOLDER))\rr\mpal\include
endif
endif
endif
ifneq ($(filter TDD128 TDD128DPA TDD128HSPA,$(strip $(call Upper,$(PROJECT)))),)
COMP_TRACE_DEFS += ll1\include\ll1_trc.h
endif
ifeq ($(strip $(call Upper,$(PROJECT))),GSM)
ifneq ($(filter __MTK_3G_MRAT_ARCH__,$(strip $(COM_DEFS))),)
L1_TMD_FILES += l1_dm\common\l1D_EDGE_trace.tmd
else
L1_TMD_FILES += l1\common\l1D_EDGE_trace.tmd
endif
endif
L1_TMD_FILES += hal\sleep_drv\common\DCXO_DIV_Trace1.tmd \
hal\sleep_drv\common\OSTD_Trace1.tmd \
hal\sleep_drv\common\SleepDrv_Trace1.tmd \
hal\sleep_drv\common\MD_TOPSM_Trace1.tmd
ifneq ($(filter __MTK_3G_MRAT_ARCH__,$(strip $(COM_DEFS))),)
L1_TMD_FILES += l1_dm\common\L1D3_Trace.tmd \
l1_dm\common\l1c3_Trace.tmd \
l1_dm\common\l1c4_Trace.tmd \
l1_dm\common\l1c5_Trace.tmd
L1_TMD_FILES += md_sm\common\l1sm\L1SM_Trace1.tmd
else
ifeq ($(call Upper,$(strip $(L1_WCDMA))),TRUE)
L1_TMD_FILES += l1_dm\common\L1D3_Trace.tmd \
l1_dm\common\l1c3_Trace.tmd \
l1_dm\common\l1c4_Trace.tmd \
l1_dm\common\l1c5_Trace.tmd
L1_TMD_FILES += md_sm\common\l1sm\L1SM_Trace1.tmd
else
L1_TMD_FILES += l1\common\L1D3_Trace.tmd \
l1\common\l1c3_Trace.tmd \
l1\common\l1c4_Trace.tmd \
l1\common\l1c5_Trace.tmd
endif
endif
COMP_TRACE_DEFS += hal\dp_engine\dp_engine_trc.h
# ---------------------------------------------------------------
# The followings are global options from $(Customer)_$(Project).bld
# ---------------------------------------------------------------
# Platform Options
COM_DEFS_FOR_MT6208 = MT6208
COM_DEFS_FOR_MT6205 = MT6205 __HW_DIVIDER__
COM_DEFS_FOR_MT6205B = MT6205B __HW_DIVIDER__
COM_DEFS_FOR_FPGA = FPGA
COM_DEFS_FOR_MT6218 = MT6218 __HW_DIVIDER__
COM_DEFS_FOR_MT6218B = MT6218B __HW_DIVIDER__ MT6218B_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6217 = MT6217 __HW_DIVIDER__ MT6217_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6219 = MT6219 __HW_DIVIDER__ MT6219_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6228 = MT6228 __HW_DIVIDER__ MT6228_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6229 = MT6229 __HW_DIVIDER__ MT6229_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6235 = MT6235 __HW_DIVIDER__ MT6235_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6235B = MT6235B __HW_DIVIDER__ MT6235B_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6236 = MT6236 __HW_DIVIDER__ MT6236_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6921 = MT6236 __HW_DIVIDER__ MT6236_$(strip $(CHIP_VER)) MT6921
COM_DEFS_FOR_MT6236B = MT6236B __HW_DIVIDER__ MT6236B_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6256 = MT6256 __HW_DIVIDER__ MT6256_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6238 = MT6238 __HW_DIVIDER__ MT6238_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6239 = MT6239 __HW_DIVIDER__ MT6239_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6230 = MT6230 __HW_DIVIDER__ MT6230_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6227 = MT6227 __HW_DIVIDER__ MT6227_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6227D = MT6227D __HW_DIVIDER__ MT6227D_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6226 = MT6226 __HW_DIVIDER__ MT6226_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6226D = MT6226D __HW_DIVIDER__ MT6226D_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6226M = MT6226M __HW_DIVIDER__ MT6226M_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6225 = MT6225 __HW_DIVIDER__ MT6225_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6223 = MT6223 __HW_DIVIDER__ MT6223_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6223P = MT6223P __HW_DIVIDER__ MT6223P_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6268T = MT6268T __HW_DIVIDER__ MT6268T_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6268H = MT6268H __HW_DIVIDER__ MT6268H_$(strip $(CHIP_VER))
COM_DEFS_FOR_TK6516 = TK6516 __HW_DIVIDER__ TK6516_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6516 = MT6516 __HW_DIVIDER__ MT6516_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6516AP = MT6516AP __HW_DIVIDER__ MT6516AP_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6268A = MT6268A __HW_DIVIDER__ MT6268A_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6268 = MT6268 __HW_DIVIDER__ MT6268_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6276 = MT6276 __HW_DIVIDER__ MT6276_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6270A = MT6270A __HW_DIVIDER__ MT6270A_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6253T = MT6253T __HW_DIVIDER__ MT6253T_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6253 = MT6253 __HW_DIVIDER__ MT6253_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6253E = MT6253E __HW_DIVIDER__ MT6253E_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6253L = MT6253L __HW_DIVIDER__ MT6253L_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6251 = MT6251 __HW_DIVIDER__ MT6251_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6573 = MT6573 __HW_DIVIDER__ MT6573_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6252 = MT6252 __HW_DIVIDER__ MT6252_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6252H = MT6252H __HW_DIVIDER__ MT6252H_$(strip $(CHIP_VER))
COM_DEFS_FOR_ASTRO36V2_DEMO_AD6546 = AD6546_RF ASTRO36V2_DEMO_AD6546
COM_DEFS_FOR_MT6255 = MT6255 __HW_DIVIDER__ MT6255_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6922 = MT6255 __HW_DIVIDER__ MT6255_$(strip $(CHIP_VER)) MT6922
COM_DEFS_FOR_MT6250 = MT6250 __HW_DIVIDER__ MT6250_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6260 = MT6260 __HW_DIVIDER__ MT6260_$(strip $(CHIP_VER))
COM_DEFS_FOR_MT6261 = MT6261 MT6261_$(strip $(CHIP_VER))
COM_DEFS_FOR_PLATFORM = COM_DEFS_FOR_$(strip $(PLATFORM))
ifdef $(COM_DEFS_FOR_PLATFORM)
COM_DEFS += $(COM_DEFS_FOR_$(strip $(PLATFORM)))
else
$(warning ERROR: [COM_DEFS_FOR_$(strip $(PLATFORM))] was not defined)
DEPENDENCY_CONFLICT = TRUE
endif
# RF Module Options
# Move to project.mak except EVB
COM_DEFS_FOR_BRIGHT4 = BRIGHT4_RF BRIGHT4_EVB
COM_DEFS_FOR_EUROPA = MT6129C_RF EUROPA_EVB
COM_DEFS_FOR_FOUNTAIN2 = MT6119C_RF FOUNTAIN2_EVB FOUNTAIN2_RF
COM_DEFS_FOR_MT6129C = MT6129C_RF MT6129C_EVB
COM_DEFS_FOR_MT6129D = MT6129D_RF MT6129D_EVB
COM_DEFS_FOR_MT6139B = MT6139B_RF MT6139B_EVB
COM_DEFS_FOR_MT6139C = MT6139C_RF MT6139C_EVB
COM_DEFS_FOR_MT6139E = MT6139E_RF MT6139E_EVB
COM_DEFS_FOR_MT6140A = MT6140A_RF MT6140A_EVB
COM_DEFS_FOR_MT6140C = MT6140C_RF MT6140C_EVB
COM_DEFS_FOR_MT6140D = MT6140D_RF MT6140D_EVB
COM_DEFS_FOR_SKY74117 = SKY74117_RF SKY74117_EVB
COM_DEFS_FOR_SKY74137 = SKY74137_RF SKY74137_EVB
COM_DEFS_FOR_SKY74045 = SKY74045_RF SKY74045_EVB
COM_DEFS_FOR_BRIGHT5P = BRIGHT5P_RF BRIGHT5P_EVB
COM_DEFS_FOR_AERO2 = AERO2_RF AERO2_EVB
COM_DEFS_FOR_SONY_CXA3359 = SONY_CXA3359_RF SONY_CXA3359_EVB
COM_DEFS_FOR_SMARTI3G = SMARTI3G_RF SMARTI3G_EVB
COM_DEFS_FOR_MTKSOC1 = MTKSOC1_RF MTKSOC1_EVB
COM_DEFS_FOR_MT6253ELRF = MT6253ELRF_RF MT6253ELRF_EVB
COM_DEFS_FOR_MT6250RF = MT6250RF_RF MT6250RF_EVB
COM_DEFS_FOR_MT6250RF_CUSTOM = MT6250RF_RF MT6250RF_CUSTOM
COM_DEFS_FOR_MT6260RF = MT6260RF_RF MT6260RF_EVB
COM_DEFS_FOR_MT6260RF_CUSTOM = MT6260RF_RF MT6260RF_CUSTOM
COM_DEFS_FOR_MT6261RF = MT6261RF_RF MT6261RF_EVB
COM_DEFS_FOR_MT6261RF_CUSTOM = MT6261RF_RF MT6261RF_CUSTOM
COM_DEFS_FOR_MT6255RF = MT6255RF_RF MT6255RF_EVB
COM_DEFS_FOR_MT6255RF_CUSTOM = MT6255RF_RF MT6255RF_CUSTOM
COM_DEFS_FOR_MT6922RF = MT6922RF_RF MT6922RF_EVB
COM_DEFS_FOR_MT6922RF_CUSTOM = MT6922RF_RF MT6922RF_CUSTOM
COM_DEFS_FOR_MT6256RF = MT6256RF_RF MT6256RF_EVB
COM_DEFS_FOR_MT6256RF_CUSTOM = MT6256RF_RF MT6256RF_CUSTOM
COM_DEFS_FOR_MT6251RF = MT6251RF_RF MT6251RF_EVB
COM_DEFS_FOR_MT6251RF_CUSTOM = MT6251RF_RF MT6251RF_CUSTOM
COM_DEFS_FOR_SPARROW51_DEMO_MT6251RF = MT6251RF_RF SPARROW51_DEMO_MT6251RF
COM_DEFS_FOR_SPARROW51V2_DEMO_MT6251RF = MT6251RF_RF SPARROW51V2_DEMO_MT6251RF
COM_DEFS_FOR_MT6160 = MT6160_RF MT6160_EVB
COM_DEFS_FOR_AD6546 = AD6546_RF AD6546_EVB
COM_DEFS_FOR_TECHFAITH68_DEMO_MT6160 = MT6160_RF TECHFAITH68_DEMO_MT6160
COM_DEFS_FOR_TECHFAITH68_DEMO_AD6546 = AD6546_RF TECHFAITH68_DEMO_AD6546
COM_DEFS_FOR_MT6162 = MT6162_RF MT6162_EVB
COM_DEFS_FOR_MT6163_2G = MT6163_2G_RF MT6163_2G_EVB
COM_DEFS_FOR_NAMI70_DEMO_MT6162 = MT6162_RF NAMI70_DEMO_MT6162
COM_DEFS_FOR_LION52V2_NC_128X128_DEMO_MT6252RF = MT6252RF_RF LION52V2_NC_128X128_DEMO_MT6252RF
COM_DEFS_FOR_LION52H_V2_6432_MT6252RF = MT6252RF_RF LION52H_V2_6432_MT6252RF
COM_DEFS_FOR_LION52_V2_DEMO_MT6252RF = MT6252RF_RF LION52_V2_DEMO_MT6252RF
COM_DEFS_FOR_LION52V2_NC_128X128_DEMO_MT6252RF = MT6252RF_RF LION52V2_NC_128X128_DEMO_MT6252RF
COM_DEFS_FOR_LION52V2_NB_96X64_DEMO_MT6252RF = MT6252RF_RF LION52V2_NB_96X64_DEMO_MT6252RF
# For Customer projects.
COM_DEFS_FOR_MT6140_CUSTOM = MT6140D_RF MT6140_CUSTOM
COM_DEFS_FOR_MT6139_CUSTOM = MT6139E_RF MT6139_CUSTOM
COM_DEFS_FOR_MT6129_CUSTOM = MT6129D_RF MT6129_CUSTOM
COM_DEFS_FOR_AD6548_CUSTOM = AD6548_RF AD6548_CUSTOM
COM_DEFS_FOR_AD6546_CUSTOM = AD6546_RF AD6546_CUSTOM
COM_DEFS_FOR_MT6162_CUSTOM = MT6162_RF MT6162_CUSTOM
COM_DEFS_FOR_MT6163_2G_CUSTOM = MT6163_2G_RF MT6163_2G_CUSTOM
COM_DEFS_FOR_SKY74137_CUSTOM = SKY74137_RF SKY74137_CUSTOM
COM_DEFS_FOR_UNICORN53_DEMO_MTKSOC1 = MTKSOC1_RF UNICORN53_DEMO_MTKSOC1
COM_DEFS_FOR_UNICORN53V2_DEMO_MTKSOC1 = MTKSOC1_RF UNICORN53V2_DEMO_MTKSOC1
COM_DEFS_FOR_UNICORN53V3_DEMO_MTKSOC1 = MTKSOC1_RF UNICORN53V3_DEMO_MTKSOC1
COM_DEFS_FOR_UNICORN53V4_DEMO_MTKSOC1 = MTKSOC1_RF UNICORN53V4_DEMO_MTKSOC1
COM_DEFS_FOR_UNICORN53V3_DEMO_GSM_MTKSOC1 = MTKSOC1_RF UNICORN53V3_DEMO_GSM_MTKSOC1
COM_DEFS_FOR_MT6161_AST = MT6161_RF
CUS_REL_BASE_COMP += custom\l1_rf\MT6140_CUSTOM custom\l1_rf\MT6139_CUSTOM \
custom\l1_rf\MT6129_CUSTOM custom\l1_rf\SKY74137_CUSTOM \
custom\l1_rf\AD6548_CUSTOM custom\l1_rf\AD6546_CUSTOM \
custom\l1_rf\MT6251RF_CUSTOM
COM_DEFS_FOR_RF_MODULE = COM_DEFS_FOR_$(strip $(RF_MODULE))
ifdef $(COM_DEFS_FOR_RF_MODULE)
COM_DEFS += $(COM_DEFS_FOR_$(strip $(RF_MODULE)))
else
$(warning ERROR: [COM_DEFS_FOR_$(strip $(RF_MODULE))] was not defined)
DEPENDENCY_CONFLICT = TRUE
endif
ifdef UMTS_RF_MODULE
COM_DEFS_FOR_RF_MODULE = COM_DEFS_FOR_$(strip $(UMTS_RF_MODULE))
ifdef $(COM_DEFS_FOR_RF_MODULE)
COM_DEFS += $(COM_DEFS_FOR_$(strip $(UMTS_RF_MODULE)))
else
$(warning ERROR: [COM_DEFS_FOR_$(strip $(UMTS_RF_MODULE))] was not defined)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifdef UMTS_TDD128_RF_MODULE
COM_DEFS_FOR_RF_MODULE = COM_DEFS_FOR_$(strip $(UMTS_TDD128_RF_MODULE))
ifdef $(COM_DEFS_FOR_RF_MODULE)
COM_DEFS += $(COM_DEFS_FOR_$(strip $(UMTS_TDD128_RF_MODULE)))
else
$(warning ERROR: [COM_DEFS_FOR_$(strip $(UMTS_TDD128_RF_MODULE))] was not defined)
DEPENDENCY_CONFLICT = TRUE
endif
endif
# check AFC_VCXO_TYPE matches RF_MODULE
ifdef AFC_VCXO_TYPE
ifdef RF_MODULE
VCXO_PLATFORM = MT6139B MT6139C MT6139E
ifneq ($(filter $(strip $(RF_MODULE)),$(VCXO_PLATFORM)),)
ifneq ($(strip $(AFC_VCXO_TYPE)),VCXO)
ifeq ($(filter MT6268A MT6268 MT6270A MT6276,$(strip $(PLATFORM))),)
$(warning ERROR: MT6139 series RF_MODULE project must set AFC_VCXO_TYPE = VCXO )
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
VCTCXO_RF_MODULE_LIST = MT6129D MT6129 MT6119 BRIGHT4 MT6140A SKY74117 SKY74045 BRIGHT5P FOUNTAIN
ifneq ($(filter $(strip $(VCTCXO_RF_MODULE_LIST)),$(strip $(RF_MODULE))),)
VCTCXO_RF_MODULE = $(filter $(strip $(VCTCXO_RF_MODULE_LIST)),$(strip $(RF_MODULE)))
ifneq ($(strip $(AFC_VCXO_TYPE)),VCTCXO)
$(warning WARNING $(VCTCXO_RF_MODULE) series RF_MODULE project must set AFC_VCXO_TYPE = VCTCXO )
endif
endif
VCXO_RF_MODULE_LIST = AERO MT6139
ifneq ($(filter $(strip $(VCXO_RF_MODULE_LIST)),$(strip $(RF_MODULE))),)
VCXO_RF_MODULE = $(filter $(strip $(VCXO_RF_MODULE_LIST)),$(strip $(RF_MODULE)))
ifneq ($(strip $(AFC_VCXO_TYPE)),VCXO)
$(warning WARNING $(VCXO_RF_MODULE) series RF_MODULE project must set AFC_VCXO_TYPE = VCXO )
endif
endif
endif
endif
# Board Options
ifneq ($(strip $(BOARD_VER)),)
COM_DEFS += $(BOARD_VER)
endif
# Board Subversion
ifneq ($(strip $(SUB_BOARD_VER)),)
COM_DEFS += $(SUB_BOARD_VER)
endif
# LCD Module Options
# Move to project.mak except EVB
COM_DEFS_FOR_KLMLCM = PCF8833 COLOR_LCD S6B1713 KLMLCM
COM_DEFS_FOR_MTKLCM_COLOR = S1D15G00 COLOR_LCD MTKLCM_COLOR
COM_DEFS_FOR_NEPTUNE_LCM = S6B33B1X COLOR_LCD NEPTUNE_LCM STN_MAINLCD
COM_DEFS_FOR_POWERTIP_LCM = S6B33B1X COLOR_LCD POWERTIP_LCM STN_MAINLCD
COM_DEFS_FOR_SONY_LCM = SONY_LCM TFT_MAINLCD
COM_DEFS_FOR_TOPPOLY_LCM = TOPPOLY_LCM TFT_MAINLCD
COM_DEFS_FOR_RENESAS_LCM = HD66781 COLOR_LCD HD66791 COLOR_SUBLCD DUAL_LCD RENESAS_LCM TFT_MAINLCD
COM_DEFS_FOR_TAURUS_LCM = S6B33B2A COLOR_LCD S6B0756 TAURUS_LCM
COM_DEFS_FOR_PHOENIX29_LCM = PHOENIX29_LCM TFT_MAINLCD
COM_DEFS_FOR_FIREFLY_LCM = WSX6396A COLOR_LCD SSD1773 COLOR_SUBLCD FIREFLY_LCM TFT_MAINLCD STN_SUBLCD
COM_DEFS_FOR_MTK6225_LCM = MTK6225_LCM TFT_MAINLCD
COM_DEFS_FOR_TOP_6227_LCM = TOP_6227_LCM TFT_MAINLCD
COM_DEFS_FOR_LIBRA35_LCM = LIBRA35_LCM TFT_MAINLCD
COM_DEFS_FOR_WISTRON_2P8_WQVGA_LCM = S6D0170 COLOR_LCD WISTRON_2P8_WQVGA_LCM TFT_MAINLCD
COM_DEFS_FOR_AUO_VGA_LCM = SSD1961 COLOR_LCD AUO_VGA_LCM TFT_MAINLCD
COM_DEFS_FOR_TRULY_HVGA_LCM = TA7601 COLOR_LCD TRULY_HVGA_LCM TFT_MAINLCD
COM_DEFS_FOR_UNICORN53_DEMO_LCM = ILI9325DS COLOR_LCD UNICORN53_DEMO_LCM TFT_MAINLCD
COM_DEFS_FOR_WISTRON_NHD_DEMO_LCM = ILI9640 COLOR_LCD WISTRON_NHD_DEMO_LCM TFT_MAINLCD
COM_DEFS_FOR_WISTRON_QCIF_DEMO_LCM = HX8340B COLOR_LCD WISTRON_QCIF_DEMO_LCM TFT_MAINLCD
COM_DEFS_FOR_TRULY_WVGA_DEMO_LCM = NT35582 COLOR_LCD TRULY_WVGA_DEMO_LCM TFT_MAINLCD
COM_DEFS_FOR_TRULY_WVGA_LCM = NT35582 COLOR_LCD TRULY_WVGA_LCM TFT_MAINLCD
COM_DEFS_FOR_MT6252_R61529_LCM = TFT_MAINLCD COLOR_LCD MT6252_R61529_LCM
COM_DEFS_FOR_WISTRON_DUAL_DEMO_LCM = HX8340B COLOR_LCD WISTRON_DUAL_DEMO_LCM TFT_MAINLCD COLOR_SUBLCD DUAL_LCD
COM_DEFS_FOR_TRULY_HVGA_IPS320480_52_LCM = IPS320480_52 COLOR_LCD TRULY_HVGA_IPS320480_52_LCM TFT_MAINLCD
COM_DEFS_FOR_MT6250_ILI9486_HVGA_LCM = ILI9486 COLOR_LCD MT6250_ILI9486_HVGA_LCM TFT_MAINLCD
COM_DEFS_FOR_KUBLAI50_V11_DEMO_LCM = ST7735 COLOR_LCD KUBLAI50_V11_DEMO_LCM TFT_MAINLCD
COM_DEFS_FOR_TRULY_QVGA_HX8347I_LCM = HX8347I COLOR_LCD TRULY_QVGA_HX8347I_LCM TFT_MAINLCD
COM_DEFS_FOR_TRULY_HVGA_IPS320480_52_LCM_16BIT = IPS320480_52 COLOR_LCD TRULY_HVGA_IPS320480_52_LCM_16BIT TFT_MAINLCD
COM_DEFS_FOR_COMBO_LCM = COMBO_LCM COLOR_LCD TFT_MAINLCD
COM_DEFS_FOR_LCD_MODULE = COM_DEFS_FOR_$(strip $(LCD_MODULE))
ifdef $(COM_DEFS_FOR_LCD_MODULE)
COM_DEFS += $(COM_DEFS_FOR_$(strip $(LCD_MODULE)))
else
$(warning ERROR: No COM_DEFS for LCD_MODULE = $(strip $(LCD_MODULE))!)
DEPENDENCY_CONFLICT = TRUE
endif
# BAND_SUPPORT Options
COM_DEFS_FOR_PGSM900 = __PGSM900__
COM_DEFS_FOR_EGSM900 = __EGSM900__
COM_DEFS_FOR_RGSM900 = __RGSM900__
COM_DEFS_FOR_DCS1800 = __DCS1800__
COM_DEFS_FOR_PCS1900 = __PCS1900__
COM_DEFS_FOR_GSM850 = __GSM850__
COM_DEFS_FOR_GSM450 = __GSM450__
COM_DEFS_FOR_DUAL900 = __EGSM900__ __DCS1800__
COM_DEFS_FOR_TRIPLE = __EGSM900__ __DCS1800__ __PCS1900__
COM_DEFS_FOR_QUAD = __EGSM900__ __DCS1800__ __PCS1900__ __GSM850__
COM_DEFS_FOR_DUAL850 = __GSM850__ __PCS1900__
COM_DEFS_FOR_TRIPLE850 = __GSM850__ __DCS1800__ __PCS1900__ TRIPLE850
COM_DEFS_FOR_BAND_SUPPORT = COM_DEFS_FOR_$(strip $(BAND_SUPPORT))
ifdef $(COM_DEFS_FOR_BAND_SUPPORT)
COM_DEFS += $(COM_DEFS_FOR_$(strip $(BAND_SUPPORT)))
else
COM_DEFS += __EGSM900__ __DCS1800__ # the same as DUAL900
endif
# UMTS_BAND_SUPPORT Options
UMTS_SUPPORT_BAND =
ifdef UMTS_BAND_I
ifeq ($(strip $(UMTS_BAND_I)),TRUE)
UMTS_SUPPORT_BAND += __UMTS_BAND_I__
endif
endif
ifdef UMTS_BAND_II
ifeq ($(strip $(UMTS_BAND_II)),TRUE)
UMTS_SUPPORT_BAND += __UMTS_BAND_II__
endif
endif
ifdef UMTS_BAND_III
ifeq ($(strip $(UMTS_BAND_III)),TRUE)
UMTS_SUPPORT_BAND += __UMTS_BAND_III__
endif
endif
ifdef UMTS_BAND_IV
ifeq ($(strip $(UMTS_BAND_IV)),TRUE)
UMTS_SUPPORT_BAND += __UMTS_BAND_IV__
endif
endif
ifdef UMTS_BAND_V
ifeq ($(strip $(UMTS_BAND_V)),TRUE)
UMTS_SUPPORT_BAND += __UMTS_BAND_V__
UMTS_SUPPORT_BAND += __UMTS_BAND_VI__
endif
endif
ifdef UMTS_BAND_VI
ifeq ($(strip $(UMTS_BAND_VI)),TRUE)
UMTS_SUPPORT_BAND += __UMTS_BAND_V__
UMTS_SUPPORT_BAND += __UMTS_BAND_VI__
endif
endif
ifdef UMTS_BAND_VII
ifeq ($(strip $(UMTS_BAND_VII)),TRUE)
UMTS_SUPPORT_BAND += __UMTS_BAND_VII__
endif
endif
ifdef UMTS_BAND_VIII
ifeq ($(strip $(UMTS_BAND_VIII)),TRUE)
UMTS_SUPPORT_BAND += __UMTS_BAND_VIII__
endif
endif
ifdef UMTS_BAND_IX
ifeq ($(strip $(UMTS_BAND_IX)),TRUE)
UMTS_SUPPORT_BAND += __UMTS_BAND_IX__
endif
endif
ifdef UMTS_BAND_X
ifeq ($(strip $(UMTS_BAND_X)),TRUE)
UMTS_SUPPORT_BAND += __UMTS_BAND_X__
endif
endif
COM_DEFS += $(strip $(UMTS_SUPPORT_BAND))
# Due to UAS RRC Specification (InterRATHandoverInfo message) limitation, UE at most supports 4 bands in band I~VII.
UMTS_SUPPORT_BAND_I_TO_VII_COUNT = $(words $(filter __UMTS_BAND_I__ __UMTS_BAND_II__ __UMTS_BAND_III__ __UMTS_BAND_IV__ __UMTS_BAND_V__ __UMTS_BAND_VI__ __UMTS_BAND_VII__,$(sort $(strip $(UMTS_SUPPORT_BAND)))))
ifeq ($(call gt,$(strip $(UMTS_SUPPORT_BAND_I_TO_VII_COUNT)),4),T)
$(warning ERROR: UE at most supports 4 bands in band I~VII due to RRC Specification limitation (UE supports $(strip $(UMTS_SUPPORT_BAND))))
DEPENDENCY_CONFLICT = TRUE
endif
# UMTS TDD128 BAND SUPPORT Options
ifdef UMTS_TDD128_BAND_A
ifeq ($(strip $(UMTS_TDD128_BAND_A)),TRUE)
COM_DEFS += __UMTS_TDD128_BAND_A__
endif
endif
ifdef UMTS_TDD128_BAND_B
ifeq ($(strip $(UMTS_TDD128_BAND_B)),TRUE)
COM_DEFS += __UMTS_TDD128_BAND_B__
endif
endif
ifdef UMTS_TDD128_BAND_C
ifeq ($(strip $(UMTS_TDD128_BAND_C)),TRUE)
COM_DEFS += __UMTS_TDD128_BAND_C__
endif
endif
ifdef UMTS_TDD128_BAND_D
ifeq ($(strip $(UMTS_TDD128_BAND_D)),TRUE)
COM_DEFS += __UMTS_TDD128_BAND_D__
endif
endif
ifdef UMTS_TDD128_BAND_E
ifeq ($(strip $(UMTS_TDD128_BAND_E)),TRUE)
COM_DEFS += __UMTS_TDD128_BAND_E__
endif
endif
ifdef UMTS_TDD128_BAND_F
ifeq ($(strip $(UMTS_TDD128_BAND_F)),TRUE)
COM_DEFS += __UMTS_TDD128_BAND_F__
endif
endif
# AFC_VCXO_TYPE Options
COM_DEFS_FOR_VCXO = AFC_VCXO
COM_DEFS_FOR_VCXO_SC = AFC_VCXO AFC_SC
COM_DEFS_FOR_VCXO_TC = AFC_VCXO AFC_TC
COM_DEFS_FOR_VCXO_SC_TC = AFC_VCXO AFC_SC AFC_TC
COM_DEFS_FOR_AFC_VCXO_TYPE = COM_DEFS_FOR_$(strip $(AFC_VCXO_TYPE))
ifdef $(COM_DEFS_FOR_AFC_VCXO_TYPE)
COM_DEFS += $(COM_DEFS_FOR_$(strip $(AFC_VCXO_TYPE)))
endif
DUMMY_SCATTER_ENABLE_PLATFORM = MT6252 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)),$(DUMMY_SCATTER_ENABLE_PLATFORM)),)
ifeq ($(strip $(DUMMY_SCATTER_ENABLE)),TRUE)
$(warning ERROR: DUMMY_SCATTER_ENABLE can only be enabled when PLATFORM is $(DUMMY_SCATTER_ENABLE_PLATFORM))
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(DUMMY_SCATTER_ENABLE)),TRUE)
ifeq ($(strip $(DEMO_PROJECT)),TRUE)
$(warning ERROR: DUMMY_SCATTER_ENABLE cannot be enabled when DEMO_PROJECT=TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
ifdef NAND_FLASH_BOOTING
ifneq ($(strip $(NAND_FLASH_BOOTING)),NONE)
$(warning ERROR: DUMMY_SCATTER_ENABLE cannot be enabled when NAND_FLASH_BOOTING is not NONE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifdef ATV_I2S_PATH
ifeq ($(strip $(ATV_I2S_PATH)),TRUE)
ifneq ($(strip $(I2S_INPUT_MODE_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,I2S_INPUT_MODE_SUPPORT,ATV_I2S_PATH)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(ATV_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,ATV_SUPPORT,ATV_I2S_PATH)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __ATV_I2S_SUPPORT__
endif
endif
ifdef ISP_SUPPORT
ifeq ($(strip $(ISP_SUPPORT)),FALSE)
ifdef ATV_SUPPORT
ifneq ($(strip $(ATV_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,ATV_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
REDUCE_TCM_SUPPORT_PLATFORM = MT6225 MT6253T MT6253 MT6253E MT6253L MT6252H MT6252 MT6223 MT6223P MT6235 MT6235B MT6236 MT6236B MT6238 MT6239 MT6268A MT6268 MT6270A MT6921
ARM9_DCACHEABLE_PLATFORM = MT6235 MT6235B MT6236 MT6236B MT6238 MT6239 MT6268A MT6268 MT6270A MT6921
DYNAMIC_SWITCH_CACHEABILITY_PLATFORM = MT6235 MT6235B MT6236 MT6236B MT6238 MT6239 MT6268A MT6268 MT6270A MT6921
ifneq ($(filter $(REDUCE_TCM_SUPPORT_PLATFORM),$(PLATFORM)),)
COM_DEFS += __REDUCE_TCM_SUPPORT__
endif
ifneq ($(filter $(ARM9_DCACHEABLE_PLATFORM),$(PLATFORM)),)
COM_DEFS += __ARM9_DCACHEABLE__
endif
ifneq ($(filter $(DYNAMIC_SWITCH_CACHEABILITY_PLATFORM),$(PLATFORM)),)
COM_DEFS += __DYNAMIC_SWITCH_CACHEABILITY__
endif
ifdef PMIC_PRESENT
ifeq ($(strip $(PMIC_PRESENT)),TRUE)
COM_DEFS += PMIC_PRESENT
endif
endif
ifdef PMIC
ifneq ($(strip $(PMIC)),NONE)
COM_DEFS += PMIC_PRESENT
endif
ifeq ($(strip $(PLATFORM)),MT6205)
ifneq ($(strip $(PMIC)),MT6305)
ifneq ($(strip $(PMIC)),NONE)
$(warning ERROR: MT6205 only supports MT6305 PMIC, and does not support $(strip $(PMIC)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PLATFORM)),MT6205B)
ifneq ($(strip $(PMIC)),MT6305)
ifneq ($(strip $(PMIC)),NONE)
$(warning ERROR: MT6205B only supports MT6305 PMIC, and does not support $(strip $(PMIC)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PLATFORM)),MT6205C)
ifneq ($(strip $(PMIC)),MT6305)
ifneq ($(strip $(PMIC)),NONE)
$(warning ERROR: MT6205C only supports MT6305 PMIC, and does not support $(strip $(PMIC)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PMIC)),MT6235PMU)
ifneq ($(strip $(PLATFORM)),MT6235)
ifneq ($(strip $(PLATFORM)),MT6235B)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6235 & MT6235B series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PLATFORM)),MT6235)
ifneq ($(strip $(PMIC)),MT6235PMU)
ifneq ($(strip $(PMIC)),NONE)
$(warning ERROR: MT6235 only supports MT6235PMU PMIC, and does not support $(strip $(PMIC)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PLATFORM)),MT6235B)
ifneq ($(strip $(PMIC)),MT6235PMU)
ifneq ($(strip $(PMIC)),NONE)
$(warning ERROR: MT6235B only supports MT6235PMU PMIC, and does not support $(strip $(PMIC)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PMIC)),MT6238PMU)
ifneq ($(strip $(PLATFORM)),MT6238)
ifneq ($(strip $(PLATFORM)),MT6239)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6238 & MT6239 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PLATFORM)),MT6238)
ifneq ($(strip $(PMIC)),MT6238PMU)
ifneq ($(strip $(PMIC)),NONE)
$(warning ERROR: MT6238 only supports MT6238PMU PMIC, and does not support $(strip $(PMIC)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PLATFORM)),MT6239)
ifneq ($(strip $(PMIC)),MT6238PMU)
ifneq ($(strip $(PMIC)),NONE)
$(warning ERROR: MT6239 only supports MT6238PMU PMIC, and does not support $(strip $(PMIC)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PMIC)),MT6223PMU)
ifneq ($(strip $(PLATFORM)),MT6223)
ifneq ($(strip $(PLATFORM)),MT6223P)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6223 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PLATFORM)),MT6223)
ifneq ($(strip $(PMIC)),MT6223PMU)
ifneq ($(strip $(PMIC)),NONE)
$(warning ERROR: MT6223 only supports MT6223PMU PMIC, and does not support $(strip $(PMIC)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PLATFORM)),MT6223P)
ifneq ($(strip $(PMIC)),MT6223PMU)
ifneq ($(strip $(PMIC)),NONE)
$(warning ERROR: MT6223P only supports MT6223PMU PMIC, and does not support $(strip $(PMIC)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
PMIC_MT6326_SUPPORT_PLATFORM = MT6268A MT6268 MT6270A
ifeq ($(strip $(PMIC)),MT6326)
ifeq ($(filter $(strip $(PLATFORM)) ,$(PMIC_MT6326_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support PMIC=$(strip $(PMIC)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(PMIC)),MT6253PMU)
ifneq ($(strip $(PLATFORM)),MT6253T)
ifneq ($(strip $(PLATFORM)),MT6253)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6253 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PMIC)),MT6253ELPMU)
ifneq ($(strip $(PLATFORM)),MT6253E)
ifneq ($(strip $(PLATFORM)),MT6253L)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6253EL series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PMIC)),MT6252PMU)
ifneq ($(strip $(PLATFORM)),MT6252)
ifneq ($(strip $(PLATFORM)),MT6252H)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6252/H series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PMIC)),MT6236PMU)
ifneq ($(strip $(PLATFORM)),MT6236)
ifneq ($(strip $(PLATFORM)),MT6236B)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6236 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PMIC)),MT6921PMU)
ifneq ($(strip $(PLATFORM)),MT6921)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6921 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(PMIC)),MT6251PMU)
ifneq ($(strip $(PLATFORM)),MT6251)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6251 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(PMIC)),MT6276PMU)
ifneq ($(strip $(PLATFORM)),MT6276)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6276 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(PMIC)),MT6256PMU)
ifneq ($(strip $(PLATFORM)),MT6256)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6256 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(PMIC)),MT6255PMU)
ifneq ($(strip $(PLATFORM)),MT6255)
ifneq ($(strip $(PLATFORM)),MT6922)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6255 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(PMIC)),MT6250PMU)
ifneq ($(strip $(PLATFORM)),MT6250)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6250 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(PMIC)),MT6260PMU)
ifneq ($(strip $(PLATFORM)),MT6260)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6260 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(PMIC)),MT6261PMU)
ifneq ($(strip $(PLATFORM)),MT6261)
$(warning ERROR: $(strip $(PLATFORM)) does not support $(strip $(PMIC)),only MT6261 series chips support $(strip $(PMIC)) PMIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
NEED_ADD_PMIC_COMPILE_LIST = MT6223PMU MT6238PMU MT6235PMU MT6236PMU MT6573PMU MT6305 MT6318 MT6326 MT6253PMU MT6253ELPMU MT6252PMU MT6326_CCCI MT6251PMU MT6276PMU MT6256PMU MT6921PMU MT6255PMU MT6922PMU MT6250PMU MT6260PMU MT6261PMU
ifneq ($(filter $(NEED_ADD_PMIC_COMPILE_LIST),$(PMIC)),)
ifeq ($(strip $(PMIC)),MT6921PMU)
COM_DEFS += MT6236PMU
else
COM_DEFS += $(PMIC)
endif
endif
# Dependency check for PMIC/PMU which support custom tool configuration
# The PMIC/PMU list which support custom tool configuration
CUSTOM_TOOL_IF_SUPPORTED_PMIC = MT6236PMU MT6256PMU MT6276PMU MT6251PMU MT6921PMU MT6255PMU MT6922PMU MT6250PMU MT6260PMU MT6261PMU
ifdef DRV_CUSTOM_TOOL_SUPPORT
ifeq ($(strip $(DRV_CUSTOM_TOOL_SUPPORT)),TRUE)
ifneq ($(findstring $(strip $(PMIC)),$(strip $(CUSTOM_TOOL_IF_SUPPORTED_PMIC))),)
COM_DEFS += __CUST_NEW_PMIC__
endif
endif
endif
DRV_CUSTOM_TOOL_SUPPORT_PLATFORM = MT6253 MT6253E MT6253L MT6268 MT6236 MT6236B MT6270A MT6252 MT6252H MT6921
ifneq ($(filter $(call Upper,$(strip $(PLATFORM))) ,$(DRV_CUSTOM_TOOL_SUPPORT_PLATFORM)),)
ifneq ($(strip $(DRV_CUSTOM_TOOL_SUPPORT)),TRUE)
$(warning ERROR: DRV_CUSTOM_TOOL_SUPPORT must be turned on when PLATFORM = $(strip $(PLATFORM)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifdef DRV_CUSTOM_TOOL_SUPPORT
ifeq ($(strip $(DRV_CUSTOM_TOOL_SUPPORT)),TRUE)
COM_DEFS += __CUST_NEW__
endif
endif
# Check 53 PMU API version
PMU53_API_V1_PLATFORM = MT6253_EVB% MT6253T_EVB% TIANYU6253T% UNICORN53%
ifeq ($(strip $(PMIC)),MT6253PMU)
COM_DEFS += MT6253PMU
ifneq ($(filter $(strip $(PMU53_API_V1_PLATFORM)),$(strip $(BOARD_VER))),)
COM_DEFS += __DRV_PMU53_SPEC_V1__
else
COM_DEFS += __DRV_PMU53_SPEC_V2__
endif
endif
# Check if we support multi-level backlight or not
ifdef MULTI_LEVEL_BACKLIGHT_SUPPORT
ifeq ($(strip $(MULTI_LEVEL_BACKLIGHT_SUPPORT)),TRUE)
MULTI_LEVEL_BACKLIGHT_SUPPORT_PLATFORM = MT6236 MT6268 MT6256 MT6276 MT6255 MT6922 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)) ,$(MULTI_LEVEL_BACKLIGHT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support multi-level backlight(more than 5 levels))
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __MULTI_LEVEL_BACKLIGHT_SUPPORT__
endif
endif
endif
# Define backlight driver source
ifdef BACKLIGHT_POWER_SOURCE
ifeq ($(strip $(BACKLIGHT_POWER_SOURCE)),INTERNAL_BL_DRIVER_SOURCE)
COM_DEFS += __INTERNAL_BL_DRIVER_SOURCE__
endif
ifeq ($(strip $(BACKLIGHT_POWER_SOURCE)),EXTERNAL_BL_DRIVER_SOURCE)
COM_DEFS += __EXTERNAL_BL_DRIVER_SOURCE__
endif
endif
ifeq ($(strip $(FLASH_TEST_SELECT)),NAND_FLASH)
ifneq ($(strip $(NAND_SUPPORT)),TRUE)
$(call DEP_ERR_SETA_OR_ONB,FLASH_TEST_SELECT,non NAND_FLASH,NAND_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __NAND_FLASH_HARDWARE_TEST__
endif
ifeq ($(strip $(FLASH_TEST_SELECT)),NOR_FLASH)
COM_DEFS += __NOR_FLASH_HARDWARE_TEST__
endif
ifdef NAND_SUPPORT
ifdef SYSTEM_DRIVE_ON_NAND
ifeq ($(strip $(NAND_SUPPORT)),FALSE)
ifeq ($(strip $(SYSTEM_DRIVE_ON_NAND)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,NAND_SUPPORT,SYSTEM_DRIVE_ON_NAND)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
ifdef NAND_SUPPORT
ifeq ($(strip $(NAND_SUPPORT)),TRUE)
COM_DEFS += NAND_SUPPORT
endif
endif
ifdef SPI_NAND_SUPPORT
ifeq ($(strip $(SPI_NAND_SUPPORT)),TRUE)
COM_DEFS += __SPI_NAND_SUPPORT__
ifeq ($(strip $(NAND_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,NAND_SUPPORT,SPI_NAND_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(SYSTEM_DRIVE_ON_NAND)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,SYSTEM_DRIVE_ON_NAND,SPI_NAND_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(SERIAL_FLASH_SUPPORT)),TRUE)
$(call DEP_ERR_SETA_OR_OFFB,SERIAL_FLASH_SUPPORT,FALSE,SPI_NAND_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifdef NAND_SUPPORT
ifdef SYSTEM_DRIVE_ON_NAND
ifeq ($(strip $(SYSTEM_DRIVE_ON_NAND)),TRUE)
SYSTEM_DRIVE_ON_NAND_SUPPORT_PLATFORM = MT6228 MT6229 MT6230 MT6217 MT6218B MT6219 MT6227 MT6226 MT6226M MT6225 MT6253T MT6253 MT6253E MT6253L MT6223 MT6227D MT6226D MT6223P MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268T MT6268H MT6268A MT6268 MT6270A MT6256 MT6276 MT6573 MT6252 MT6252H MT6921 MT6255 MT6922 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)) ,$(SYSTEM_DRIVE_ON_NAND_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support SYSTEM_DRIVE_ON_NAND.)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(NAND_SUPPORT)),TRUE)
COM_DEFS += __FS_SYSDRV_ON_NAND__
endif
endif
endif
endif
endif
ifdef NAND_SUPPORT
ifeq ($(strip $(NAND_SUPPORT)),TRUE)
ifeq ($(strip $(PLATFORM)),MT6205B)
$(warning ERROR: The $(strip $(PLATFORM)) chip does not have NAND_SUPPORT feature.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(PLATFORM)),MT6205)
$(warning ERROR: The $(strip $(PLATFORM)) chip does not have NAND_SUPPORT feature.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(PLATFORM)),MT6208)
$(warning ERROR: The $(strip $(PLATFORM)) chip does not have NAND_SUPPORT feature.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(PLATFORM)),MT6223)
$(warning ERROR: The $(strip $(PLATFORM)) chip does not have NAND_SUPPORT feature.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(PLATFORM)),MT6223P)
$(warning ERROR: The $(strip $(PLATFORM)) chip does not have NAND_SUPPORT feature.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
COMPLIST += sys_int
ifdef NAND_FLASH_BOOTING
ifneq ($(strip $(NAND_FLASH_BOOTING)),NONE)
NAND_FLASH_BOOTING_SUPPORT_PLATFORM = MT6228 MT6229 MT6225 MT6230 MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268A MT6268 MT6270A MT6256 MT6276 MT6573 MT6921 MT6255 MT6922 MT6260 MT6261
NFB_ONDEMAND_SUPPORT_PLATFORM = MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268A MT6268 MT6270A MT6256 MT6276 MT6573 MT6921 MT6255 MT6922
ifeq ($(strip $(SMART_PHONE_CORE)),AP)
NAND_FLASH_BOOTING_SUPPORT_PLATFORM += MT6516 MT6573
NFB_ONDEMAND_SUPPORT_PLATFORM += MT6516 MT6573
endif
ifeq ($(filter $(strip $(PLATFORM)) ,$(NAND_FLASH_BOOTING_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support NAND_FLASH_BOOTING)
DEPENDENCY_CONFLICT = TRUE
endif
ifdef NAND_SUPPORT
ifeq ($(strip $(NAND_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,NAND_SUPPORT,NAND_FLASH_BOOTING)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COM_DEFS += _NAND_FLASH_BOOTING_
ifeq ($(strip $(NAND_FLASH_BOOTING)),ENFB)
ifneq ($(filter $(strip $(PLATFORM)) ,$(NFB_ONDEMAND_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) should use NAND_FLASH_BOOTING = ONDEMAND / MIXED instead of ENFB)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __NFB_THIRD_ROM_SUPPORT__
endif
ifeq ($(strip $(NAND_FLASH_BOOTING)),ONDEMAND)
ifeq ($(filter $(strip $(PLATFORM)) ,$(NFB_ONDEMAND_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support NAND_FLASH_BOOTING = ONDEMAND)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __DEMAND_PAGING__
endif
ifeq ($(strip $(NAND_FLASH_BOOTING)),MIXED)
ifeq ($(filter $(strip $(PLATFORM)) ,$(NFB_ONDEMAND_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support NAND_FLASH_BOOTING = MIXED)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __NFB_THIRD_ROM_SUPPORT__
COM_DEFS += __DEMAND_PAGING__
endif
endif
CUS_REL_BASE_COMP += hal\system\bootloader make\bootloader
CUS_REL_FILES_LIST += custom\drv\common_drv\gpio_setting.c
CUS_REL_FILES_LIST += sss\sss.lib sss\interface\src\SSS_interface.c \
interface\l1interface\l1_interface.c interface\l1interface\internal\l1_interface.h
endif
ifdef DEMAND_PAGING_LEVEL
ifeq ($(strip $(DEMAND_PAGING_LEVEL)),DPV2)
ifneq ($(strip $(NAND_FLASH_BOOTING)),ONDEMAND)
$(warning ERROR: Please set NAND_FLASH_BOOTING = ONDEMAND to enable DEMAND_PAGING_LEVEL = DPV2.)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __DEMAND_PAGING_V2__
endif
endif
endif
ifneq ($(strip $(USB_SUPPORT)),TRUE)
ifneq ($(filter __CHARGER_USB_DETECT_WIHT_ONE_EINT__ ,$(CUSTOM_OPTION)),)
$(warning ERROR: Please remove __CHARGER_USB_DETECT_WIHT_ONE_EINT__ from CUSTOM_OPTION when USB_SUPPORT is not TRUE!)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter __USB_AND_UART_WITH_ONE_GPIO__ ,$(CUSTOM_OPTION)),)
$(warning ERROR: Please remove __USB_AND_UART_WITH_ONE_GPIO__ from CUSTOM_OPTION when USB_SUPPORT is not TRUE!)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(USB_SUPPORT)),TRUE)
USB_SUPPORT_PLATFORM = MT6217 MT6218B MT6219 MT6228 MT6229 MT6230 MT6227 MT6226 MT6226M MT6225 MT6252 MT6252H MT6253T MT6253 MT6253E MT6253L MT6227D MT6226D MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268T MT6268H MT6268A MT6268 MT6516 MT6270A MT6256 MT6276 MT6573 MT6251 MT6921 MT6255 MT6922 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)) ,$(USB_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support USB.)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(USB_SUPPORT)),TRUE)
COM_DEFS += __USB_ENABLE__ __NVRAM_IN_USB_MS__
ifeq ($(strip $(BOARD_VER)),MT6228_EVB)
COM_DEFS += _USB_VBUS_DETECT_WITH_NIRQ_
endif
ifeq ($(strip $(BOARD_VER)),MT6229_EVB)
COM_DEFS += _USB_VBUS_DETECT_WITH_NIRQ_
endif
ifeq ($(strip $(BOARD_VER)),MT6229_MGM_EVB)
COM_DEFS += _USB_VBUS_DETECT_WITH_NIRQ_
endif
ifeq ($(strip $(BOARD_VER)),MT6230_EVB)
COM_DEFS += _USB_VBUS_DETECT_WITH_NIRQ_
endif
ifeq ($(strip $(PLATFORM)),MT6235)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6235B)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6236)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6236B)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6921)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6238)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6239)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6268A)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6268)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6270A)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6253T)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6253)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6253E)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6253L)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6251)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6256)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6276)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6252)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifeq ($(strip $(PLATFORM)),MT6252H)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
endif
endif
endif
ifeq ($(strip $(IC_USB_SUPPORT)),TRUE)
IC_USB_SUPPORT_PLATFORM = MT6276 MT6573
ifeq ($(filter $(strip $(PLATFORM)),$(IC_USB_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support IC_USB_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __IC_USB_ENABLE__
endif
endif
BROM_USB_DOWNLOAD_SUPPORT_PLATFORM = MT6251 MT6252H MT6252 MT6256 MT6250 MT6255 MT6260 MT6261
BROM_USB_DOWNLOAD_V2_PLATFORM = MT6250 MT6260 MT6261
ifneq ($(filter $(strip $(PLATFORM)) ,$(BROM_USB_DOWNLOAD_SUPPORT_PLATFORM)),)
COM_DEFS += __USBDL_IN_BOOTROM__
ifdef USB_DOWNLOAD_IN_BL
ifeq ($(strip $(USB_DOWNLOAD_IN_BL)),NORMAL)
ifeq ($(filter $(strip $(PLATFORM)) ,$(BROM_USB_DOWNLOAD_V2_PLATFORM)),)
$(warning WARNING: $(PLATFORM) already supports BootROM USBDL. USB_DOWNLOAD_IN_BL = NORMAL is unnecessary)
#DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
ifneq ($(filter $(strip $(PLATFORM)) ,$(BROM_USB_DOWNLOAD_V2_PLATFORM)),)
COM_DEFS += __BROM_USBDL_V2__
endif
ifdef USB_DOWNLOAD_IN_BL
ifeq ($(strip $(USB_DOWNLOAD_IN_BL)),SECURE)
ifneq ($(strip $(SECURE_SUPPORT)),TRUE)
$(call DEP_ERR_SETA_OR_ONB,USB_DOWNLOAD_IN_BL,non SECURE,SECURE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(USB_SUPPORT)),TRUE)
$(call DEP_ERR_SETA_OR_ONB,USB_DOWNLOAD_IN_BL,non SECURE,USB_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifdef USB_DOWNLOAD_IN_BL
ifneq ($(strip $(USB_DOWNLOAD_IN_BL)),NONE)
ifeq ($(strip $(USB_SUPPORT)),TRUE)
USB_DOWNLOAD_SUPPORT_PLATFORM = MT6227 MT6226 MT6226M MT6227D MT6226D MT6225 MT6253T MT6253 MT6253E MT6253L MT6228 MT6229 MT6230 MT6235 MT6235B MT6236 MT6236B MT6238 MT6239 MT6268A MT6268 MT6270A MT6256 MT6276 MT6573 MT6252 MT6252H MT6251 MT6921 MT6255 MT6922 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)) ,$(USB_DOWNLOAD_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support USB_DOWNLOAD.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __USB_DOWNLOAD__
COM_DEFS += USBACM_TX_WITHOUT_DMA
CUS_REL_BASE_COMP += hal\system\bootloader make\bootloader
CUS_REL_FILES_LIST += custom\drv\common_drv\gpio_setting.c
CUS_REL_FILES_LIST += sss\interface\src\SSS_interface.c
ifeq ($(strip $(USB_DOWNLOAD_IN_BL)),SECURE)
COM_DEFS += __SECURE_USB_DOWNLOAD__
CUS_REL_FILES_LIST += dp_engine\che\sha1.h
CUS_REL_FILES_LIST += dp_engine\che\rc4.h
endif
endif
endif
endif
AUDIO_COMPONENT_SUPPORT_CONDITION = FALSE
ifeq ($(strip $(PLATFORM)),MT6276)
AUDIO_COMPONENT_SUPPORT_CONDITION = TRUE
endif
ifeq ($(strip $(PLATFORM)),MT6256)
ifeq ($(strip $(CHIP_VER)),S01)
AUDIO_COMPONENT_SUPPORT_CONDITION = TRUE
endif
endif
ifeq ($(strip $(PLATFORM)),MT6255)
AUDIO_COMPONENT_SUPPORT_CONDITION = TRUE
endif
ifeq ($(strip $(PLATFORM)),MT6922)
AUDIO_COMPONENT_SUPPORT_CONDITION = TRUE
endif
ifeq ($(strip $(PLATFORM)),MT6250)
AUDIO_COMPONENT_SUPPORT_CONDITION = TRUE
endif
ifeq ($(strip $(PLATFORM)),MT6260)
AUDIO_COMPONENT_SUPPORT_CONDITION = TRUE
endif
ifeq ($(strip $(PLATFORM)),MT6261)
AUDIO_COMPONENT_SUPPORT_CONDITION = TRUE
endif
ifdef AMRWB_DECODE
ifeq ($(strip $(AMRWB_DECODE)),TRUE)
AMRWB_DECODE_NOT_SUPPORT_PLATFORM = MT6205B MT6218 MT6208 MT6218B MT6217 MT6223 MT6223P MT6253E MT6253L MT6252 MT6252H MT6250 MT6260 MT6261
ifneq ($(filter $(strip $(PLATFORM)),$(AMRWB_DECODE_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: Platform $(strip $(PLATFORM)) not support AMRWB_DECODE!)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += AMRWB_DECODE
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\awb_codec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\awb_codec.a
endif
endif
endif
endif
ifdef AMRWB_ENCODE
ifeq ($(strip $(AMRWB_ENCODE)),TRUE)
AMRWB_ENCODE_NOT_SUPPORT_PLATFORM = MT6205B MT6218 MT6208 MT6218B MT6217 MT6223 MT6223P MT6253E MT6253L MT6252 MT6252H MT6250 MT6260 MT6261
ifneq ($(filter $(strip $(PLATFORM)),$(AMRWB_ENCODE_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: Platform $(strip $(PLATFORM)) not support AMRWB_ENCODE!)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += AMRWB_ENCODE
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
ifeq ($(strip $(AMRWB_DECODE)),FALSE)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\awb_codec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\awb_codec.a
endif
endif
endif
endif
endif
ifdef AMR_CODEC
ifeq ($(strip $(AMR_CODEC)),TRUE)
COM_DEFS += AMR_CODEC
AMR_CODEC_SWIP_SUPPORT_PLATFORM = MT6276
AMR_CODEC_BGSND_SUPPORT_PLATFORM = MT6260 MT6261
ifneq ($(filter $(strip $(PLATFORM)),$(AMR_CODEC_SWIP_SUPPORT_PLATFORM)),)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\amr_codec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\amr_codec.a
endif
endif
ifneq ($(filter $(strip $(PLATFORM)),$(AMR_CODEC_BGSND_SUPPORT_PLATFORM)),)
ifeq ($(strip $(BACKGROUND_SOUND)),TRUE)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\amr_codec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\amr_codec.a
endif
endif
endif
else
ifeq ($(strip $(DEDI_AMR_REC)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,AMR_CODEC,DEDI_AMR_REC)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(AMRWB_ENCODE)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,AMR_CODEC,AMRWB_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(AMRWB_DECODE)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,AMR_CODEC,AMRWB_DECODE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifdef EES_ENABLE
ifeq ($(strip $(EES_ENABLE)),TRUE)
ifeq ($(strip $(PLATFORM)),MT6205B)
$(warning ERROR: Platform $(strip $(PLATFORM)) does not support EES_ENABLE!)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += EES_ENABLE
else
ifneq ($(strip $(PLATFORM)),MT6205B)
ifdef IC_TEST_TYPE
ifneq ($(strip $(IC_TEST_TYPE)),IC_BURNIN_TEST)
$(warning ERROR: EES_ENABLE is a mandatory feature. Please turn on EES_ENABLE!)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
endif
ifdef AEC_ENABLE
ifeq ($(strip $(AEC_ENABLE)),TRUE)
ifeq ($(strip $(PLATFORM)),MT6205B)
$(warning ERROR: Platform $(strip $(PLATFORM)) does not support AEC_ENABLE!)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += AEC_ENABLE
else
ifneq ($(strip $(PLATFORM)),MT6205B)
ifdef IC_TEST_TYPE
ifneq ($(strip $(IC_TEST_TYPE)),IC_BURNIN_TEST)
$(warning ERROR: AEC_ENABLE is a mandatory feature. Please turn on AEC_ENABLE!)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
endif
ifdef IC_TEST_TYPE
ifneq ($(strip $(IC_TEST_TYPE)),NONE)
COMPLIST += btmt
endif
endif
LCD_COLOR_ENGINE_SUPPORT_PLATFORM = MT6260 MT6261
ifneq ($(filter $(strip $(PLATFORM)),$(LCD_COLOR_ENGINE_SUPPORT_PLATFORM)),)
COM_DEFS += __LCD_COLOR_ENGINE_SUPPORT__
endif
ifdef JPG_DECODE
ifeq ($(strip $(JPG_DECODE)),TRUE)
ifeq ($(strip $(MMI_VERSION)),EMPTY_MMI)
$(warning ERROR: Graphics features are not supported on EMPTY_MMI projects; please set JPG_DECODE = FALSE.)
DEPENDENCY_CONFLICT = TRUE
endif
ifdef JPG_DECODE_PROGRESSIVE_CAPABILITY
ifeq ($(strip $(JPG_DECODE_PROGRESSIVE_CAPABILITY)),PROGRESSIVE_03M)
COM_DEFS += __JPG_DECODE_PROGRESSIVE_03M__
endif
ifeq ($(strip $(JPG_DECODE_PROGRESSIVE_CAPABILITY)),PROGRESSIVE_1M)
COM_DEFS += __JPG_DECODE_PROGRESSIVE_1M__
endif
ifeq ($(strip $(JPG_DECODE_PROGRESSIVE_CAPABILITY)),PROGRESSIVE_2M)
COM_DEFS += __JPG_DECODE_PROGRESSIVE_2M__
endif
ifeq ($(strip $(JPG_DECODE_PROGRESSIVE_CAPABILITY)),PROGRESSIVE_3M)
COM_DEFS += __JPG_DECODE_PROGRESSIVE_3M__
endif
endif
COM_DEFS += JPG_DECODE
endif
endif
ifdef JPG_ENCODE
ifeq ($(strip $(JPG_ENCODE)),TRUE)
ifeq ($(strip $(MMI_VERSION)),EMPTY_MMI)
$(warning ERROR: Graphics features are not supported on EMPTY_MMI projects; please set JPG_ENCODE = FALSE.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += JPG_ENCODE
endif
endif
ifeq ($(strip $(G2D_SUPPORT)),TRUE)
ifeq ($(strip $(MMI_VERSION)),EMPTY_MMI)
$(warning ERROR: Graphics features are not supported on EMPTY_MMI projects; please set G2D_SUPPORT = FALSE.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += G2D_SUPPORT
endif
ifneq ($(strip $(call Upper,$(PROJECT))),BASIC)
JPG_CODEC_HW_NOT_SUPPORT_PLATFORM = MT6251
ifeq ($(strip $(JPG_DECODE)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(strip $(JPG_CODEC_HW_NOT_SUPPORT_PLATFORM))),)
$(warning ERROR: $(strip $(PLATFORM)) does NOT support JPG_DECODE=$(strip $(JPG_DECODE)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(JPG_ENCODE)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(strip $(JPG_CODEC_HW_NOT_SUPPORT_PLATFORM))),)
$(warning ERROR: $(strip $(PLATFORM)) does NOT support JPG_ENCODE=$(strip $(JPG_ENCODE)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
MJPG_SUPPORT_EXT_CAM_MODULE_DEP_PLATFORM = MT6217 MT6218B MT6225 MT6253T MT6253 MT6253E MT6253L MT6235 MT6235B MT6236 MT6236B MT6223P MT6252 MT6252H MT6276 MT6921 MT6256 MT6255 MT6922 MT6250 MT6260 MT6261
ifneq ($(filter $(strip $(PLATFORM)) ,$(MJPG_SUPPORT_EXT_CAM_MODULE_DEP_PLATFORM)),)
ifeq ($(strip $(PLATFORM)),MT6223P)
ifneq ($(strip $(SENSOR_TYPE)),DIRECT)
ifeq ($(strip $(MJPG_ENCODE)),TRUE)
$(call DEP_ERR_SETA_OR_OFFB,SENSOR_TYPE,DIRECT,MJPG_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
ifdef MJPG_ENCODE
ifeq ($(strip $(MJPG_ENCODE)),TRUE)
ifeq ($(filter $(strip $(PLATFORM)) ,$(MJPG_SUPPORT_EXT_CAM_MODULE_DEP_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support MJPG_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(PLATFORM)),MT6276)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support MJPG_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
ifdef MJPG_DECODE
ifneq ($(strip $(MJPG_DECODE)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,MJPG_DECODE,MJPG_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifdef ISP_SUPPORT
ifeq ($(strip $(ISP_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,MJPG_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(CMOS_SENSOR)),PO4010K)
$(warning ERROR: $(strip $(CMOS_SENSOR)) does not support MJPG_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(CMOS_SENSOR)),SIA100A)
$(warning ERROR: $(strip $(CMOS_SENSOR)) does not support MJPG_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += MJPG_ENCODE
endif
endif
MJPEG_SW_CODEC_V2_PLATFORM = MT6253 MT6253E MT6253L MT6253T MT6236 MT6235 MT6235B MT6276 MT6252 MT6252H MT6921 MT6256 MT6255 MT6922 MT6250 MT6260 MT6261
ifdef MJPG_ENCODE
ifeq ($(strip $(MJPG_ENCODE)),TRUE)
ifneq ($(strip $(JPG_ENCODE)),TRUE)
$(warning ERROR: JPG_ENCODE must be TRUE when MJPG_ENCODE = TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter $(strip $(PLATFORM)),$(MJPEG_SW_CODEC_V2_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V2__
COM_DEFS += MJPG_ENCODE
COM_DEFS += __AVI_ENC_SUPPORT__
COM_DEFS += __MJPEG_ENC_SUPPORT__
COM_DEFS += __MJPEG_ENC_SW_SUPPORT__
endif
endif
endif
ifdef MJPG_DECODE
ifeq ($(strip $(MJPG_DECODE)),TRUE)
ifeq ($(filter $(strip $(PLATFORM)) ,$(MJPG_SUPPORT_EXT_CAM_MODULE_DEP_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support MJPG_DECODE)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(JPG_DECODE)),TRUE)
$(warning ERROR: JPG_DECODE must be TRUE when MJPG_DECODE = TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += MJPG_DECODE
ifneq ($(filter $(strip $(PLATFORM)),$(MJPEG_SW_CODEC_V2_PLATFORM)),)
COM_DEFS += __VIDEO_ARCHI_V2__
COM_DEFS += __VDEC_SUPPORT__
COM_DEFS += __MJPEG_DEC_SW_SUPPORT__
COM_DEFS += __MJPEG_DEC_SUPPORT__
endif
endif
endif
ifdef MJPG_DECODE_MODE
ifeq ($(strip $(MJPG_DECODE)),TRUE)
ifeq ($(strip $(MJPG_DECODE_MODE)),SLIM)
MJPG_DECODE_MODE_SLIM_SUPPORT_PLATFORM = MT6276 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)),$(MJPG_DECODE_MODE_SLIM_SUPPORT_PLATFORM)),)
$(error PLATFORM $(strip $(PLATFORM)) does not support MJPG_DECODE_MODE=$(strip $(MJPG_DECODE_MODE)))
endif
COM_DEFS += __MJPG_DEC_SW_SLIM__
endif
endif
endif
CAMCORDER_SUPPORT_PLATFORM = MT6238 MT6239 MT6268 MT6268A MT6268 MT6236 MT6236B MT6270A MT6276 MT6256 MT6921 MT6255 MT6922
CAMCORDER_LOW_END_SUPPORT_PLATFORM = MT6235 MT6235B MT6253 MT6253T MT6253E MT6253L MT6252 MT6252H MT6250 MT6260 MT6261
ifdef CAMCORDER_SUPPORT
ifneq ($(strip $(CAMCORDER_SUPPORT)),NONE)
ifeq ($(filter $(strip $(PLATFORM)) ,$(CAMCORDER_SUPPORT_PLATFORM)),)
ifeq ($(filter $(strip $(PLATFORM)) ,$(CAMCORDER_LOW_END_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support CAMCORDER_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __CAMERA_CAPTURE_STANDARD_SET__
endif
else
COM_DEFS += __CAMERA_CAPTURE_HIGHEND_SET__
endif
ifneq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,CAMCORDER_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(MP4_ENCODE)),TRUE)
ifeq ($(strip $(MP4_DECODE)),TRUE)
CAMCO_MP4_SUPPORT = TRUE
else
CAMCO_MP4_SUPPORT = FALSE
endif
else
CAMCO_MP4_SUPPORT = FALSE
endif
ifeq ($(strip $(MJPG_ENCODE)),TRUE)
ifeq ($(strip $(MJPG_DECODE)),TRUE)
CAMCO_MJPG_SUPPORT = TRUE
else
CAMCO_MJPG_SUPPORT = FALSE
endif
else
CAMCO_MJPG_SUPPORT = FALSE
endif
ifeq ($(strip $(H264_ENCODE)),TRUE)
ifeq ($(strip $(H264_DECODE)),TRUE)
CAMCO_H264_SUPPORT = TRUE
else
CAMCO_H264_SUPPORT = FALSE
endif
else
CAMCO_H264_SUPPORT = FALSE
endif
CAMCO_CODEC_SUPPORT = FALSE
ifeq ($(strip $(CAMCO_MP4_SUPPORT)),TRUE)
CAMCO_CODEC_SUPPORT = TRUE
endif
ifeq ($(strip $(CAMCO_MJPG_SUPPORT)),TRUE)
CAMCO_CODEC_SUPPORT = TRUE
endif
ifeq ($(strip $(CAMCO_H264_SUPPORT)),TRUE)
CAMCO_CODEC_SUPPORT = TRUE
endif
ifneq ($(strip $(CAMCO_CODEC_SUPPORT)),TRUE)
$(warning ERROR: Please open one codec Encode/Decode at least.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(CAMCORDER_VRT_MEM_CAPTURE)),TRUE)
ifneq ($(strip $(YUVCAM_INTERPOLATION)),NONE)
$(warning ERROR: YUVCAM_INTERPOLATION is not allowed when turn on CAMCORDER_VRT_MEM_CAPTURE)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __CAMERA_CAPTURE_USING_APP_MEMORY__
endif
endif
ifneq ($(filter $(strip $(PLATFORM)) ,$(CAMCORDER_LOW_END_SUPPORT_PLATFORM)),)
ifneq ($(filter STANDARD FULL,$(CAMCORDER_SUPPORT)),)
COM_DEFS += __CAMCORDER_SUPPORT__ __CAMCORDER_PACKAGE_$(strip $(CAMCORDER_SUPPORT))__
else
$(warning ERROR: Please set CAMCORDER_SUPPORT as STANDARD or FULL.)
DEPENDENCY_CONFLICT = TRUE
endif
else
COM_DEFS += __CAMCORDER_SUPPORT__ __CAMCORDER_PACKAGE_$(strip $(CAMCORDER_SUPPORT))__
endif
endif
endif
ifdef GIF_DECODE
ifeq ($(strip $(GIF_DECODE)),TRUE)
ifeq ($(strip $(MMI_VERSION)),EMPTY_MMI)
$(warning ERROR: Graphics features are not supported on EMPTY_MMI projects; please set GIF_DECODE = FALSE.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += GIF_DECODE
COM_DEFS += USE_SW_GIF_DECODER
ifeq ($(strip $(PLATFORM)),MT6268A)
COM_DEFS += USE_HW_GIF_DECODER_V3
COM_DEFS += USE_HW_GIF_DECODER
endif
ifeq ($(strip $(PLATFORM)),MT6268)
COM_DEFS += USE_HW_GIF_DECODER_V3
COM_DEFS += USE_HW_GIF_DECODER
endif
ifeq ($(strip $(PLATFORM)),MT6270A)
COM_DEFS += USE_HW_GIF_DECODER_V3
COM_DEFS += USE_HW_GIF_DECODER
endif
ifeq ($(strip $(PLATFORM)),MT6276)
COM_DEFS += USE_HW_GIF_DECODER_V4
COM_DEFS += USE_HW_GIF_DECODER
endif
endif
endif
ifdef PNG_DECODE
ifeq ($(strip $(PNG_DECODE)), TRUE)
ifeq ($(strip $(MMI_VERSION)),EMPTY_MMI)
$(warning ERROR: Graphics features are not supported on EMPTY_MMI projects; please set PNG_DECODE = FALSE.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += PNG_DECODE
PNG_DECODE_HW_PLATFORM = MT6238 MT6239 MT6268A MT6268 MT6270A MT6276
ifneq ($(filter $(strip $(PLATFORM)) ,$(PNG_DECODE_HW_PLATFORM)),)
COM_DEFS += USE_HW_PNG_DECODER
else
COM_DEFS += USE_SW_PNG_DECODER
endif
endif
endif
ifdef CMOS_SENSOR
ifneq ($(strip $(CMOS_SENSOR)),NONE)
ifeq ($(strip $(SENSOR_TYPE)),JPEG)
COM_DEFS += CMOS_SENSOR_MAIN $(strip $(CMOS_SENSOR))_YUV $(strip $(CMOS_SENSOR))_YUV_MAIN
else
COM_DEFS += CMOS_SENSOR_MAIN $(strip $(CMOS_SENSOR))_$(strip $(SENSOR_TYPE)) $(strip $(CMOS_SENSOR))_$(strip $(SENSOR_TYPE))_MAIN
endif
endif
ifeq ($(strip $(CMOS_SENSOR)),NONE)
ifdef ISP_SUPPORT
ifeq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR,ISP_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifneq ($(findstring _MIPI,$(CMOS_SENSOR)),)
COM_DEFS += MIPI_SENSOR_SUPPORT
endif
endif
ifdef CMOS_SENSOR
ifneq ($(strip $(CMOS_SENSOR)),NONE)
ifneq ($(strip $(ISP_SUPPORT)),FALSE)
COMMINCDIRS += custom\drv\Camera_common
endif
ifeq ($(strip $(SENSOR_TYPE)),RAW)
COMMINCDIRS += custom\drv\image_sensor\$(strip $(CMOS_SENSOR))
endif
ifeq ($(strip $(SENSOR_TYPE)),YUV)
COMMINCDIRS += custom\drv\YUV_sensor\$(strip $(CMOS_SENSOR))
COM_DEFS += YUV_SENSOR_SUPPORT
endif
ifeq ($(strip $(SENSOR_TYPE)),JPEG)
COMMINCDIRS += custom\drv\JPEG_sensor\$(strip $(CMOS_SENSOR))
COM_DEFS += YUV_SENSOR_SUPPORT
endif
ifeq ($(strip $(SENSOR_TYPE)),DIRECT)
COMMINCDIRS += drv\drv_sec\include \
media\camera\include
COM_DEFS += __DIRECT_SENSOR_SUPPORT__ __$(strip $(CMOS_SENSOR))__
endif
ifdef SENSOR_TYPE
ifneq ($(strip $(SENSOR_TYPE)),NONE)
CUS_REL_BASE_COMP += custom\drv\Image_sensor \
custom\drv\YUV_sensor \
custom\drv\Lens_module
endif
endif
endif
endif
ifdef CMOS_SENSOR
ifeq ($(strip $(CMOS_SENSOR)),NONE)
ifdef ATV_SUPPORT
ifneq ($(strip $(ATV_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR,ATV_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
ifdef LENS_MODULE
ifneq ($(strip $(LENS_MODULE)),NONE)
ifndef AF_SUPPORT
$(call DEP_ERR_ONA_OR_OFFB,AF_SUPPORT,LENS_MODULE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(AF_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,AF_SUPPORT,LENS_MODULE)
DEPENDENCY_CONFLICT = TRUE
endif
ifndef CMOS_SENSOR
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR,LENS_MODULE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(CMOS_SENSOR)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR,LENS_MODULE)
DEPENDENCY_CONFLICT = TRUE
endif
COMMINCDIRS += custom\drv\lens_module\$(strip $(LENS_MODULE))
COM_DEFS += $(strip $(LENS_MODULE))
endif
endif
ifdef LENS_MODULE_BAK1
ifneq ($(strip $(LENS_MODULE_BAK1)),NONE)
ifndef CMOS_SENSOR_BAK1
$(warning ERROR: Please define CMOS_SENSOR_BAK1 when LENS_MODULE_BAK1 is defined)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(CMOS_SENSOR_BAK1)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR_BAK1,LENS_MODULE_BAK1)
DEPENDENCY_CONFLICT = TRUE
endif
COMMINCDIRS += custom\drv\lens_module\$(strip $(LENS_MODULE_BAK1))
COM_DEFS += $(strip $(LENS_MODULE_BAK1))
endif
endif
ifdef CMOS_SENSOR_SUB
ifneq ($(strip $(CMOS_SENSOR_SUB)),NONE)
ifeq ($(strip $(DUAL_CAMERA_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,DUAL_CAMERA_SUPPORT,CMOS_SENSOR_SUB)
DEPENDENCY_CONFLICT = TRUE
endif
ifndef SENSOR_TYPE_SUB
$(call DEP_ERR_ONA_OR_OFFB,SENSOR_TYPE_SUB,CMOS_SENSOR_SUB)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(SENSOR_TYPE_SUB)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,SENSOR_TYPE_SUB,CMOS_SENSOR_SUB)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(SENSOR_TYPE_SUB)),RAW)
COMMINCDIRS += custom\drv\image_sensor\$(strip $(CMOS_SENSOR_SUB))
endif
ifeq ($(strip $(SENSOR_TYPE_SUB)),YUV)
COMMINCDIRS += custom\drv\YUV_sensor\$(strip $(CMOS_SENSOR_SUB))
COM_DEFS += YUV_SENSOR_SUPPORT
endif
ifeq ($(strip $(SENSOR_TYPE_SUB)),JPEG)
COMMINCDIRS += custom\drv\JPEG_sensor\$(strip $(CMOS_SENSOR_SUB))
COM_DEFS += YUV_SENSOR_SUPPORT
endif
endif
endif
ifeq ($(strip $(SENSOR_TYPE_SUB)),JPEG)
COM_DEFS += CMOS_SENSOR_SUB $(strip $(CMOS_SENSOR_SUB))_YUV $(strip $(CMOS_SENSOR_SUB))_YUV_SUB
else
COM_DEFS += CMOS_SENSOR_SUB $(strip $(CMOS_SENSOR_SUB))_$(strip $(SENSOR_TYPE_SUB)) $(strip $(CMOS_SENSOR_SUB))_$(strip $(SENSOR_TYPE_SUB))_SUB
endif
endif
endif
ifdef CMOS_SENSOR_BAK1
ifndef LENS_MODULE_BAK1
$(warning ERROR: Please define LENS_MODULE_BAK1 when CMOS_SENSOR_BAK1 is defined)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(CMOS_SENSOR_BAK1)),NONE)
ifndef BACKUP_SENSOR_SUPPORT
$(call DEP_ERR_ONA_OR_OFFB,BACKUP_SENSOR_SUPPORT,CMOS_SENSOR_BAK1)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(BACKUP_SENSOR_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,BACKUP_SENSOR_SUPPORT,CMOS_SENSOR_BAK1)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifndef SENSOR_TYPE
$(call DEP_ERR_ONA_OR_OFFB,SENSOR_TYPE,CMOS_SENSOR_BAK1)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(SENSOR_TYPE)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,SENSOR_TYPE,CMOS_SENSOR_BAK1)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(SENSOR_TYPE)),RAW)
COMMINCDIRS += custom\drv\image_sensor\$(strip $(CMOS_SENSOR_BAK1))
endif
ifeq ($(strip $(SENSOR_TYPE)),YUV)
COMMINCDIRS += custom\drv\YUV_sensor\$(strip $(CMOS_SENSOR_BAK1))
COM_DEFS += YUV_SENSOR_SUPPORT
endif
ifeq ($(strip $(SENSOR_TYPE)),JPEG)
COMMINCDIRS += custom\drv\JPEG_sensor\$(strip $(CMOS_SENSOR_BAK1))
COM_DEFS += YUV_SENSOR_SUPPORT
endif
endif
endif
COM_DEFS += CMOS_SENSOR_BAK1 $(strip $(CMOS_SENSOR_BAK1))_$(strip $(SENSOR_TYPE)) $(strip $(CMOS_SENSOR_BAK1))_$(strip $(SENSOR_TYPE))_BAK1
endif
endif
ifdef CMOS_SENSOR_SUB_BAK1
ifneq ($(strip $(CMOS_SENSOR_SUB_BAK1)),NONE)
ifndef BACKUP_SENSOR_SUPPORT
$(call DEP_ERR_ONA_OR_OFFB,BACKUP_SENSOR_SUPPORT,CMOS_SENSOR_SUB_BAK1)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(BACKUP_SENSOR_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,BACKUP_SENSOR_SUPPORT,CMOS_SENSOR_SUB_BAK1)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifndef SENSOR_TYPE_SUB
$(call DEP_ERR_ONA_OR_OFFB,SENSOR_TYPE_SUB,CMOS_SENSOR_SUB_BAK1)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(SENSOR_TYPE_SUB)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,SENSOR_TYPE_SUB,CMOS_SENSOR_SUB_BAK1)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(SENSOR_TYPE_SUB)),RAW)
COMMINCDIRS += custom\drv\image_sensor\$(strip $(CMOS_SENSOR_SUB_BAK1))
endif
ifeq ($(strip $(SENSOR_TYPE_SUB)),YUV)
COMMINCDIRS += custom\drv\YUV_sensor\$(strip $(CMOS_SENSOR_SUB_BAK1))
COM_DEFS += YUV_SENSOR_SUPPORT
endif
ifeq ($(strip $(SENSOR_TYPE_SUB)),JPEG)
COMMINCDIRS += custom\drv\JPEG_sensor\$(strip $(CMOS_SENSOR_SUB_BAK1))
COM_DEFS += YUV_SENSOR_SUPPORT
endif
endif
endif
ifeq ($(strip $(SENSOR_TYPE_SUB)),JPEG)
COM_DEFS += CMOS_SENSOR_SUB_BAK1 $(strip $(CMOS_SENSOR_SUB_BAK1))_YUV $(strip $(CMOS_SENSOR_SUB_BAK1))_YUV_SUB_BAK1
else
COM_DEFS += CMOS_SENSOR_SUB_BAK1 $(strip $(CMOS_SENSOR_SUB_BAK1))_$(strip $(SENSOR_TYPE_SUB)) $(strip $(CMOS_SENSOR_SUB_BAK1))_$(strip $(SENSOR_TYPE_SUB))_SUB_BAK1
endif
endif
endif
ifdef DUAL_CAMERA_SUPPORT
ifeq ($(strip $(DUAL_CAMERA_SUPPORT)),TRUE)
ifndef CMOS_SENSOR_SUB
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR_SUB,DUAL_CAMERA_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(CMOS_SENSOR_SUB)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR_SUB,DUAL_CAMERA_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COM_DEFS += DUAL_CAMERA_SUPPORT
else
ifneq ($(strip $(CMOS_SENSOR_SUB)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,DUAL_CAMERA_SUPPORT,CMOS_SENSOR_SUB)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifdef BACKUP_SENSOR_SUPPORT
ifeq ($(strip $(BACKUP_SENSOR_SUPPORT)),TRUE)
ifndef CMOS_SENSOR_BAK1
ifndef CMOS_SENSOR_SUB_BAK1
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR_BAK1/CMOS_SENSOR_SUB_BAK1,BACKUP_SENSOR_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(CMOS_SENSOR_SUB_BAK1)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR_BAK1/CMOS_SENSOR_SUB_BAK1,BACKUP_SENSOR_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
else
ifeq ($(strip $(CMOS_SENSOR_BAK1)),NONE)
ifndef CMOS_SENSOR_SUB_BAK1
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR_BAK1/CMOS_SENSOR_SUB_BAK1,BACKUP_SENSOR_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(CMOS_SENSOR_SUB_BAK1)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR_BAK1/CMOS_SENSOR_SUB_BAK1,BACKUP_SENSOR_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
COM_DEFS += BACKUP_SENSOR_SUPPORT
else
ifdef CMOS_SENSOR_BAK1
ifneq ($(strip $(CMOS_SENSOR_BAK1)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,BACKUP_SENSOR_SUPPORT,CMOS_SENSOR_BAK1)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifdef CMOS_SENSOR_SUB_BAK1
ifneq ($(strip $(CMOS_SENSOR_SUB_BAK1)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,BACKUP_SENSOR_SUPPORT,CMOS_SENSOR_SUB_BAK1)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifdef LENS_MODULE_BAK1
ifneq ($(strip $(LENS_MODULE_BAK1)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,BACKUP_SENSOR_SUPPORT,LENS_MODULE_BAK1)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
ifdef WEBCAM_SUPPORT
ifeq ($(strip $(WEBCAM_SUPPORT)),TRUE)
ifeq ($(strip $(CMOS_SENSOR)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR,WEBCAM_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifndef CMOS_SENSOR
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR,WEBCAM_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,WEBCAM_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
WEBCAM_SUPPORT_NOT_SUPPORT_PLATFORM = MT6205B MT6217 MT6218B
ifneq ($(filter $(strip $(PLATFORM)),$(WEBCAM_SUPPORT_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) not support WEBCAM_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(USB_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,USB_SUPPORT,WEBCAM_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += WEBCAM_SUPPORT
endif
endif
endif
ifeq ($(strip $(VENDOR)),NONE)
CUS_REL_BASE_COMP += media\camera\include
endif
endif
ifdef SENSOR_ROTATE
ifneq ($(strip $(SENSOR_ROTATE)),NONE)
COM_DEFS += $(strip $(SENSOR_ROTATE))
endif
endif
ifdef SENSOR_SUB_ROTATE
ifneq ($(strip $(SENSOR_SUB_ROTATE)),NONE)
COM_DEFS += SUB_$(strip $(SENSOR_SUB_ROTATE))
endif
endif
ifdef SENSOR_LOCATION
ifneq ($(strip $(SENSOR_LOCATION)),NONE)
COM_DEFS += $(strip $(SENSOR_LOCATION))
endif
endif
ifdef MOTION_SENSOR_SUPPORT
ifneq ($(strip $(MOTION_SENSOR_SUPPORT)),NONE)
COM_DEFS += $(strip $(MOTION_SENSOR_SUPPORT))
COM_DEFS += MOTION_SENSOR_SUPPORT
COMMINCDIRS += custom\drv\motion_sensor\$(strip $(MOTION_SENSOR_SUPPORT))
CUS_REL_BASE_COMP += custom\drv\motion_sensor
COMPOBJS += vendor\sensor\mcube\lib\mcube_algo.lib
CUS_REL_OBJ_LIST += vendor\sensor\mcube\lib\mcube_algo.lib
CUS_REL_BASE_COMP += vendor\sensor\mcube\inc
ifeq ($(strip $(MOTION_SENSOR_SUPPORT)),MC3230_I2C)
COM_DEFS += __MOTION_SENSOR_ADVANCED_GESTURE__
endif
endif
endif
ifdef AMR_LINK_SUPPORT
ifeq ($(strip $(AMR_LINK_SUPPORT)),TRUE)
COM_DEFS += __AMR_SUPPORT__
endif
endif
ifdef HAND_WRITING
ifeq ($(strip $(HAND_WRITING)),NONE)
COM_DEFS += __NO_HANDWRITING__
endif
else
COM_DEFS += __NO_HANDWRITING__
endif
TP_INTERNAL_SUPPORT_PLATFORM = MT6235 MT6235B MT6236 MT6236B MT6238 MT6239 MT6268 MT6268A MT6516 MT6252 MT6252H MT6253 MT6253E MT6253L MT6253T MT6270A MT6276 MT6256 MT6251 MT6573 MT6921 MT6255 MT6922 MT6250 MT6260 MT6261
ifdef TOUCH_PANEL_SUPPORT
CUS_REL_FILES_LIST += $(call AUTO_MERGE_FILE_CHECK,custom\drv\misc_drv,touch_panel_custom.h)
CUS_REL_FILES_LIST += $(call AUTO_MERGE_FILE_CHECK,custom\drv\misc_drv,touch_panel_spi.h)
ifneq ($(strip $(TOUCH_PANEL_SUPPORT)),NONE)
ifeq ($(strip $(MMI_VERSION)),NEPTUNE_MMI)
$(warning ERROR: TOUCH_PANEL does not support NEPTUNE_MMI)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(TOUCH_PANEL_SUPPORT)),TP_INTERNAL)
ifeq ($(filter $(strip $(PLATFORM)) ,$(TP_INTERNAL_SUPPORT_PLATFORM)),)
$(warning ERROR: $(PLATFORM) does not support TOUCH_PANEL_SUPPORT = TP_INTERNAL)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += TOUCH_PANEL_SUPPORT
COM_DEFS += TOUCH_PANEL_PRESSURE
COM_DEFS += TOUCH_PANEL_INTERNAL
COM_DEFS += __TOUCH_PANEL_RESISTANCE__
endif
ifneq ($(filter TP_INTERNAL_RTP_MULTIPLE%,$(TOUCH_PANEL_SUPPORT)),)
ifeq ($(filter $(strip $(PLATFORM)) ,$(TP_INTERNAL_SUPPORT_PLATFORM)),)
$(warning ERROR: $(PLATFORM) does not support TOUCH_PANEL_SUPPORT = TP_INTERNAL_RTP_MULTIPLE)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += TOUCH_PANEL_SUPPORT
COM_DEFS += TOUCH_PANEL_PRESSURE
COM_DEFS += TOUCH_PANEL_INTERNAL
COM_DEFS += __TOUCH_PANEL_MULTITOUCH__
COM_DEFS += __TOUCH_PANEL_RESISTANCE__
endif
ifneq ($(filter CTP_%,$(TOUCH_PANEL_SUPPORT)),)
COM_DEFS += TOUCH_PANEL_SUPPORT
COM_DEFS += __TOUCH_PANEL_CAPACITY__
COM_DEFS += __$(strip $(TOUCH_PANEL_SUPPORT))__
endif
ifneq ($(filter RTP_%,$(TOUCH_PANEL_SUPPORT)),)
COM_DEFS += TOUCH_PANEL_SUPPORT
COM_DEFS += __TOUCH_PANEL_RESISTANCE__
COM_DEFS += __$(strip $(TOUCH_PANEL_SUPPORT))__
endif
ifneq ($(filter %_TRUE_MULTIPLE,$(TOUCH_PANEL_SUPPORT)),)
COM_DEFS += __TOUCH_PANEL_TRUE_MULTITOUCH__
else
ifneq ($(filter %_FAKE_MULTIPLE,$(TOUCH_PANEL_SUPPORT)),)
COM_DEFS += __TOUCH_PANEL_FAKE_MULTITOUCH__
endif
endif
endif
ifdef TOUCH_PANEL_SUPPORT
ifeq ($(strip $(TOUCH_PANEL_SUPPORT)),TP_INTERNAL_RTP_MULTIPLE)
COMPLIST += drv_tp
endif
endif
ifdef TOUCH_PANEL_SUPPORT
ifeq ($(strip $(TOUCH_PANEL_SUPPORT)),NONE)
ifeq ($(strip $(TOUCH_PANEL_SHORTCUT_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,TOUCH_PANEL_SUPPORT,TOUCH_PANEL_SHORTCUT_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
else
ifeq ($(strip $(TOUCH_PANEL_SHORTCUT_SUPPORT)),TRUE)
COM_DEFS += TOUCH_PANEL_SHORTCUT_SUPPORT
endif
endif
endif
ifdef TOUCH_PAD_SUPPORT
ifeq ($(strip $(TOUCH_PAD_SUPPORT)),TRUE)
ifneq ($(strip $(DEMO_PROJECT)),TRUE)
$(warning ERROR: TOUCH_PAD_SUPPORT can be turned on only in the internal project)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += TOUCH_PAD_SUPPORT
endif
endif
ifndef GPRS_MAX_PDP_SUPPORT
GPRS_MAX_PDP_SUPPORT = 2
ifdef LOW_COST_SUPPORT
ifneq ($(strip $(LOW_COST_SUPPORT)),NONE)
GPRS_MAX_PDP_SUPPORT = 1
endif
endif
endif
# define GPRS_MAX_PDP_SUPPORT = 2~7
ifdef GPRS_MAX_PDP_SUPPORT
COM_DEFS += GPRS_MAX_PDP_SUPPORT=$(strip $(GPRS_MAX_PDP_SUPPORT))
endif
# currently, we define the same number of internal PDPs == GPRS_MAX_PDP_SUPPORT if the TCPIP is turned on (TCPIP_SUPPORT!=NONE)
# if there is no TCPIP, then we define MAX_INT_PDP_CONTEXT=0
ifdef TCPIP_SUPPORT
ifneq ($(strip $(TCPIP_SUPPORT)),NONE)
MAX_INT_PDP_CONTEXT=$(strip $(GPRS_MAX_PDP_SUPPORT))
else
MAX_INT_PDP_CONTEXT=0
endif
endif
COM_DEFS += MAX_INT_PDP_CONTEXT=$(strip $(MAX_INT_PDP_CONTEXT))
# if the MAX_INT_PDP_CONTEXT > 0, that means we support at least 1 internal PDP, so we define __INT_PDP_CONTEXT_ON__
ifeq ($(call gt,$(strip $(MAX_INT_PDP_CONTEXT)),0),T)
COM_DEFS += __INT_PDP_CONTEXT_ON__
endif
# if the internal PDP support > 1 and GPRS_MAX_PDP_SUPPORT > 1,
# that means we support at least 2 internal PDP
# and the SM can activate at least 2 PDP context,
# in this situation, we can support internal secondary PDP context, so we define __INT_SECONDARY_PDP_FEASIBLE__
ifeq ($(call gt,$(strip $(GPRS_MAX_PDP_SUPPORT)),1),T)
ifeq ($(call gt,$(strip $(MAX_INT_PDP_CONTEXT)),1),T)
COM_DEFS += __INT_SECONDARY_PDP_FEASIBLE__
endif
endif
# if do not define MAX_EXT_PDP_CONTEXT in make file,
# in low cost project we will defaultly support 1 GPRS AT context ID
# otherwise, we will defaultly support 3 GPRS AT context ID
ifndef MAX_EXT_PDP_CONTEXT
ifdef LOW_COST_SUPPORT
ifneq ($(strip $(LOW_COST_SUPPORT)),NONE)
#if COMMON low cost or ULC low cost
MAX_EXT_PDP_CONTEXT = 1
COM_DEFS += __MAX_EXT_PDP_CONTEXT_NUMBER_USE_LOW_COST_DEFAULT_VALUE__
else
#if not low cost
MAX_EXT_PDP_CONTEXT = 3
COM_DEFS += __MAX_EXT_PDP_CONTEXT_NUMBER_USE_NON_LOW_COST_DEFAULT_VALUE__
endif
else
MAX_EXT_PDP_CONTEXT = 3
COM_DEFS += __MAX_EXT_PDP_CONTEXT_NUMBER_USE_NON_LOW_COST_DEFAULT_VALUE__
endif
endif
# define MAX_EXT_PDP_CONTEXT = 0~7, depends on feature option setting from make file
COM_DEFS += MAX_EXT_PDP_CONTEXT=$(strip $(MAX_EXT_PDP_CONTEXT))
# if MAX_INT_PDP_CONTEXT + MAX_EXT_PDP_CONTEXT < GPRS_MAX_PDP_SUPPORT
# error and stop build (in tcm hedear file check)
# if the MAX_EXT_PDP_CONTEXT < 0, error and stop compile
# if the MAX_EXT_PDP_CONTEXT > 7, error and stop compile
# if the MAX_EXT_PDP_CONTEXT > 0, that means we support at least 1 GPRS AT context ID, so we define __EXT_PDP_CONTEXT_ON__
ifeq ($(call lt,$(strip $(MAX_EXT_PDP_CONTEXT)),0),T)
$(warning ERROR: MAX_EXT_PDP_CONTEXT value ($(MAX_EXT_PDP_CONTEXT)) should not be less than 0)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(call gt,$(strip $(MAX_EXT_PDP_CONTEXT)),7),T)
$(warning ERROR: MAX_EXT_PDP_CONTEXT value ($(MAX_EXT_PDP_CONTEXT)) should not be greater than 7)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(call gt,$(strip $(MAX_EXT_PDP_CONTEXT)),0),T)
COM_DEFS += __EXT_PDP_CONTEXT_ON__
endif
# if the MAX_EXT_PDP_CONTEXT > 1 and GPRS_MAX_PDP_SUPPORT > 1,
# that means we support at least 2 GPRS AT context ID,
# and the SM can activate at least 2 PDP context,
# in this situation, we can support AT triggered secondary PDP context, so we define __EXT_SECONDARY_PDP_FEASIBLE__
# if AT_COMMAND_SET is not SLIM, that means we can use AT+CGDSCONT and AT+CGTFT
# so we can define __TURN_ON_EXTERNAL_SECONDARY_PDP__ and __TURN_ON_GENERAL_SECONDARY_PDP__
ifeq ($(call gt,$(strip $(MAX_EXT_PDP_CONTEXT)),1),T)
# TCM support >= 2 external PDP
ifeq ($(call gt,$(strip $(GPRS_MAX_PDP_SUPPORT)),1),T)
# SM support >= 2 PDP
COM_DEFS += __EXT_SECONDARY_PDP_FEASIBLE__
ifdef AT_COMMAND_SET
ifeq ($(strip $(AT_COMMAND_SET)),SLIM)
# SLIM AT, there are no AT+CGDSCONT and no AT+CGTFT
else
# FULL AT, so AT support AT+CGDSCONT and AT+CGTFT
COM_DEFS += __TURN_ON_EXTERNAL_SECONDARY_PDP__
COM_DEFS += __TURN_ON_GENERAL_SECONDARY_PDP__
endif
else
# backward compatible, not define AT_COMMAND_SET, we assume using full at command set
COM_DEFS += __TURN_ON_EXTERNAL_SECONDARY_PDP__
COM_DEFS += __TURN_ON_GENERAL_SECONDARY_PDP__
endif
endif
endif
ifdef UART3_SUPPORT
ifeq ($(strip $(UART3_SUPPORT)),TRUE)
UART3_NOT_SUPPORT_PLATFORM = MT6205 MT6208 MT6205B MT6208B MT6260
ifneq ($(filter $(strip $(PLATFORM)),$(UART3_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) not support UART3_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __UART3_SUPPORT__
UART_PORT_FREE_COUNT = 1
else
UART_PORT_FREE_COUNT = 0
endif
else
UART_PORT_FREE_COUNT = 0
endif
BLUETOOTH_SUPPORT_UART_CHIP = BTMTK_MT6601 BTMTK_MT6611 BTMTK_MT6612 BTMTK_MT6616 BTMTK_MT6622 BTMTK_MT6626 BTMTK_MT6612_22_26
ifneq ($(filter $(strip $(BLUETOOTH_SUPPORT)),$(BLUETOOTH_SUPPORT_UART_CHIP)),)
BT_USE_UART = TRUE
else
BT_USE_UART = FALSE
endif
ifeq ($(strip $(BT_USE_UART)), FALSE)
ifdef TOUCH_PAD_SUPPORT
ifeq ($(strip $(TOUCH_PAD_SUPPORT)), TRUE)
UART_PORT_USED_COUNT = 1
else
UART_PORT_USED_COUNT = 0
endif
else
UART_PORT_USED_COUNT = 0
endif
else
ifdef TOUCH_PAD_SUPPORT
ifeq ($(strip $(TOUCH_PAD_SUPPORT)), TRUE)
UART_PORT_USED_COUNT = 2
else
UART_PORT_USED_COUNT = 1
endif
else
UART_PORT_USED_COUNT = 1
endif
endif
ifeq ($(strip $(UART_PORT_FREE_COUNT)),1)
ifeq ($(strip $(UART_PORT_USED_COUNT)),2)
# uart count is not enough for engineer mode
COM_DEFS += __ONLY_ONE_UART__
endif
endif
ifeq ($(strip $(UART_PORT_FREE_COUNT)),0)
ifneq ($(strip $(UART_PORT_USED_COUNT)),0)
# uart count is not enough for engineer mode
COM_DEFS += __ONLY_ONE_UART__
endif
endif
ifdef IPERF_SUPPORT
ifneq ($(strip $(IPERF_SUPPORT)),NONE)
ifneq ($(strip $(TCPIP_SUPPORT)),UDP_TCP)
$(call DEP_ERR_SETA_OR_OFFB,TCPIP_SUPPORT,UDP_TCP,IPERF_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(IPERF_SUPPORT)),QUAD)
COM_DEFS += __IPERF__
COM_DEFS += __IPERF2__
COM_DEFS += __IPERF3__
COM_DEFS += __IPERF4__
endif
ifeq ($(strip $(IPERF_SUPPORT)),TRIPLE)
COM_DEFS += __IPERF__
COM_DEFS += __IPERF2__
COM_DEFS += __IPERF3__
endif
ifeq ($(strip $(IPERF_SUPPORT)),DUAL)
COM_DEFS += __IPERF__
COM_DEFS += __IPERF2__
endif
ifeq ($(strip $(IPERF_SUPPORT)),SINGLE)
COM_DEFS += __IPERF__
endif
endif
ifdef IPERF_SUPPORT
ifneq ($(strip $(IPERF_SUPPORT)),NONE)
COMP_TRACE_DEFS += inet_ps\iperf\include\iperf_trc.h
COMMINCDIRS += inet_ps\iperf\include
endif
endif
ifdef IPERF_WMM_PS_TEST_SUPPORT
ifeq ($(strip $(IPERF_WMM_PS_TEST_SUPPORT)),TRUE)
ifndef IPERF_SUPPORT
$(call DEP_ERR_ONA_OR_OFFB,IPERF_SUPPORT,IPERF_WMM_PS_TEST_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(IPERF_SUPPORT)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,IPERF_SUPPORT,IPERF_WMM_PS_TEST_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(WIFI_SUPPORT)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,WIFI_SUPPORT,IPERF_WMM_PS_TEST_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __IPERF_WMM_PS_TEST__
endif
endif
ARM11_FOTA_PLATFORM = MT6276 MT6256
ARM9_FOTA_PLATFORM = MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268 MT6270A MT6921 MT6255 MT6922
ARM7_FOTA_PLATFORM = MT6223 MT6223P MT6229 MT6228 MT6230 MT6225 MT6226 MT6226M MT6226D MT6227 MT6227D MT6253 MT6253E MT6253L MT6252 MT6252H
ifdef FOTA_ENABLE
ifneq ($(strip $(FOTA_ENABLE)),NONE)
ifneq ($(strip $(SYNCML_DM_SUPPORT)),FALSE)
ifeq ($(strip $(FOTA_ENABLE)),FOTA_DM)
COM_DEFS += _DM_OMADL_VIA_DLAGENT_ __DM_FOTA_SUPPORT__
endif
endif
COM_DEFS += __$(strip $(FOTA_ENABLE))__ __FOTA_ENABLE__
ifeq ($(strip $(FOTA_ENABLE)),FOTA_DM)
ifeq ($(strip $(NAND_FLASH_BOOTING)),NONE)
ifeq ($(strip $(SYSTEM_DRIVE_ON_NAND)),TRUE)
$(call DEP_ERR_SETA_OR_OFFB,FOTA_ENABLE,non FOTA_DM,SYSTEM_DRIVE_ON_NAND)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifdef SW_BINDING_SUPPORT
ifneq ($(strip $(SW_BINDING_SUPPORT)),NONE)
ifeq ($(strip $(SW_BINDING_SUPPORT)),BIND_TO_CHIP_BASIC)
$(call DEP_ERR_SETA_OR_SETB,FOTA_ENABLE,non FOTA_DM,SW_BINDING_SUPPORT,non BIND_TO_CHIP_BASIC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
COMPLIST += ssf
CUS_REL_BASE_COMP += hal\system\bootloader make\bootloader ssf\inc vendor\hp_fota\UA
CUS_REL_FILES_LIST += custom\drv\common_drv\gpio_setting.c
CUS_REL_FILES_LIST += sss\interface\src\SSS_interface.c
CUS_REL_FILES_LIST += interface\hal\graphics\app_zlib.h sst\include\sst_fue_encrypt.h
CUS_REL_FILES_LIST += dp_engine\che\sha1.h dp_engine\che\rsa.h dp_engine\che\bignum.h
endif
CUS_REL_FILES_LIST += init\src\emi.c
CUS_REL_BASE_COMP += fota make\fota
endif
endif
ifdef FOTA_UPDATE_PACKAGE_ON_NAND
ifeq ($(strip $(FOTA_UPDATE_PACKAGE_ON_NAND)),TRUE)
ifeq ($(strip $(FOTA_ENABLE)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,FOTA_ENABLE,FOTA_UPDATE_PACKAGE_ON_NAND)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __UP_PKG_ON_NAND__
endif
endif
ifeq ($(strip $(FOTA_UPDATE_PACKAGE_ON_NAND)),TRUE)
ifdef NAND_FLASH_BOOTING
ifneq ($(strip $(NAND_FLASH_BOOTING)),NONE)
$(warning ERROR: Please set NAND_FLASH_BOOTING to NONE ,when FOTA_UPDATE_PACKAGE_ON_NAND is TRUE.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ENHANCED_SINGLE_BANK_NOR_FLASH_SUPPORT_SUPPORTED_PLATFORM = MT6205B MT6223 MT6223P MT6225 MT6253T MT6253 MT6253E MT6253L MT6252 MT6252H MT6226 MT6226D MT6226M MT6227 MT6229 MT6230 MT6227D MT6235 MT6235B MT6253 MT6251 MT6253E MT6253L MT6236 MT6921 MT6255 MT6922 MT6250 MT6260 MT6261
ifdef ENHANCED_SINGLE_BANK_NOR_FLASH_SUPPORT
ifeq ($(strip $(ENHANCED_SINGLE_BANK_NOR_FLASH_SUPPORT)),TRUE)
ifeq ($(filter $(strip $(PLATFORM)) ,$(ENHANCED_SINGLE_BANK_NOR_FLASH_SUPPORT_SUPPORTED_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support ENHANCED_SINGLE_BANK_NOR_FLASH_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(SYSTEM_DRIVE_ON_NAND)),TRUE)
$(call DEP_ERR_OFFA_OR_OFFB,ENHANCED_SINGLE_BANK_NOR_FLASH_SUPPORT,SYSTEM_DRIVE_ON_NAND)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(SINGLE_BANK_NOR_FLASH_SUPPORT)),TRUE)
$(call DEP_ERR_OFFA_OR_OFFB,ENHANCED_SINGLE_BANK_NOR_FLASH_SUPPORT,SINGLE_BANK_NOR_FLASH_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __SINGLE_BANK_NOR_FLASH_SUPPORT__
endif
endif
endif
ifdef SW_BINDING_SUPPORT
ifneq ($(strip $(SW_BINDING_SUPPORT)),NONE)
ifeq ($(strip $(SW_BINDING_SUPPORT)),BIND_TO_CHIP_BASIC)
BIND_TO_CHIP_BASIC_SUPPORT_PLATFORM = MT6223 MT6223P MT6225 MT6235 MT6235B MT6238 MT6239 MT6253 MT6268 MT6236 MT6921 MT6252
ifeq ($(filter $(strip $(PLATFORM)) ,$(BIND_TO_CHIP_BASIC_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support SW_BINDING_SUPPORT=BIND_TO_CHIP_BASIC.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __BIND_TO_CHIP_BASIC__
endif
ifeq ($(strip $(SW_BINDING_SUPPORT)),BIND_TO_CHIP)
COM_DEFS += __BIND_TO_CHIP__
endif
ifneq ($(filter BIND_TO_KEY BIND_TO_CHIP_AND_KEY, $(strip $(SW_BINDING_SUPPORT))),)
COM_DEFS += __BIND_TO_KEY__
endif
ifneq ($(filter BIND_TO_CHIP BIND_TO_CHIP_AND_KEY, $(strip $(SW_BINDING_SUPPORT))),)
COM_DEFS += __BIND_TO_CHIP__
endif
endif
else
SW_BINDING_SUPPORT = NONE
endif
ifdef RES_PROT
ifeq ($(strip $(RES_PROT)),TRUE)
ifndef SW_BINDING_SUPPORT
$(call DEP_ERR_ONA_OR_OFFB,SW_BINDING_SUPPORT,RES_PROT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(SW_BINDING_SUPPORT)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,SW_BINDING_SUPPORT,RES_PROT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __RES_PROT__
endif
endif
CARD_DOWNLOAD_NOT_SUPPORT_PLATFORM = MT6223 MT6223C MT6225
ifdef CARD_DOWNLOAD
ifneq ($(strip $(CARD_DOWNLOAD)),NONE)
ifneq ($(filter $(strip $(PLATFORM)),$(CARD_DOWNLOAD_NOT_SUPPORT_PLATFORM)),)
$(error $(strip $(PLATFORM)) does not support CARD_DOWNLOAD)
endif
COM_DEFS += __CARD_DOWNLOAD__
endif
endif
ifdef EDGE_SUPPORT
ifeq ($(strip $(EDGE_SUPPORT)),TRUE)
EDGE_SUPPORT_PLATFORM = MT6229 MT6230 MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268 TK6516 MT6516 MT6268T MT6268H MT6268A MT6268 MT6270A MT6256 MT6276 MT6573 MT6921 MT6255 MT6922 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)) ,$(EDGE_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support EGPRS.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(call Upper,$(PROJECT))),GSM)
$(warning ERROR: GSM project does not support EDGE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(R99_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,R99_SUPPORT,EDGE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __EGPRS_MODE__
L1_EPSK_TX_SUPPORT_RF_MODULE = MT6140D_RF AD6546_RF SKY74137_RF SKY74045_RF MT6256RF_RF MT6162_RF MT6163_2G_RF
ifeq ($(filter $(L1_EPSK_TX_SUPPORT_RF_MODULE),$(COM_DEFS_FOR_$(strip $(RF_MODULE)))),)
COM_DEFS += __EPSK_TX_SW_SWITCH_OFF__
endif
ifeq ($(strip $(L1_EPSK_TX)),TRUE)
COM_DEFS += __EPSK_TX__
endif
else
ifdef L1_EPSK_TX
ifeq ($(strip $(L1_EPSK_TX)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,EDGE_SUPPORT,L1_EPSK_TX)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
ifdef R99_SUPPORT
ifeq ($(strip $(R99_SUPPORT)),TRUE)
COM_DEFS += __R99__
ifeq ($(strip $(LOW_COST_SUPPORT)),NONE)
ifeq ($(strip $(L1_GPRS)),TRUE)
COM_DEFS += __TBF_EST__
endif
endif
endif
endif
ifdef R4_SUPPORT
R4_NOT_SUPPORT_PLATFORM = MT6205B MT6217 MT6218B MT6219
ifeq ($(strip $(R4_SUPPORT)),TRUE)
ifneq ($(strip $(R99_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,R99_SUPPORT,R4_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(MMI_VERSION)),NEPTUNE_MMI)
$(call DEP_ERR_SETA_OR_OFFB,MMI_VERSION,non NEPTUNE_MMI,R4_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(filter $(strip $(PLATFORM)),$(R4_NOT_SUPPORT_PLATFORM)),)
COM_DEFS += __REL4__ __GERAN_R4__
else
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) not support R4_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifdef R5_SUPPORT
R5_NOT_SUPPORT_PLATFORM = MT6205B MT6217 MT6218B MT6219
ifeq ($(strip $(R5_SUPPORT)),TRUE)
ifneq ($(strip $(R4_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,R4_SUPPORT,R5_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter $(strip $(PLATFORM)),$(R5_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support R5_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(USIM_SUPPORT)),TRUE)
ifeq ($(filter ANDROID_MODEM,$(strip $(SMART_PHONE_CORE))),)
$(call DEP_ERR_ONA_OR_OFFB,USIM_SUPPORT,R5_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifneq ($(strip $(PLATFORM)),MT6516)
COM_DEFS += __REL5__ __GERAN_R5__
ifneq ($(filter __PS_SERVICE__,$(COM_DEFS)),)
ifeq ($(strip $(MMI_VERSION)),PLUTO_MMI)
#COM_DEFS += __ACL_SUPPORT__
endif
endif
else
COM_DEFS += __REL5__ __GERAN_R5__
endif
endif
endif
ifdef CHE_SUPPORT
ifeq ($(strip $(PLATFORM)),MT6228)
ifeq ($(strip $(CHE_SUPPORT)),TRUE)
COM_DEFS += __HW_CHE__
endif
endif
endif
ifdef TV_OUT_SUPPORT
ifeq ($(strip $(CAMCORDER_SUPPORT)),NONE)
ifeq ($(strip $(HORIZONTAL_CAMERA)),TRUE)
ifeq ($(strip $(TV_OUT_SUPPORT)),TRUE)
ifeq ($(strip $(LCM_ROTATE_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,LCM_ROTATE_SUPPORT,HORIZONTAL_CAMERA/TV_OUT_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
TV_OUT_SUPPORT_PLATFORM = MT6228 MT6229 MT6268T MT6268H MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6230 MT6268A MT6268 MT6270A MT6921
ifneq ($(filter $(strip $(PLATFORM)) ,$(TV_OUT_SUPPORT_PLATFORM)),)
ifeq ($(strip $(TV_OUT_SUPPORT)),TRUE)
COM_DEFS += TV_OUT_SUPPORT
endif
endif
endif
ifdef AF_SUPPORT
ifneq ($(strip $(AF_SUPPORT)),FALSE)
ifndef LENS_MODULE
$(call DEP_ERR_ONA_OR_OFFB,LENS_MODULE,AF_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(LENS_MODULE)),NONE)
ifeq ($(strip $(SENSOR_TYPE)),RAW)
$(call DEP_ERR_ONA_OR_OFFB,LENS_MODULE,AF_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COM_DEFS += AF_SUPPORT
endif
endif
ifeq ($(strip $(AF_AUXI_LED_SUPPORT)),TRUE)
ifneq ($(strip $(AF_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,AF_SUPPORT,AF_AUXI_LED_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __AF_AUXI_LED_SUPPORT__
endif
ifdef OTG_SUPPORT
ifeq ($(strip $(OTG_SUPPORT)),TRUE)
OTG_SUPPORT_PLATFORM = MT6228 MT6229 MT6230 MT6238 MT6239 MT6268T MT6268H MT6268 MT6270A MT6276
ifeq ($(strip $(MMI_VERSION)),COSMOS_MMI)
$(warning ERROR: $(MMI_VERSION) does not support OTG_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(filter $(strip $(PLATFORM)),$(OTG_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support OTG_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(USB_IN_NORMAL_MODE_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,USB_IN_NORMAL_MODE_SUPPORT,OTG_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(USB_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,USB_SUPPORT,OTG_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __OTG_ENABLE__ __OTG_DETECT_IDPIN_WITH_EINT__
ifeq ($(strip $(USB_MASS_STORAGE_SUPPORT)),TRUE)
COM_DEFS += __OTG_ENABLE__
endif
endif
endif
endif
endif
endif
ifdef USB_MULTI_CHARGE_CURRENT_SUPPORT
ifeq ($(strip $(USB_MULTI_CHARGE_CURRENT_SUPPORT)),TRUE)
ifeq ($(strip $(USB_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,USB_SUPPORT,USB_MULTI_CHARGE_CURRENT_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __USB_MULTI_CHARGE_CURRENT__
endif
endif
endif
ifdef YUV_SENSOR_SUPPORT
ifneq ($(strip $(YUV_SENSOR_SUPPORT)),FALSE)
ifeq ($(strip $(ISP_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,YUV_SENSOR_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += YUV_SENSOR_SUPPORT
endif
endif
endif
ifdef PLATFORM
ifeq ($(strip $(PLATFORM)),MT6225)
ifdef ISP_SUPPORT
ifneq ($(strip $(ISP_SUPPORT)),FALSE)
ifdef YUV_SENSOR_SUPPORT
ifeq ($(strip $(YUV_SENSOR_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,YUV_SENSOR_SUPPORT,ISP_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
endif
endif
ifdef EXT_DAC_SUPPORT
ifeq ($(strip $(EXT_DAC_SUPPORT)),TRUE)
COM_DEFS += EXT_DAC_SUPPORT
endif
endif
ifdef EXTERNAL_AMPLIFIER_ROUTE_CONFIGURATION
ifeq ($(strip $(EXTERNAL_AMPLIFIER_ROUTE_CONFIGURATION)),TRUE)
COM_DEFS += EXTERNAL_AMPLIFIER_ROUTE_CONFIGURATION
endif
endif
ifdef DSPIRDBG
ifeq ($(strip $(DSPIRDBG)),TRUE)
ifneq ($(strip $(USB_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,USB_SUPPORT,DSPIRDBG)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __DSPIRDBG__
COM_DEFS += __USB_LOGGING__
endif
endif
ifdef DSPIRDBG_SP
ifeq ($(strip $(DSPIRDBG_SP)),TRUE)
COM_DEFS += __DSPIRDBG_SP__
endif
endif
ifdef DISPLAY_TYPE
COM_DEFS += __MMI_DISPLAY_TYPE_$(call Upper,$(strip $(DISPLAY_TYPE)))__
ifeq ($(strip $(DISPLAY_TYPE)),BW)
ifdef SENSOR_TYPE
ifeq ($(strip $(SENSOR_TYPE)),DIRECT)
$(warning ERROR: DISPLAY_TYPE = $(strip $(DISPLAY_TYPE)) does not support SENSOR_TYPE = $(strip $(SENSOR_TYPE)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
#6226C (S02), 6229E4, and 6225 and newer chip related project only.
SECURE_SUPPORT_NOT_SUPPORT_PLATFORM = MT6205B MT6208 MT6217 MT6218B MT6219 MT6226 MT6226M MT6227 MT6228 MT6229
SECURE_SUPPORT_NOT_SUPPORT_PARTIAL_PLATFORM = MT6226 MT6226M MT6227 MT6229
SECURE_SUPPORT_NOT_SUPPORT_CHIPVER = S00 S01
# For 6226, 6226M, 6227, 6229: only 6226C (S02), 6226M (S02), 6227 (S02), 6229E4 (S02) and later chip version support SECURE PLATFORM
SECURE_SUPPORT_NOT_SUPPORT_NFB_PLATFORM = MT6226 MT6229 MT6225 MT6253T MT6253 MT6253E MT6253L MT6223 MT6227 MT6230 MT6226M MT6223P MT6252 MT6252H
SECURE_SUPPORT_NOT_SUPPORT_NFB_PARTIAL_PLATFORM = MT6226 MT6229 MT6227 MT6226M
SECURE_SUPPORT_NOT_SUPPORT_NFB_CHIPVER = S00 S01 S02
# For 6229 (S00, S01, S02), 6226 (S00, S01, S02), 6227 (S00, S01, S02), 6226M (S00, S01, S02): do not support SECURE PLATFORM when NFB is on
ifdef SECURE_SUPPORT
ifeq ($(strip $(SECURE_SUPPORT)),TRUE)
ifneq ($(strip $(SECURE_RO_ENABLE)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,SECURE_RO_ENABLE,SECURE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
# Platforms which do not support secure platform
ifneq ($(filter $(strip $(PLATFORM)),$(SECURE_SUPPORT_NOT_SUPPORT_PLATFORM)),)
ifneq ($(filter $(strip $(PLATFORM)), $(SECURE_SUPPORT_NOT_SUPPORT_PARTIAL_PLATFORM)),)
# Platforms which do not support secure platform
ifneq ($(filter $(strip $(CHIP_VER)), $(SECURE_SUPPORT_NOT_SUPPORT_CHIPVER)),)
$(warning ERROR: $(strip $(PLATFORM)) $(strip $(CHIP_VER)) does not support SECURE_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
# Platforms which partially support secure platform (new chip version)
else
ifneq ($(filter $(strip $(PLATFORM)),$(SECURE_SUPPORT_NOT_SUPPORT_NFB_PARTIAL_PLATFORM)),)
ifneq ($(filter $(strip $(CHIP_VER)),$(SECURE_SUPPORT_NOT_SUPPORT_NFB_CHIPVER)),)
ifeq ($(strip $(NAND_FLASH_BOOTING)),NONE)
COM_DEFS += __MTK_SECURE_PLATFORM__
else
$(warning ERROR: $(strip $(PLATFORM)) $(strip $(CHIP_VER)) does not support SECURE_SUPPORT when NAND_FLASH_BOOTING is not NONE.)
DEPENDENCY_CONFLICT = TRUE
endif
# new chip version of partial NFB support platform
else
COM_DEFS += __MTK_SECURE_PLATFORM__
endif
endif
endif
# Platforms which do not support secure platform
else
$(warning ERROR: $(strip $(PLATFORM)) not support SECURE_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
# Platforms which support secure platform
else
ifneq ($(filter $(strip $(PLATFORM)),$(SECURE_SUPPORT_NOT_SUPPORT_NFB_PLATFORM)),)
ifneq ($(filter $(strip $(PLATFORM)),$(SECURE_SUPPORT_NOT_SUPPORT_NFB_PARTIAL_PLATFORM)),)
ifneq ($(filter $(strip $(CHIP_VER)),$(SECURE_SUPPORT_NOT_SUPPORT_NFB_CHIPVER)),)
ifeq ($(strip $(NAND_FLASH_BOOTING)),NONE)
COM_DEFS += __MTK_SECURE_PLATFORM__
else
$(warning ERROR: $(strip $(PLATFORM)) $(strip $(CHIP_VER)) not support SECURE_SUPPORT when NAND_FLASH_BOOTING is not NONE.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
# NFB support platform
else
ifeq ($(strip $(NAND_FLASH_BOOTING)),NONE)
COM_DEFS += __MTK_SECURE_PLATFORM__
else
$(warning ERROR: $(strip $(PLATFORM)) not support SECURE_SUPPORT when NAND_FLASH_BOOTING is not NONE.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
# other support platforms
else
COM_DEFS += __MTK_SECURE_PLATFORM__
endif
endif
endif
endif
ifdef FLASHLIGHT_TYPE
ifneq ($(strip $(FLASHLIGHT_TYPE)),NONE)
ifeq ($(strip $(FLASHLIGHT_TYPE)),LED_FLASHLIGHT_SUPPORT)
COM_DEFS += LED_FLASHLIGHT_SUPPORT
endif
endif
endif
ifdef FLASHLIGHT_TYPE
ifeq ($(strip $(FLASHLIGHT_TYPE)),XENON_FLASHLIGHT)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support $(strip $(FLASHLIGHT_TYPE)))
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(FLASHLIGHT_TYPE)),XENON_FLASHLIGHT_ANTI_RED_EYE)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support $(strip $(FLASHLIGHT_TYPE)))
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(FLASHLIGHT_TYPE)),LED_FLASHLIGHT_SUPPORT)
ifdef FLASHLIGHT_MODULE
ifneq ($(strip $(FLASHLIGHT_MODULE)),NONE)
$(call DEP_ERR_SETA_OR_OFFB,FLASHLIGHT_TYPE,non $(strip $(FLASHLIGHT_TYPE)),FLASHLIGHT_MODULE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(FLASHLIGHT_TYPE)),NONE)
ifdef FLASHLIGHT_MODULE
ifneq ($(strip $(FLASHLIGHT_MODULE)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,FLASHLIGHT_TYPE,FLASHLIGHT_MODULE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
ifdef CHIP_VERSION_CHECK
ifeq ($(strip $(CHIP_VERSION_CHECK)),TRUE)
COM_DEFS += __CHIP_VERSION_CHECK__
endif
else
$(warning ERROR: The feature CHIP_VERSION_CHECK should be defined as TRUE or FALSE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(SYSDRV_BACKUP_DISK_SUPPORT)),RAW)
ifneq ($(strip $(NOR_SUPPORT_RAW_DISK)),TRUE)
$(call DEP_ERR_SETA_OR_ONB,SYSDRV_BACKUP_DISK_SUPPORT),non RAW,NOR_SUPPORT_RAW_DISK)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(SYSDRV_BACKUP_DISK_SUPPORT)),FAT)
ifneq ($(strip $(NANDFDM_MULTI_INSTANCE)),TRUE)
$(call DEP_ERR_SETA_OR_ONB,SYSDRV_BACKUP_DISK_SUPPORT),non FAT,NANDFDM_MULTI_INSTANCE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifdef OMA_ULP_SUPPORT
ifeq ($(strip $(OMA_ULP_SUPPORT)), V1)
COM_DEFS += __ULP_VER_1__
endif
ifeq ($(strip $(OMA_ULP_SUPPORT)), V1.5)
COM_DEFS += __ULP_VER_1__
COM_DEFS += __ULP_VER_1_5__
endif
ifeq ($(strip $(OMA_ULP_SUPPORT)), V2)
COM_DEFS += __ULP_VER_1__
COM_DEFS += __ULP_VER_1_5__
COM_DEFS += __ULP_VER_2__
endif
endif
ifeq ($(strip $(DISABLE_A5_2)),TRUE)
COM_DEFS += __DISABLE_A5_2__
endif
ifeq ($(strip $(CAMCORDER_FACE_DETECTION_MODE_SUPPORT)),TRUE)
FACEDETECTION_NOSUPPORT_PLATFORM = MT6253 MT6253T MT6253E MT6253L MT6253PMU MT6252 MT6252H
ifneq ($(filter $(strip $(PLATFORM)) ,$(FACEDETECTION_NOSUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support Face Detection)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(CAMCORDER_SUPPORT)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,CAMCORDER_SUPPORT,CAMCORDER_FACE_DETECTION_MODE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,CAMCORDER_FACE_DETECTION_MODE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __FACE_DETECTION_SUPPORT__
ifeq ($(strip $(PLATFORM)),MT6235)
COM_DEFS += __FD_NEED_SW_ROTATE__
endif
endif
endif
ifeq ($(strip $(CAMCORDER_SMILE_SHUTTER_MODE_SUPPORT)),TRUE)
SMILESHUTTER_NOSUPPORT_PLATFORM = MT6253 MT6253T MT6253E MT6253L MT6253PMU MT6252 MT6252H
ifneq ($(filter $(strip $(PLATFORM)) ,$(SMILESHUTTER_NOSUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support Smile Shutter)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(strip $(CAMCORDER_FACE_DETECTION_MODE_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,CAMCORDER_FACE_DETECTION_MODE_SUPPORT,CAMCORDER_SMILE_SHUTTER_MODE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(LOW_COST_SUPPORT)),NONE)
ifeq ($(strip $(CAMCORDER_SUPPORT)),SLIM)
$(warning ERROR: LOW_COST_SUPPORT = $(strip $(LOW_COST_SUPPORT)) and CAMCORDER_SUPPORT = $(strip $(CAMCORDER_SUPPORT)) does not support Smile Shutter)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COM_DEFS += __SMILE_SHUTTER_SUPPORT__
endif
endif
ifeq ($(strip $(TST_LOGACC_SUPPORT)),TRUE)
ifneq ($(strip $(TST_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,TST_SUPPORT,TST_LOGACC_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __LOGACC_ENABLE__
endif
endif
ifdef MSHUTTER_SUPPORT
ifneq ($(strip $(MSHUTTER_SUPPORT)),FALSE)
ifndef CMOS_SENSOR
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR,MSHUTTER_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(CMOS_SENSOR)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,CMOS_SENSOR,MSHUTTER_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += MSHUTTER_SUPPORT
endif
endif
ifdef PMU_WITH_EXTERNL_CHARGER
ifeq ($(strip $(PMU_WITH_EXTERNL_CHARGER)),TRUE)
ifdef GENERAL_EXTERNAL_CHARGER
ifneq ($(strip $(GENERAL_EXTERNAL_CHARGER)),NONE)
$(call DEP_ERR_OFFA_OR_OFFB,GENERAL_EXTERNAL_CHARGER,PMU_WITH_EXTERNL_CHARGER)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
ifdef PMU_WITH_EXTERNL_CHARGER
ifeq ($(strip $(PMU_WITH_EXTERNL_CHARGER)),TRUE)
ifeq ($(strip $(DRV_CUSTOM_TOOL_SUPPORT)),TRUE)
COM_DEFS += __PMU_WITH_EXTERNL_CHARGER__
endif
endif
endif
ifeq ($(strip $(USB_MASS_STORAGE_SUPPORT)),TRUE)
ifeq ($(strip $(USB_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,USB_SUPPORT,USB_MASS_STORAGE_SUPPORT )
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __USB_MASS_STORAGE_ENABLE__
endif
ifeq ($(strip $(USB_COM_PORT_SUPPORT)),TRUE)
ifeq ($(strip $(USB_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,USB_SUPPORT,USB_COM_PORT_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __USB_COM_PORT_ENABLE__
endif
ifdef USB_HS_SUPPORT
ifeq ($(strip $(USB_HS_SUPPORT)),TRUE)
ifneq ($(strip $(USB_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,USB_SUPPORT,USB_HS_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
USB_HS_SUPPORT_PLATFORM = MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268A MT6268 MT6268H MT6253T MT6253 MT6516 MT6270A MT6256 MT6276 MT6573 MT6921 MT6255 MT6922
ifeq ($(filter $(strip $(PLATFORM)),$(USB_HS_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support USB_HS_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __USB_HS_ENABLE__
endif
endif
endif
endif
ifdef E_COMPASS_SENSOR_SUPPORT
ifneq ($(strip $(E_COMPASS_SENSOR_SUPPORT)),NONE)
COM_DEFS += $(strip $(E_COMPASS_SENSOR_SUPPORT))
COM_DEFS += __E_COMPASS_SENSOR_SUPPORT__
COMMINCDIRS += custom\drv\e_compass_sensor\$(strip $(E_COMPASS_SENSOR_SUPPORT))
COMMINCDIRS += vendor\e_compass_sensor\$(strip $(E_COMPASS_SENSOR_SUPPORT))
COMPLIST += ecompass
endif
endif
ifeq ($(strip $(JOGBALL_SUPPORT)),JOGBALL)
COM_DEFS += JOGBALL_SUPPORT
endif
ifeq ($(strip $(JOGBALL_SUPPORT)),OFN)
COM_DEFS += __OFN_SUPPORT__
endif
ifeq ($(strip $(3SET_F8F9_ENABLE)),TRUE)
# can ONLY be turned on for 3G projects
ifneq ($(strip $(L1_WCDMA)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,L1_WCDMA,3SET_F8F9_ENABLE)
DEPENDENCY_CONFLICT = TRUE
endif
# NOT support 3G PLATFORMs
3SET_F8F9_ENABLE_NOT_SUPPORT_3G_PLATFORM = MT6268A
ifneq ($(filter $(strip $(PLATFORM)),$(strip $(3SET_F8F9_ENABLE_NOT_SUPPORT_3G_PLATFORM))),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support 3SET_F8F9_ENABLE)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __CP_3SET_F8F9_HW_ENABLE__
endif
ifdef MP4_DECODE_MODE
ifeq ($(strip $(MP4_DECODE)),TRUE)
ifeq ($(strip $(MP4_DECODE_MODE)),SLIM)
MP4_DECODE_MODE_SLIM_SUPPORT_PLATFORM = MT6253T MT6253 MT6253E MT6253L MT6252 MT6252H MT6276 MT6255 MT6922 MT6256 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)),$(MP4_DECODE_MODE_SLIM_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support MP4_DECODE_MODE=$(strip $(MP4_DECODE_MODE)))
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __MP4_DEC_SW_SLIM__
endif
endif
endif
ifdef MP4_ENCODE_MODE
ifeq ($(strip $(MP4_ENCODE)),TRUE)
ifeq ($(strip $(MP4_ENCODE_MODE)),SLIM)
MP4_ENCODE_MODE_SLIM_SUPPORT_PLATFORM = MT6276 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)),$(MP4_ENCODE_MODE_SLIM_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support MP4_ENCODE_MODE=$(strip $(MP4_ENCODE_MODE)))
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __MPEG4_ENC_SW_SLIM__
endif
endif
endif
ifdef H264_DECODE_MODE
ifeq ($(strip $(H264_DECODE)),TRUE)
ifeq ($(strip $(H264_DECODE_MODE)),SLIM)
H264_DECODE_MODE_SLIM_SUPPORT_PLATFORM = MT6253T MT6253 MT6253E MT6253L MT6252 MT6252H MT6276 MT6235 MT6235B MT6256 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)),$(H264_DECODE_MODE_SLIM_SUPPORT_PLATFORM)),)
$(error PLATFORM $(strip $(PLATFORM)) does not support H264_DECODE_MODE=$(strip $(H264_DECODE_MODE)))
endif
COM_DEFS += __H264_DEC_SW_SLIM__
endif
endif
endif
ifdef RM_DECODE_MODE
ifeq ($(strip $(RM_DECODE)),TRUE)
ifeq ($(strip $(RM_DECODE_MODE)),SLIM)
RM_DECODE_MODE_SLIM_SUPPORT_PLATFORM = MT6253T MT6253 MT6253E MT6253L MT6252 MT6252H
ifeq ($(filter $(strip $(PLATFORM)),$(RM_DECODE_MODE_SLIM_SUPPORT_PLATFORM)),)
$(error PLATFORM $(strip $(PLATFORM)) does not support RM_DECODE_MODE=$(strip $(RM_DECODE_MODE)))
endif
COM_DEFS += __RM_DEC_SW_SLIM__
endif
endif
endif
ifeq ($(strip $(AMRWB_LINK_SUPPORT)),TRUE)
AMRWB_LINK_SUPPORT_PLATFORM = MT6276 MT6573 MT6575
ifeq ($(filter $(strip $(PLATFORM)) ,$(AMRWB_LINK_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support AMRWB_LINK_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __AMRWB_LINK_SUPPORT__
endif
ifdef EMMC_BOOTING
ifneq ($(strip $(EMMC_BOOTING)),NONE)
EMMC_BOOTING_SUPPORT_PLATFORM = MT6256 MT6276
ifeq ($(filter $(strip $(PLATFORM)) ,$(EMMC_BOOTING_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support EMMC_BOOTING)
DEPENDENCY_CONFLICT = TRUE
endif
ifdef NAND_FLASH_BOOTING
ifneq ($(strip $(NAND_FLASH_BOOTING)),NONE)
$(warning ERROR: NAND_FLASH_BOOTING and EMMC_BOOTING could not turn on simutaneously. Please turn off one.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(NAND_SUPPORT)),TRUE)
$(warning ERROR: EMMC_BOOTING cannot be enabled when NAND_SUPPORT is TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(SYSTEM_DRIVE_ON_NAND)),TRUE)
$(warning ERROR: EMMC_BOOTING cannot be enabled when SYSTEM_DRIVE_ON_NAND is TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(COMBO_MEMORY_SUPPORT)),TRUE)
$(warning ERROR: EMMC_BOOTING cannot be enabled when COMBO_MEMORY_SUPPORT is TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __EMMC_BOOTING__
ifeq ($(strip $(EMMC_BOOTING)),ONDEMAND)
ifeq ($(filter $(strip $(PLATFORM)) ,$(EMMC_BOOTING_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support EMMC_BOOTING = ONDEMAND)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __DEMAND_PAGING__
endif
ifeq ($(strip $(EMMC_BOOTING)),MIXED)
ifeq ($(filter $(strip $(PLATFORM)) ,$(EMMC_BOOTING_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support EMMC_BOOTING = MIXED)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __NFB_THIRD_ROM_SUPPORT__
COM_DEFS += __DEMAND_PAGING__
endif
endif
CUS_REL_BASE_COMP += bootloader make\bootloader
CUS_REL_FILES_LIST += custom\drv\common_drv\gpio_setting.c
CUS_REL_FILES_LIST += sss\interface\src\SSS_interface.c \
interface\l1interface\l1_interface.c interface\l1interface\internal\l1_interface.h
endif
# Determine if BOOTLOADER built required
NEED_BUILD_BOOTLOADER = FALSE
ifneq ($(strip $(NAND_FLASH_BOOTING)),NONE)
NEED_BUILD_BOOTLOADER = TRUE
BOOTLOADER_CHE = ON
else
ifdef USB_DOWNLOAD_IN_BL
ifneq ($(strip $(USB_DOWNLOAD_IN_BL)),NONE)
NEED_BUILD_BOOTLOADER = TRUE
BOOTLOADER_CHE = ON
endif
endif
ifdef FOTA_ENABLE
ifeq ($(strip $(FOTA_ENABLE)),FOTA_DM)
NEED_BUILD_BOOTLOADER = TRUE
BOOTLOADER_CHE = ON
endif
endif
ifdef SECURE_SUPPORT
ifeq ($(strip $(SECURE_SUPPORT)),TRUE)
BOOTLOADER_SUPPORT_SECURE_NOR_PLATFORM = MT6253 MT6236% MT6252 MT6252H MT6921
ifneq ($(filter $(strip $(BOOTLOADER_SUPPORT_SECURE_NOR_PLATFORM)),$(strip $(PLATFORM))),)
NEED_BUILD_BOOTLOADER = TRUE
BOOTLOADER_CHE = ON
endif
endif
endif
BOOTLOADER_SUPPORT_NOR_PLATFORM = MT6235% MT6236% MT6238 MT6239 MT6225 MT6253 MT6921 MT6250 MT6260 MT6261
ifneq ($(filter $(strip $(BOOTLOADER_SUPPORT_NOR_PLATFORM)),$(strip $(PLATFORM))),)
NEED_BUILD_BOOTLOADER = TRUE
BOOTLOADER_CHE = ON
endif
endif
ifneq ($(strip $(CARD_DOWNLOAD)),NONE)
NEED_BUILD_BOOTLOADER = TRUE
BOOTLOADER_CHE = ON
endif
BOOTLOADER_MUST_PLATFORM = MT6268T MT6268H MT6268A MT6276 MT6256 MT6251 MT6255 MT6922
ifneq ($(filter $(strip $(BOOTLOADER_MUST_PLATFORM)),$(strip $(PLATFORM))),)
NEED_BUILD_BOOTLOADER = TRUE
BOOTLOADER_CHE = ON
endif
ifdef NAND_FLASH_BOOTING
ifeq ($(strip $(NAND_FLASH_BOOTING)),NONE)
NAND_FLASH_BOOTING_IS_NONE = TRUE
endif
else
NAND_FLASH_BOOTING_IS_NONE = TRUE
endif
ifdef EMMC_BOOTING
ifeq ($(strip $(EMMC_BOOTING)),NONE)
EMMC_BOOTING_IS_NONE = TRUE
endif
else
EMMC_BOOTING_IS_NONE = TRUE
endif
ifdef SMART_PHONE_CORE
ifeq ($(strip $(SMART_PHONE_CORE)),NONE)
SMART_PHONE_CORE_IS_NONE = TRUE
endif
else
SMART_PHONE_CORE_IS_NONE = TRUE
endif
ifeq ($(strip $(NAND_FLASH_BOOTING_IS_NONE)),TRUE)
ifeq ($(strip $(EMMC_BOOTING_IS_NONE)),TRUE)
ifeq ($(strip $(SMART_PHONE_CORE_IS_NONE)),TRUE)
COM_DEFS += __NOR_IDLE_SWEEP__
endif
endif
endif
ifeq ($(strip $(NEED_BUILD_BOOTLOADER)),TRUE)
CUS_REL_BASE_COMP += hal\system\bootloader make\bootloader
CUS_REL_FILES_LIST += $(strip $(BL_SCATTERFILE))
endif
ifdef ACCDET_SUPPORT
ifeq ($(strip $(ACCDET_SUPPORT)),TRUE)
COM_DEFS += __ACCDET_SUPPORT__
endif
ifeq ($(strip $(ACCDET_SUPPORT)),HYBRID)
COM_DEFS += __ACCDET_HYBRID_SOLUTION_SUPPORT__
endif
ifeq ($(strip $(ACCDET_SUPPORT)),DISABLE_AUX_ACCDET)
COM_DEFS += __AUX_DISABLE__
endif
ifeq ($(strip $(ACCDET_SUPPORT)),EINT_ACCDET)
COM_DEFS += __ACCDET_SUPPORT__
COM_DEFS += __ACCDET_EINT_SUPPORT__
endif
endif
ifdef UMTS_MODE_SUPPORT
ifneq ($(strip $(UMTS_MODE_SUPPORT)),NONE)
ifeq ($(filter __UMTS_RAT__,$(strip $(COM_DEFS))),)
$(warning ERROR: UMTS_MODE_SUPPORT can only be turned on when __UMTS_RAT__ defined)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(UMTS_MODE_SUPPORT)),UMTS_FDD_MODE_SUPPORT)
COM_DEFS += __UMTS_FDD_MODE__
COM_DEFS += __3G_AUTO_BAND_MECHANISM__
endif
ifeq ($(strip $(UMTS_MODE_SUPPORT)),UMTS_TDD128_MODE_SUPPORT)
COM_DEFS += __UMTS_TDD128_MODE__ __R7_EHPLMN__ __ME_STORED_EHPLMN__
endif
else
ifeq ($(strip $(SMART_PHONE_CORE)),ANDROID_MODEM)
ifeq ($(strip $(PLATFORM)),MT6573)
COM_DEFS += __SMARTPHONE_GPRS_ONLY__
endif
endif
endif
endif
ifeq ($(filter L1S BASIC UDVT,$(strip $(call Upper,$(PROJECT)))),)
ifdef TCPIP_SUPPORT
ifneq ($(strip $(TCPIP_SUPPORT)),NONE)
ifdef CSD_SUPPORT
ifneq ($(strip $(CSD_SUPPORT)),NONE)
COM_DEFS += __TCPIP_OVER_CSD__
endif
endif
endif
endif
endif
ifdef EXTERNAL_ACCESSORY_DETECTION
ifneq ($(strip $(EXTERNAL_ACCESSORY_DETECTION)),NONE)
COM_DEFS += __DRV_EXT_ACCESSORY_DETECTION__
COM_DEFS += __EXT_ACCESSORY_DETECTION_$(strip $(EXTERNAL_ACCESSORY_DETECTION))__
COMMINCDIRS += custom\drv\Ext_Cable_Detection\$(strip $(EXTERNAL_ACCESSORY_DETECTION))
endif
endif
ifdef SUPPORT_VIDEO_RECORD_ROTATE
ifeq ($(strip $(SUPPORT_VIDEO_RECORD_ROTATE)),TRUE)
COM_DEFS += __SUPPORT_VIDEO_RECORD_ROTATE__
endif
endif
ifdef USB_MULTIPLE_COMPORT_ENABLE
ifeq ($(strip $(USB_MULTIPLE_COMPORT_ENABLE)),TRUE)
ifneq ($(strip $(USB_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,USB_SUPPORT,USB_MULTIPLE_COMPORT_ENABLE)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(strip $(USB_COM_PORT_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,USB_COM_PORT_SUPPORT,USB_MULTIPLE_COMPORT_ENABLE)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(USB_MULTI_CHARGE_CURRENT_SUPPORT)),TRUE)
$(call DEP_ERR_OFFA_OR_OFFB,USB_MULTI_CHARGE_CURRENT_SUPPORT,USB_MULTIPLE_COMPORT_ENABLE)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __USB_SUPPORT_MULTIPLE_DMA_CHANNEL__
COM_DEFS += __USB_MULTIPLE_COMPORT_SUPPORT__
COM_DEFS += __USB_COMPOSITE_DEVICE_SUPPORT__
endif
endif
endif
endif
endif
# Customer specific factory mode detection
ifdef CUSTOMER_SPECIFIC_FACTORY_DETECTION
ifneq ($(strip $(CUSTOMER_SPECIFIC_FACTORY_DETECTION)),NONE)
COM_DEFS += __CS_FAC_DET__
COM_DEFS += __$(strip $(CUSTOMER_SPECIFIC_FACTORY_DETECTION))__
endif
endif
ifeq ($(strip $(KAL_RECORD_BOOTUP_LOG)),TRUE)
COM_DEFS += __KAL_RECORD_BOOTUP_LOG__
endif
ifeq ($(strip $(NVRAM_AFE_DIGITAL_GAIN_SUPPORT)),TRUE)
COM_DEFS += __NVRAM_AFE_DIGITAL_GAIN_SUPPORT__
endif
ifeq ($(strip $(DUAL_MIC_SUPPORT)),TRUE)
DUAL_MIC_SUPPORT_SUPPORT_PLATFORM = MT6256 MT6276 MT6573
ifeq ($(filter $(strip $(PLATFORM)),$(DUAL_MIC_SUPPORT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support DUAL_MIC_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __DUAL_MIC_SUPPORT__
endif
ifdef ATV_RECORD_SUPPORT
ifeq ($(strip $(ATV_RECORD_SUPPORT)),TRUE)
ifneq ($(strip $(ATV_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,ATV_SUPPORT,ATV_RECORD_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __ATV_RECORD_SUPPORT__
endif
endif
ifeq ($(strip $(BATTERY_CHARGING_SUPPORT)),TRUE)
BATTERY_CHARGING_SUPPORT_PLATFORM = MT6236 MT6236B MT6276 MT6256 MT6921
ifeq ($(filter $(strip $(PLATFORM)),$(BATTERY_CHARGING_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support BATTERY_CHARGING_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(PLATFORM)), MT6236)
ifeq ($(strip $(BOARD_VER)), JADE36_DEMO_BB)
$(warning ERROR: MT6236E1 does not support BATTERY_CHARGING_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COM_DEFS += __USB_PHY_BC11_SUPPORT__
endif
CENTRALIZED_SLEEP_MANAGER_PLATFORM = MT6276 MT6573 MT6250 MT6260 MT6261
ifeq ($(strip $(CENTRALIZED_SLEEP_MANAGER)),TRUE)
ifneq ($(filter __NEW_OS_TICK__,$(COM_DEFS)),)
$(warning ERROR: __NEW_OS_TICK__ cannot be defined if CENTRALIZED_SLEEP_MANAGER is TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __CENTRALIZED_SLEEP_MANAGER__
ifneq ($(call Upper,$(strip $(PROJECT))),UDVT)
COM_DEFS += __EVENT_BASED_TIMER__
endif
else
ifneq ($(filter $(strip $(PLATFORM)),$(CENTRALIZED_SLEEP_MANAGER_PLATFORM)),)
$(warning ERROR: CENTRALIZED_SLEEP_MANAGER must be TRUE on $(strip $(PLATFORM)))
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(DSP_SOLUTION)),DUALMACDSP)
COM_DEFS += __DSP_FCORE4__ __ARM_MOVE_DATA__
endif
ifeq ($(strip $(USB_HIGH_SPEED_COM_PORT_SUPPORT)),TRUE)
ifneq ($(strip $(USB_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,USB_SUPPORT,USB_HIGH_SPEED_COM_PORT_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(strip $(USB_COM_PORT_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,USB_COM_PORT_SUPPORT,USB_HIGH_SPEED_COM_PORT_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COM_DEFS += __USB_HIGH_SPEED_COM_PORT_ENABLE__
endif
ifdef GPRS_CLASS_10
ifeq ($(strip $(GPRS_CLASS_10)),TRUE)
COM_DEFS += __GPRS_MULTISLOT_CLASS_10__
endif
endif
ifdef EDGE_CLASS_10
ifeq ($(strip $(EDGE_CLASS_10)),TRUE)
COM_DEFS += __EDGE_MULTISLOT_CLASS_10__
endif
endif
ifeq ($(strip $(ATV_RECORD_SUPPORT)),TRUE)
ifneq ($(strip $(ATV_SUPPORT)),TRUE)
$(call DEP_ERR_SETA_OR_SETB,ATV_SUPPORT,TRUE,ATV_RECORD_SUPPORT,FALSE)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __ATV_RECORD_SUPPORT__
endif
ifeq ($(strip $(ATV_SUPPORT)),SLIM)
COM_DEFS += __ATV_SLIM_VERSION__
endif
ifdef MCU_CLOCK
# convert MCU_XXX_YYM to XXX.YY
CLOCK_MHZ = $(subst _,.,$(subst M,,$(subst MCU_,,$(strip $(MCU_CLOCK)))))
ifneq ($(CLOCK_MHZ),)
COM_DEFS += CPU_CLOCK_MHZ=$(CLOCK_MHZ)
endif
endif
# Proximity sensor
# Speficy PXS exclude platform
# Means the platform has PXS H/W on PCB, but because of mechanism issue, MMI can NOT use PXS function
# __PXS_APP_ENABLE__ is to indicate MMI can use PXS functionality
# __PXS_ENABLE__ means there is PXS H/W on PCB, driver need to init PXS to avoid power consumption issue
PXS_EXCLUDE_PLATFORM = LUFFY76%
ifdef PROXIMITY_SENSOR
ifdef PXS_SQC_FORCE_PXS_APP_ENABLE
# Skip exclude platform list check
ifneq ($(strip $(PROXIMITY_SENSOR)),NONE)
COM_DEFS += __PXS_ENABLE__
COM_DEFS += __PXS_APP_ENABLE__
COM_DEFS += __PXS_$(strip $(PROXIMITY_SENSOR))__
endif
else
ifneq ($(strip $(PROXIMITY_SENSOR)),NONE)
COM_DEFS += __PXS_ENABLE__
COM_DEFS += __PXS_$(strip $(PROXIMITY_SENSOR))__
# Check exclude platform list to decide whether to enable PXS APP or NOT
ifneq ($(filter $(strip $(PXS_EXCLUDE_PLATFORM)),$(strip $(BOARD_VER))),)
# Do NOT define __PXS_APP_ENABLE__
else
# The platform is NOT in exclude platform list, MMI can use PXS functions without problem
COM_DEFS += __PXS_APP_ENABLE__
endif
endif
endif
endif
#VIDEO CODEC library setting
VIDEO_CODEC_LIB_LIST =
VIDEO_CODEC_CUS_REL_LIB_LIST =
VIDEO_CODEC_CONFIG_EXT =
VIDEO_CODEC_CONFIG_NEGATIVE_EXT =
include make\video_codec\option_HAL_video_codec.mak
CUS_REL_FILES_LIST += make\video_codec\option_HAL_video_codec.mak
# Process COMPOBJS
VIDEO_CODEC_LIB_FILTER_OUT += $(foreach lib,$(VIDEO_CODEC_LIB_LIST), \
$(foreach ext,$(VIDEO_CODEC_CONFIG_EXT), \
$(if \
$(findstring $(ext),$(lib)),,$(lib)) \
))
VIDEO_CODEC_LIB_FILTER_OUT += $(foreach lib,$(VIDEO_CODEC_LIB_LIST), \
$(foreach ext,$(VIDEO_CODEC_CONFIG_NEGATIVE_EXT), \
$(if \
$(findstring $(ext),$(lib)),$(lib),) \
))
VIDEO_CODEC_LIB := $(filter-out $(VIDEO_CODEC_LIB_FILTER_OUT),$(VIDEO_CODEC_LIB_LIST))
COMPOBJS += $(VIDEO_CODEC_LIB)
# process CUS_REL_OBJ_LIST - to support feature option OFF->ON, need to release all the libraries.
VIDEO_CODEC_CUS_REL_LIB_FILTER_OUT += $(foreach lib,$(VIDEO_CODEC_CUS_REL_LIB_LIST), \
$(foreach ext,$(VIDEO_CODEC_CONFIG_EXT), \
$(if \
$(findstring $(ext),$(lib)),,$(lib)) \
))
VIDEO_CODEC_CUS_REL_LIB_FILTER_OUT += $(foreach lib,$(VIDEO_CODEC_CUS_REL_LIB_LIST), \
$(foreach ext,$(VIDEO_CODEC_CONFIG_NEGATIVE_EXT), \
$(if \
$(findstring $(ext),$(lib)),$(lib),) \
))
VIDEO_CODEC_CUS_REL_LIB := $(filter-out $(VIDEO_CODEC_CUS_REL_LIB_FILTER_OUT),$(VIDEO_CODEC_CUS_REL_LIB_LIST))
CUS_REL_OBJ_LIST += $(VIDEO_CODEC_CUS_REL_LIB)
ifeq ($(strip $(FLV_FILE_FORMAT_SUPPORT)),TRUE)
ifneq ($(strip $(MP4_DECODE)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,MP4_DECODE,FLV_FILE_FORMAT_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __FLV_FILE_FORMAT_SUPPORT__
endif
ifdef SENDKEY_MODE
ifeq ($(strip $(SENDKEY_MODE)),SENDKEY2_SUPPORT)
COM_DEFS += __SENDKEY2_SUPPORT__
endif
endif
EDGE_PS_HANDOVER_MULTIPLE_TBF_SUPPORT_FLATFORM = MT6268A MT6268 MT6270A MT6276 MT6573 MT6575
EDGE_PS_HANDOVER_MULTIPLE_TBF_SUPPORT_FLAVOR_FLATFORM = MT6268A MT6268
ifeq ($(strip $(PS_HANDOVER)),TRUE)
ifneq ($(strip $(GERAN_RELEASE_SUPPORT)),GERAN_R6_SUPPORT)
$(call DEP_ERR_SETA_OR_OFFB,GERAN_RELEASE_SUPPORT,GERAN_R6_SUPPORT,PS_HANDOVER)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter __EGPRS_MODE__,$(COM_DEFS)),)
ifeq ($(filter $(strip $(PLATFORM)),$(EDGE_PS_HANDOVER_MULTIPLE_TBF_SUPPORT_FLATFORM)),)
$(warning ERROR: PS_HANDOVER cannot be TRUE for PLATFORM $(strip $(PLATFORM)).)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter $(strip $(PLATFORM)),$(EDGE_PS_HANDOVER_MULTIPLE_TBF_SUPPORT_FLAVOR_FLATFORM)),)
ifeq ($(filter $(strip $(COM_DEFS)),__FLAVOR_R5R6DEV_R5R6__ __FLAVOR_2GR5R6__),)
$(warning ERROR: PS_HANDOVER cannot be TRUE for PLATFORM $(strip $(PLATFORM)) without FLAVOR R5R6DEV_R5R6/2GR5R6.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
COM_DEFS += __PS_HO__ __EXT_SEG_CTRL_BLK__
endif
ifeq ($(strip $(MULTIPLE_TBF)),TRUE)
ifneq ($(strip $(GERAN_RELEASE_SUPPORT)),GERAN_R6_SUPPORT)
$(call DEP_ERR_SETA_OR_OFFB,GERAN_RELEASE_SUPPORT,GERAN_R6_SUPPORT,MULTIPLE_TBF)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter __EGPRS_MODE__,$(COM_DEFS)),)
ifeq ($(filter $(strip $(PLATFORM)),$(EDGE_PS_HANDOVER_MULTIPLE_TBF_SUPPORT_FLATFORM)),)
$(warning ERROR: MULTIPLE_TBF cannot be TRUE for PLATFORM $(strip $(PLATFORM)).)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter $(strip $(PLATFORM)),$(EDGE_PS_HANDOVER_MULTIPLE_TBF_SUPPORT_FLAVOR_FLATFORM)),)
ifeq ($(filter $(strip $(COM_DEFS)),__FLAVOR_R5R6DEV_R5R6__ __FLAVOR_2GR5R6__),)
$(warning ERROR: MULTIPLE_TBF cannot be TRUE for PLATFORM $(strip $(PLATFORM)) without FLAVOR R5R6DEV_R5R6/2GR5R6.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
COM_DEFS += __MTBF__
endif
ifdef DRV_CUSTOM_TOOL_SUPPORT
ifeq ($(strip $(DRV_CUSTOM_TOOL_SUPPORT)),TRUE)
CUS_REL_BASE_COMP += custom\drv\Drv_Tool
endif
endif
ifdef RTSP_SUPPORT
ifeq ($(strip $(RTSP_SUPPORT)),TRUE)
ifneq ($(strip $(STREAM_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,STREAM_SUPPORT,RTSP_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(TCPIP_SUPPORT)),UDP_TCP)
$(call DEP_ERR_ONA_OR_OFFB,TCPIP_SUPPORT,RTSP_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COMPLIST += rtsp
COM_DEFS += __RTSP__
COMP_TRACE_DEFS += inet_ps\rtsp\include\rtsp_trc.h
COMMINCDIRS += inet_ps\rtsp\include
endif
endif
ifeq ($(strip $(call Upper,$(PLATFORM))),MT6225)
ifeq ($(strip $(call Upper,$(CHIP_VER))),S00)
COM_DEFS += MT6225_DMA_EMI_ISSUE
endif
endif
ifeq ($(strip $(call Upper,$(PLATFORM))),MT6235)
ifeq ($(strip $(call Upper,$(CHIP_VER))),S00)
$(warning ERROR: CHIP_VER should be larger than S00 for MT6235)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(call Upper,$(PLATFORM))),MT6235B)
ifeq ($(strip $(call Upper,$(CHIP_VER))),S00)
$(warning ERROR: CHIP_VER should be larger than S00 for MT6235B)
DEPENDENCY_CONFLICT = TRUE
endif
endif
SMART_PHONE_PLATFORM = MT6516 MT6573 MT6575
ifeq ($(filter $(SMART_PHONE_PLATFORM),$(strip $(PLATFORM))),)
ifeq ($(filter MED_NOT_PRESENT,$(CUSTOM_OPTION)),)
COMPLIST += media video mpl video_codec video_codec_sec video_sec fluency_sec fluency
ifneq ($(filter MP4_DECODE MJPG_DECODE __M3GPMP4_FILE_FORMAT_SUPPORT__ MJPG_ENCODE __FLV_FILE_FORMAT_SUPPORT__ __MKV_FILE_FORMAT_SUPPORT__ __RM_DEC_SUPPORT__,$(strip $(COM_DEFS))),)
COMPLIST += provider
endif
endif
else
ifeq ($(strip $(SMART_PHONE_CORE)),ANDROID_MODEM)
COM_DEFS += MED_NOT_PRESENT MED_V_NOT_PRESENT
else
ifeq ($(strip $(SMART_PHONE_CORE)),NONE)
COMPLIST += media
endif
endif
endif
COMPLIST += provider_sec
ifneq ($(filter __VIDEO_ARCHI_V1__,$(strip $(COM_DEFS))),)
COMMINCDIRS += media\video\sw_video\include
endif
ifdef L1_GPRS
ifneq ($(call Upper ,$(strip $(L1_GPRS))),TRUE)
ifneq ($(filter __PS_SERVICE__,$(COM_DEFS)),)
$(warning ERROR: __PS_SERVICE__ is not supported with L1_GPRS != TURE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(filter GSM L1S BASIC UDVT,$(strip $(call Upper,$(PROJECT)))),)
COM_DEFS += __MONITOR_PAGE_DURING_TRANSFER__ __SMART_PAGING__
endif
ifeq ($(strip $(GEMINI_VERSION)),V2)
ifdef GEMINI
ifneq ($(strip $(GEMINI)),FALSE)
COM_DEFS += __GEMINI_PREEMPT_PEER_SERVICE__ __GEMINI_MONITOR_PAGE_DURING_TRANSFER__ __SMART_PAGING__ __SMART_PAGING_IN_IDLE__
ifneq ($(filter UMTS HSPA TDD128DPA TDD128HSPA,$(strip $(call Upper,$(PROJECT)))),)
COM_DEFS += __MONITOR_PEER_PAGING_IN_CELL_PCH__
endif
endif
endif
endif
ifneq ($(filter __SMART_PAGING_IN_IDLE__,$(COM_DEFS)),)
ifeq ($(filter __SMART_PAGING__,$(COM_DEFS)),)
$(warning ERROR: __SMART_PAGING_IN_IDLE__ can only be defined when __SMART_PAGING__ is defined.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifdef COMPOSITE_WEBCAM_SUPPORT
ifeq ($(strip $(COMPOSITE_WEBCAM_SUPPORT)),TRUE)
COM_DEFS += __COMPOSITE_WEBCAM__
COM_DEFS += __USB_COMPOSITE_DEVICE_SUPPORT__
endif
endif
ifeq ($(strip $(USB_MASS_STORAGE_CDROM_SUPPORT)),TRUE)
ifeq ($(strip $(USB_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,USB_SUPPORT,USB_MASS_STORAGE_CDROM_SUPPORT )
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(USB_MASS_STORAGE_SUPPORT)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,USB_MASS_STORAGE_SUPPORT,USB_MASS_STORAGE_CDROM_SUPPORT )
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __USB_MASS_STORAGE_CDROM_ENABLE__
endif
MDP_VT_PREVIEW_UPSCALE_PLATFORM = MT6276 MT6268 MT6256 MT6236
ifneq ($(filter $(strip $(PLATFORM)),$(MDP_VT_PREVIEW_UPSCALE_PLATFORM)),)
COM_DEFS += __MDP_VT_PREVIEW_UPSCALE_SUPPORT__
endif
ifeq ($(strip $(HIGH_DYNAMIC_RANGE_SUPPORT)),TRUE)
HIGH_DYNAMIC_RANGE_NOSUPPORT_PLATFORM = MT6268 MT6235 MT6253 MT6253D MT6253T MT6252 MT6252H MT6253PMU MT6250 MT6260 MT6261
ifneq ($(filter $(strip $(PLATFORM)) ,$(HIGH_DYNAMIC_RANGE_NOSUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support high dynamic range)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(strip $(CAMCORDER_SUPPORT)),FULL)
$(call DEP_ERR_SETA_OR_OFFB,CAMCORDER_SUPPORT,FULL,HIGH_DYNAMIC_RANGE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,HIGH_DYNAMIC_RANGE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(LOW_COST_SUPPORT)),NONE)
ifneq ($(filter SLIM SLIM_EX,$(strip $(CAMCORDER_SUPPORT))),)
$(warning ERROR: LOW_COST_SUPPORT = $(strip $(LOW_COST_SUPPORT)) and CAMCORDER_SUPPORT = $(strip $(CAMCORDER_SUPPORT)) does not support High Dynamic Range)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifneq ($(strip $(EXIF_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,EXIF_SUPPORT,HIGH_DYNAMIC_RANGE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __HIGH_DYNAMIC_RANGE_SUPPORT__
endif
endif
ifneq ($(filter MT6251 MT6252 MT6253L,$(PLATFORM)),)
COM_DEFS += __SERIAL_FLASH_EN__
endif
ifdef OPENGLES_SUPPORT
ifeq ($(strip $(OPENGLES_SUPPORT)),TRUE)
OPENGLES_HW_PLATFORM = MT6256
ifneq ($(filter $(strip $(PLATFORM)) ,$(OPENGLES_HW_PLATFORM)),)
COM_DEFS += __OPENGLES_SUPPORT__
else
$(warning ERROR: $(strip $(PLATFORM)) is not support opengles.)
DEPENDENCY_CONFLICT = TRUE
endif
COMPLIST += opengles
endif
endif
ifeq ($(strip $(AUTOCAP_PANORAMA_SUPPORT)),TRUE)
AUTOCAP_PANORAMA_NOSUPPORT_PLATFORM = MT6253 MT6253T MT6253E MT6253L MT6253PMU MT6252 MT6252H
ifneq ($(filter $(strip $(PLATFORM)) ,$(AUTOCAP_PANORAMA_NOSUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support AutoCap Panorama)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,AUTOCAP_PANORAMA_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(EXIF_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,EXIF_SUPPORT,AUTOCAP_PANORAMA_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __AUTOCAP_PANORAMA_SUPPORT__
ifdef AUTOCAP_PANORAMA_MODE
AUTOCAP_PANORAMA_SUPPORT_MODE = 3 4 5 6 7 8
ifeq ($(filter $(strip $(AUTOCAP_PANORAMA_MODE)) ,$(AUTOCAP_PANORAMA_SUPPORT_MODE)),)
$(warning ERROR: AUTOCAP_PANORAMA_MODE $(strip $(AUTOCAP_PANORAMA_MODE)) is not supported)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __AUTOCAP_PANORAMA_MODE_$(strip $(AUTOCAP_PANORAMA_MODE))__
else
COM_DEFS += __AUTOCAP_PANORAMA_MODE_8__
endif
ifeq ($(strip $(PLATFORM)),MT6235)
ifeq ($(strip $(CAMCORDER_FACE_DETECTION_MODE_SUPPORT)),FALSE)
COM_DEFS += __FD_NEED_SW_ROTATE__
endif
endif
endif
endif
ifeq ($(strip $(MULTIPLE_ANGLE_VIEW_SUPPORT)),TRUE)
MAV_NOSUPPORT_PLATFORM = MT6253 MT6253T MT6253E MT6253L MT6253PMU MT6252 MT6252H MT6235 MT6268 MT6236 MT6276
ifneq ($(filter $(strip $(PLATFORM)) ,$(MAV_NOSUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support Multiple Angle View)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,MULTIPLE_ANGLE_VIEW_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __MULTIPLE_ANGLE_VIEW_SUPPORT__
ifeq ($(strip $(PLATFORM)),MT6250)
ifeq ($(strip $(MOTION_SENSOR_SUPPORT)),NONE)
COM_DEFS += __CAMERA_GYRO_SUPPORT__
endif
endif
ifeq ($(strip $(PLATFORM)),MT6260)
ifeq ($(strip $(MOTION_SENSOR_SUPPORT)),NONE)
COM_DEFS += __CAMERA_GYRO_SUPPORT__
endif
endif
endif
endif
ifeq ($(strip $(3D_IMAGE_SUPPORT)),TRUE)
3D_IMAGE_NOSUPPORT_PLATFORM = MT6253 MT6253T MT6253E MT6253L MT6253PMU MT6252 MT6252H MT6235 MT6268 MT6236 MT6276
ifneq ($(filter $(strip $(PLATFORM)) ,$(3D_IMAGE_NOSUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support 3D Image, please turn off 3D_IMAGE_SUPPORT .)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,3D_IMAGE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __3D_IMAGE_SUPPORT__
endif
endif
ifneq ($(filter __RF_DESENSE_TEST__,$(CUSTOM_OPTION)),)
COMPLIST += btmt
# CUS_REL_MTK_COMP += btmt
endif
ifeq ($(strip $(CAMCORDER_AUTO_SCENE_DETECT_SUPPORT)),TRUE)
ASD_NOSUPPORT_PLATFORM = MT6253 MT6253T MT6253E MT6253L MT6253PMU MT6252 MT6252H MT6268 MT6235 MT6250 MT6260 MT6261
ifneq ($(filter $(strip $(PLATFORM)) ,$(ASD_NOSUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support Auto Scene Detect)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(strip $(CAMCORDER_FACE_DETECTION_MODE_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,CAMCORDER_FACE_DETECTION_MODE_SUPPORT,CAMCORDER_AUTO_SCENE_DETECT_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(LOW_COST_SUPPORT)),NONE)
ifeq ($(strip $(CAMCORDER_SUPPORT)),SLIM)
$(warning ERROR: LOW_COST_SUPPORT = $(strip $(LOW_COST_SUPPORT)) and CAMCORDER_SUPPORT = $(strip $(CAMCORDER_SUPPORT)) does not support Auto Scene Detection.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COM_DEFS += __AUTO_SCENE_DETECT_SUPPORT__
endif
endif
ifeq ($(strip $(CAMCORDER_ZERO_SHUTTER_DELAY_SUPPORT)),TRUE)
ZSD_NOSUPPORT_PLATFORM = MT6253 MT6253T MT6253E MT6253L MT6253PMU MT6252 MT6252H MT6235 MT6268 MT6236 MT6250 MT6260 MT6261
ifneq ($(filter $(strip $(PLATFORM)) ,$(ZSD_NOSUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support Zero Shutter Delay)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(strip $(ISP_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,ISP_SUPPORT,CAMCORDER_ZERO_SHUTTER_DELAY_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(LOW_COST_SUPPORT)),NONE)
ifeq ($(strip $(CAMCORDER_SUPPORT)),SLIM)
$(warning ERROR: CAMCORDER_SUPPORT = $(strip $(CAMCORDER_SUPPORT)) does not support Zero Shutter Delay)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COM_DEFS += __ZERO_SHUTTER_DELAY_SUPPORT__
endif
endif
ifdef 3G_VIDEO_CALL
ifeq ($(strip $(3G_VIDEO_CALL)),TRUE)
ifneq ($(strip $(PLATFORM)),MT6268)
COM_DEFS += __VT_MONA__
endif
endif
endif
COMMINCDIRS += interface\nfc
ifdef NFC_SUPPORT
ifneq ($(strip $(NFC_SUPPORT)),NONE)
COM_DEFS += __NFC_SUPPORT__
COMPLIST += nfc
COMPLIST += nfc_reader
COMPLIST += nfc_app
endif
endif
ifeq ($(strip $(SUPPORT_JSR_257)),TRUE)
ifndef NFC_SUPPORT
COMPLIST += nfc_custom
else
ifeq ($(strip $(NFC_SUPPORT)),NONE)
COMPLIST += nfc_custom
endif
endif
endif
ifeq ($(strip $(MP4_DECODE)),TRUE)
ifeq ($(strip $(MP4_DECODE_PROFILE)),ASP)
MP4_DECODE_PROFILE_SUPPORT_PLATFORM = MT6235 MT6236 MT6256 MT6276 MT6235B MT6255 MT6272 MT6922 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)) ,$(MP4_DECODE_PROFILE_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support MP4_DECODE_PROFILE = ASP)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter __MED_VIDEO_ULC__,$(COM_DEFS)),)
$(warning ERROR: ULC does NOT support MP4_DECODE_PROFILE = ASP)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(MMI_VERSION)),EMPTY_MMI)
COM_DEFS += __EMPTY_MMI__
endif
ifeq ($(strip $(AAC_DECODE)),TRUE)
COMPOBJS += $(strip $(AUDLIB))\aac_dec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\aac_dec.a
endif
# BES_LIVE_SUPPORT/BES_TS_SUPPORT for 6228/6229/6230/6238 only
BES_LIVE_SUPPORT_SUPPORT_PLATFORM = MT6228 MT6229 MT6230 MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268A MT6268 MT6270A MT6256 MT6276 MT6921 MT6252 MT6253 MT6255 MT6922 MT6250 MT6260 MT6261
ifdef BES_LIVE_SUPPORT
ifneq ($(strip $(BES_LIVE_SUPPORT)),FALSE)
ifeq ($(filter $(strip $(PLATFORM)) ,$(BES_LIVE_SUPPORT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support BES_LIVE_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(BES_LIVE_SUPPORT)),TRUE)
COM_DEFS += __BES_LIVE_SUPPORT__
CONDITION_COM_DEFS_BESSOUND_SUPPORT = TRUE
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\BesLive.a
endif
endif
endif
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BesLive.a
ifdef BES_TS_SUPPORT
ifneq ($(strip $(BES_TS_SUPPORT)),FALSE)
ifeq ($(filter $(strip $(PLATFORM)) ,$(BES_LIVE_SUPPORT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support BES_TS_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(BES_TS_SUPPORT)),TRUE)
COM_DEFS += __BES_TS_SUPPORT__
CONDITION_COM_DEFS_BESSOUND_SUPPORT = TRUE
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\BesTS.a
endif
endif
endif
endif
ifdef VOICE_CHANGER_SUPPORT
ifneq ($(strip $(VOICE_CHANGER_SUPPORT)),FALSE)
VOICE_CHANGER_SUPPORT_PLATFORM = MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)) ,$(VOICE_CHANGER_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support VOICE_CHANGER_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(VOICE_CHANGER_SUPPORT)),TRUE)
COM_DEFS += __VOICE_CHANGER_SUPPORT__
COM_DEFS += __CUSTOM_SPE_ENGINE__
CONDITION_COM_DEFS_BESSOUND_SUPPORT = TRUE
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\BesTS.a
COMPLIST += dp_engine
endif
endif
endif
endif
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BesTS.a
BES_SURROUND_SUPPORT_SUPPORT_PLATFORM = MT6228 MT6229 MT6230 MT6235 MT6235B MT6236 MT6236B MT6238 MT6239 MT6268T MT6268H MT6268 MT6268A MT6268 MT6270A MT6256 MT6276 MT6921 MT6252 MT6253 MT6255 MT6922 MT6250 MT6260 MT6261
ifdef BES_SURROUND_SUPPORT
ifneq ($(strip $(BES_SURROUND_SUPPORT)),NONE)
ifeq ($(filter $(strip $(PLATFORM)) ,$(BES_SURROUND_SUPPORT_SUPPORT_PLATFORM)),)
$(warning ERROR: $(strip $(PLATFORM)) does not support BES_SURROUND_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
CONDITION_COM_DEFS_BESSOUND_SUPPORT = TRUE
ifeq ($(strip $(BES_SURROUND_SUPPORT)),MODE_LSPK)
COM_DEFS += __BES_SURROUND_LSPK__
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\BesSurround.a
endif
endif
ifeq ($(strip $(BES_SURROUND_SUPPORT)),MODE_EARP)
COM_DEFS += __BES_SURROUND_EARP__
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\BesHeadphone.a
endif
endif
ifeq ($(strip $(BES_SURROUND_SUPPORT)),MODE_BOTH)
COM_DEFS += __BES_SURROUND_LSPK__ __BES_SURROUND_EARP__
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\BesSurround.a
COMPOBJS += $(strip $(AUDLIB))\BesHeadphone.a
endif
endif
endif
endif
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BesSurround.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BesHeadphone.a
ifdef BES_EQ_SUPPORT
ifeq ($(strip $(BES_EQ_SUPPORT)),TRUE)
NON_SW_EQ_SUPPORT_PLATFORM = MT6223 MT6223P MT6225 MT6226 MT6226D MT6226M MT6227D MT6227 MT6253 MT6253E MT6253L MT6251 MT6252 MT6252H
ifneq ($(filter $(strip $(PLATFORM)),$(NON_SW_EQ_SUPPORT_PLATFORM)),)
COM_DEFS += __NON_SW_EQ_SUPPORT__
endif
COM_DEFS += __BES_EQ_SUPPORT__
CONDITION_COM_DEFS_BESSOUND_SUPPORT = TRUE
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\BesEQ.a
endif
endif
endif
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BesEQ.a
ifdef BES_LOUDNESS_SUPPORT
BES_LOUDNESS_SUPPORT_SUPPORT_PLATFORM = MT6225 MT6228 MT6229 MT6230 MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268A MT6268 MT6268T MT6268H MT6268 MT6252 MT6252H MT6253T MT6253 MT6253E MT6253L MT6270A MT6256 MT6276 MT6921 MT6255 MT6922 MT6250 MT6260 MT6261
ifeq ($(strip $(BES_LOUDNESS_SUPPORT)),TRUE)
ifeq ($(strip $(MED_PROFILE)),MED_MODEM)
$(call DEP_ERR_SETA_OR_OFFB,MED_PROFILE,non MED_MODEM,BES_LOUDNESS_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(filter $(strip $(PLATFORM)) ,$(BES_LOUDNESS_SUPPORT_SUPPORT_PLATFORM)),)
$(warning ERROR: $(strip $(PLATFORM)) does not support BES_LOUDNESS_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COMPOBJS += $(strip $(AUDLIB))\BesLoudness.a
COM_DEFS += __BES_LOUDNESS_SUPPORT__
COM_DEFS += __BES_LOUDNESS_ON_AUDIO__
CONDITION_COM_DEFS_BESSOUND_SUPPORT = TRUE
endif
endif
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BesLoudness.a
ifdef AUDIO_COMPENSATION_DSP_IIR_SUPPORT
AUDIO_COMPENSATION_DSP_IIR_SUPPORT_PLATFORM = MT6251
ifeq ($(strip $(AUDIO_COMPENSATION_DSP_IIR_SUPPORT)),TRUE)
ifeq ($(strip $(MED_PROFILE)),MED_MODEM)
$(call DEP_ERR_SETA_OR_OFFB,MED_PROFILE,non MED_MODEM,AUDIO_COMPENSATION_DSP_IIR_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(filter $(strip $(PLATFORM)) ,$(AUDIO_COMPENSATION_DSP_IIR_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) not support AUDIO_COMPENSATION_DSP_IIR_SUPPORT_PLATFORM.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __ACF_DSP_IIR_SUPPORT__
COM_DEFS += __BES_LOUDNESS_SUPPORT__
endif
endif
ifdef AUDIO_COMPENSATION_ENABLE
BES_EQ_SUPPORT_AUDIO_COMPENSATION_ENABLE_EXCLUSIVE_PLATFORM = MT6223 MT6223P MT6225 MT6253 MT6252 MT6252H MT6251
ACF_MCU_FIR_SUPPORT_PLATFORM = MT6276
ACF_DSP_FIR_SUPPORT_PLATFORM = MT6251
ACF_SW_FIR_SUPPORT_PLATFORM = MT6251 MT6276
ifeq ($(strip $(AUDIO_COMPENSATION_ENABLE)),TRUE)
ifeq ($(strip $(MED_PROFILE)),MED_MODEM)
$(call DEP_ERR_SETA_OR_OFFB,MED_PROFILE,non MED_MODEM,AUDIO_COMPENSATION_ENABLE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(filter $(strip $(PLATFORM)),$(ACF_SW_FIR_SUPPORT_PLATFORM)),)
COM_DEFS += AUDIO_COMPENSATION_ENABLE
COM_DEFS += __ACF_HW_FIR_SUPPORT__
endif
ifneq ($(filter $(strip $(PLATFORM)),$(ACF_MCU_FIR_SUPPORT_PLATFORM)),)
COM_DEFS += __ACF_MCU_FIR_SUPPORT__
COM_DEFS += __AUDIO_COMPENSATION_SW_VERSION__
COM_DEFS += __BES_CF_SUPPORT__
CONDITION_COM_DEFS_BESSOUND_SUPPORT = TRUE
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\BesCF.a
endif
endif
ifneq ($(filter $(strip $(PLATFORM)),$(ACF_DSP_FIR_SUPPORT_PLATFORM)),)
COM_DEFS += __ACF_DSP_FIR_SUPPORT__
COM_DEFS += __AUDIO_COMPENSATION_SW_VERSION__
endif
ifeq ($(strip $(BES_EQ_SUPPORT)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(BES_EQ_SUPPORT_AUDIO_COMPENSATION_ENABLE_EXCLUSIVE_PLATFORM)),)
$(warning ERROR: BES_EQ_SUPPORT and AUDIO_COMPENSATION_ENABLE must be exclusive in $(PLATFORM)!)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
endif
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BesCF.a
ifdef AUDIO_DSP_LOWPOWER
ifneq ($(filter MT6256,$(strip $(call Upper,$(PLATFORM)))),)
ifeq ($(strip $(AUDIO_DSP_LOWPOWER)),TRUE)
ifneq ($(strip $(DAF_DECODE)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,DAF_DECODE,AUDIO_DSP_LOWPOWER)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __AUDIO_DSP_LOWPOWER__
endif
endif
endif
endif
ifeq ($(strip $(BES_BASS_SUPPORT)),TRUE)
BES_BASS_SUPPORT_SUPPORT_PLATFORM = MT6235 MT6235B MT6236 MT6236B MT6238 MT6239 MT6268T MT6268H MT6268 MT6268A MT6268 MT6270A MT6276 MT6921 MT6255 MT6256 MT6922 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)) ,$(BES_BASS_SUPPORT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support BES_BASS_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter MED_NOT_PRESENT,$(COM_DEFS)),)
$(warning ERROR: Please turn off BES_BASS_SUPPORT when MED_NOT_PRESENT is defined)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(MED_PROFILE)),MED_MODEM)
$(call DEP_ERR_SETA_OR_OFFB,MED_PROFILE,non MED_MODEM,BES_BASS_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __BES_BASS_SUPPORT__
CONDITION_COM_DEFS_BESSOUND_SUPPORT = TRUE
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\BesBass.a
endif
endif
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BesBass.a
ifdef I2S_INPUT_MODE_SUPPORT
ifeq ($(strip $(I2S_INPUT_MODE_SUPPORT)),TRUE)
ifneq ($(strip $(MED_PROFILE)),MED_MODEM)
BES_LOUDNESS_NON_SUPPORT_PLATFORM = MT6251
ifeq ($(filter $(strip $(PLATFORM)) ,$(BES_LOUDNESS_NON_SUPPORT_PLATFORM)),)
COMPOBJS += $(strip $(AUDLIB))\BesLoudness.a
COM_DEFS += __BES_LOUDNESS_ON_I2S__
CONDITION_COM_DEFS_BESSOUND_SUPPORT = TRUE
else
COM_DEFS += APPLY_HPF_ON_FM_I2S
endif
endif
endif
endif
ifdef I2S_INPUT_MODE_SUPPORT
ifeq ($(strip $(I2S_INPUT_MODE_SUPPORT)),TRUE)
COM_DEFS += __I2S_INPUT_MODE_SUPPORT__
I2S_INPUT_SUPPORT_PLATFORM = MT6225 MT6253T MT6253 MT6253E MT6253L MT6252 MT6252H MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268T MT6268H MT6268A MT6268 MT6256 MT6276 MT6251 MT6921 MT6255 MT6922 MT6250 MT6260 MT6261
I2S_INPUT_WITHOUT_APM_SUPPORT_PLATFORM = MT6251
ifeq ($(filter $(strip $(PLATFORM)) ,$(I2S_INPUT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support I2S_INPUT_MODE_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter $(strip $(PLATFORM)) ,$(I2S_INPUT_WITHOUT_APM_SUPPORT_PLATFORM)),)
COM_DEFS += __I2S_INPUT_MODE_WITHOUT_APM__
endif
ifdef DAF_ENCODE
ifeq ($(strip $(DAF_ENCODE)),TRUE)
COM_DEFS += __I2S_DAF_RECORD__
endif
endif
ifdef WAV_CODEC
ifeq ($(strip $(WAV_CODEC)),TRUE)
COM_DEFS += __I2S_WAV_RECORD__
endif
endif
ifdef DEDI_AMR_REC
ifeq ($(strip $(DEDI_AMR_REC)),TRUE)
COM_DEFS += __I2S_AMR_RECORD__
endif
endif
endif
endif
ifeq ($(strip $(I2S_INPUT_MODE_SUPPORT)),TRUE)
ifdef DEDI_AMR_REC
ifeq ($(strip $(DEDI_AMR_REC)),TRUE)
ifeq ($(strip $(COMPILER)),RVCT)
ifeq ($(filter __AUDIO_ULTRA_SLIM__,$(strip $(COM_DEFS))),)
ifdef LOW_COST_SUPPORT
ifeq ($(strip $(LOW_COST_SUPPORT)),NONE)
COMPOBJS += $(strip $(AUDLIB))\BLISRC.a
else
COMPOBJS += $(strip $(AUDLIB))\SLIM\BLISRC.a
endif
else
COMPOBJS += $(strip $(AUDLIB))\BLISRC.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BLISRC.a
endif
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BLISRC.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\SLIM\BLISRC.a
endif
endif
endif
endif
endif
ifeq ($(strip $(CONDITION_COM_DEFS_BESSOUND_SUPPORT)),TRUE)
COM_DEFS += BESSOUND_SUPPORT
endif
BLISRC_SUPPORT_PLATFORM = MT6276 MT6256 MT6255 MT6250 MT6922 MT6260 MT6261
ifneq ($(filter $(strip $(PLATFORM)),$(BLISRC_SUPPORT_PLATFORM)),)
ifeq ($(strip $(COMPILER)),RVCT)
ifeq ($(filter __AUDIO_ULTRA_SLIM__,$(strip $(COM_DEFS))),)
ifdef LOW_COST_SUPPORT
ifeq ($(strip $(LOW_COST_SUPPORT)),NONE)
COMPOBJS += $(strip $(AUDLIB))\BLISRC.a
else
COMPOBJS += $(strip $(AUDLIB))\SLIM\BLISRC.a
endif
else
COMPOBJS += $(strip $(AUDLIB))\BLISRC.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BLISRC.a
endif
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BLISRC.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\SLIM\BLISRC.a
else
COMPOBJS += $(strip $(AUDLIB))\SLIM\resampler.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\SLIM\resampler.a
endif
endif
endif
ifdef BLUETOOTH_SUPPORT
ifneq ($(strip $(BLUETOOTH_SUPPORT)),NONE)
ifeq ($(strip $(BT_AUDIO_VIA_SCO)),TRUE)
ifeq ($(strip $(COMPILER)),RVCT)
ifeq ($(filter __AUDIO_ULTRA_SLIM__,$(strip $(COM_DEFS))),)
ifdef LOW_COST_SUPPORT
ifeq ($(strip $(LOW_COST_SUPPORT)),NONE)
COMPOBJS += $(strip $(AUDLIB))\BLISRC.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BLISRC.a
else
COMPOBJS += $(strip $(AUDLIB))\SLIM\BLISRC.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\SLIM\BLISRC.a
endif
else
COMPOBJS += $(strip $(AUDLIB))\BLISRC.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\BLISRC.a
endif
endif
endif
endif
endif
endif
AUDIO_COMPONENT_SUPPORT_PLATFORM = MT6276
ifneq ($(filter $(strip $(PLATFORM)),$(AUDIO_COMPONENT_SUPPORT_PLATFORM)),)
COM_DEFS += __AUD_SW_CODEC__
endif
# AUDIO_COMPONENT_SUPPORT_CONDITION is defined in Option_HAL.mak
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
COM_DEFS += __AUD_SW_CODEC__
COM_DEFS += __AUDIO_COMPONENT_SUPPORT__
endif
ifeq ($(strip $(PLATFORM)),MT6256)
ifeq ($(strip $(CHIP_VER)),S01)
COM_DEFS += __AUDIO_DSP_LOWPOWER_V2__
endif
endif
ifeq ($(strip $(PLATFORM)),MT6255)
COM_DEFS += __AUDIO_DSP_LOWPOWER_V2__
endif
ifeq ($(strip $(PLATFORM)),MT6250)
COM_DEFS += __AUDIO_DSP_LOWPOWER_V2__
endif
ifeq ($(strip $(PLATFORM)),MT6260)
COM_DEFS += __AUDIO_DSP_LOWPOWER_V2__
endif
ifeq ($(strip $(PLATFORM)),MT6261)
COM_DEFS += __AUDIO_DSP_LOWPOWER_V2__
endif
ifdef OGG_VORBIS_DECODE
ifeq ($(strip $(OGG_VORBIS_DECODE)),TRUE)
VORBIS_CODEC_LITE = MT6253 MT6252 MT6252H
VORBIS_CODEC_NOT_SUPPORT_PLATFORM = MT6251
ifneq ($(filter $(strip $(PLATFORM)),$(VORBIS_CODEC_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: Platform $(strip $(PLATFORM)) does not support OGG_VORBIS_DECODE and OGG_VORBIS_ENCODE!)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(filter $(strip $(PLATFORM)) ,$(VORBIS_CODEC_LITE)),)
COMPOBJS += $(strip $(AUDLIB))\vorbis_codec_slim.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\vorbis_codec_slim.a
COM_DEFS += __VORBIS_DECODE_SLIM__
else
COMPOBJS += $(strip $(AUDLIB))\vorbis_codec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\vorbis_codec.a
endif
COM_DEFS += __VORBIS_DECODE__
ifeq ($(strip $(OGG_VORBIS_ENCODE)),TRUE)
COM_DEFS += __VORBIS_ENCODE__
ifeq ($(strip $(I2S_INPUT_MODE_SUPPORT)),TRUE)
COM_DEFS += __I2S_VORBIS_RECORD__
endif
endif
endif
endif
ifeq ($(strip $(AU_DECODE)),TRUE)
AU_DECODE_NOT_SUPPORT_PLATFORM = MT6205 MT6205B MT6218 MT6218B MT6208
ifeq ($(filter $(strip $(PLATFORM)),$(AU_DECODE_NOT_SUPPORT_PLATFORM)),$(strip $(PLATFORM)))
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) not support AU_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += AU_DECODE
endif
ifeq ($(strip $(AIFF_DECODE)),TRUE)
AIFF_DECODE_NOT_SUPPORT_PLATFORM = MT6205 MT6205B MT6218 MT6218B MT6208
ifeq ($(filter $(strip $(PLATFORM)),$(AIFF_DECODE_NOT_SUPPORT_PLATFORM)),$(strip $(PLATFORM)))
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) not support AIFF_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += AIFF_DECODE
endif
ifdef WAV_CODEC
ifeq ($(strip $(WAV_CODEC)),TRUE)
COM_DEFS += WAV_CODEC
else
ifeq ($(strip $(AIFF_DECODE)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,WAV_CODEC,AIFF_DECODE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(AU_DECODE)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,WAV_CODEC,AU_DECODE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
ifeq ($(strip $(COMPILER)),RVCT)
ifeq ($(filter AU_DECODE AIFF_DECODE,$(strip $(COM_DEFS))),)
COMPOBJS += $(strip $(AUDLIB))\SLIM\wav_codec.a
else
COMPOBJS += $(strip $(AUDLIB))\wav_codec.a
endif
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\SLIM\wav_codec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\wav_codec.a
endif
COM_DEFS += __WAV_DECODE_SWIP__
endif
endif
ifdef DEDI_AMR_REC
DEDI_AMR_REC_NOT_SUPPORT_PLATFORM = MT6205B MT6223 MT6223P
DEDI_AMR_REC_SWIP_NOT_SUPPORT_PLATFORM = MT6226 MT6226M MT6227 MT6226D MT6227D
ifeq ($(strip $(DEDI_AMR_REC)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(DEDI_AMR_REC_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support DEDI_AMR_REC=TRUE)
DEPENDENCY_CONFLICT = TRUE
endif
ifndef AMR_CODEC
$(call DEP_ERR_ONA_OR_OFFB,AMR_CODEC,DEDI_AMR_REC)
DEPENDENCY_CONFLICT = TRUE
else
ifneq ($(strip $(AMR_CODEC)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,AMR_CODEC,DEDI_AMR_REC)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COM_DEFS += DEDI_AMR_REC
ifeq ($(filter $(strip $(PLATFORM)),$(DEDI_AMR_REC_SWIP_NOT_SUPPORT_PLATFORM)),)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\amr_codec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\amr_codec.a
endif
endif
endif
endif
ifeq ($(strip $(DAF_DECODE)),TRUE)
DAF_DECODE_SUPPORT_PLATFORM = MT6217 MT6218B MT6219 MT6226M MT6228 MT6229 MT6230 MT6226 MT6227 MT6225 MT6252 MT6252H MT6253T MT6253 MT6253E MT6253L MT6223 MT6227D MT6226D MT6223P MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268T MT6268H MT6268A MT6268 MT6270A MT6256 MT6276 MT6251 MT6921 MT6255 MT6922 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)) ,$(DAF_DECODE_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support DAF_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(COMPILER)),RVCT)
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
ifeq ($(strip $(MUSICAM_DECODE)),TRUE)
COMPOBJS += $(strip $(AUDLIB))\mp3_dec.a
else
COMPOBJS += $(strip $(AUDLIB))\SLIM\mp3_dec.a
endif
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\mp3_dec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\SLIM\mp3_dec.a
endif
endif
COM_DEFS += DAF_DECODE
endif
## MT6217, 6219, 6227_S00 and 6228_S00, 6228_S01 and 6229_S00, 6223 not support MUSICAM_DECODE
ifdef MUSICAM_DECODE
MUSICAM_DECODE_NOT_SUPPORT_PLATFORM = MT6217 MT6218B MT6219 MT6223 MT6253E MT6253L MT6252 MT6252H
ifeq ($(strip $(MUSICAM_DECODE)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(MUSICAM_DECODE_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) not support MUSICAM_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(PLATFORM)),MT6227)
ifeq ($(strip $(CHIP_VER)),S00)
$(warning ERROR: platform $(strip $(PLATFORM)) with chip version $(CHIP_VER) not support MUSICAM_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(PLATFORM)),MT6228)
ifeq ($(strip $(CHIP_VER)),S00)
$(warning ERROR: platform $(strip $(PLATFORM)) with chip version $(CHIP_VER) not support MUSICAM_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(CHIP_VER)),S01)
$(warning ERROR: platform $(strip $(PLATFORM)) with chip version $(CHIP_VER) not support MUSICAM_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(PLATFORM)),MT6229)
ifeq ($(strip $(CHIP_VER)),S00)
$(warning ERROR: platform $(strip $(PLATFORM)) with chip version $(CHIP_VER) not support MUSICAM_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(DAF_DECODE)),TRUE)
COM_DEFS += MUSICAM_DECODE
else
$(call DEP_ERR_ONA_OR_OFFB,DAF_DECODE,MUSICAM_DECODE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifdef APE_DECODE
ifeq ($(strip $(APE_DECODE)),TRUE)
APE_DECODE_SUPPORT_PLATFORM = MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268T MT6268H MT6268A MT6268 MT6270A MT6256 MT6276 MT6921 MT6255 MT6922
ifeq ($(filter $(strip $(PLATFORM)) ,$(APE_DECODE_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) not support APE_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\ape_dec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\ape_dec.a
endif
COM_DEFS += __APE_DECODE__
endif
endif
ifdef COOK_DECODE
ifeq ($(strip $(COOK_DECODE)),TRUE)
COM_DEFS += __COOK_DECODE__
COOK_DECODE_DSP_PLATFORM = MT6253T MT6253 MT6253E MT6253L MT6252 MT6252H MT6236 MT6236B MT6921
ifeq ($(filter $(strip $(PLATFORM)) ,$(COOK_DECODE_DSP_PLATFORM)),)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\cook_dec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\cook_dec.a
endif
else
COM_DEFS += __COOK_DECODE_DSP__
endif
endif
endif
ifdef DRA_DECODE
ifeq ($(strip $(DRA_DECODE)),TRUE)
DRA_DECODE_SUPPORT_PLATFORM = MT6235 MT6235B MT6236 MT6236B MT6238 MT6239 MT6268T MT6268H MT6268A MT6268 MT6270A MT6276 MT6921 MT6256 MT6255 MT6922 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)),$(DRA_DECODE_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support DRA_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __DRA_DECODE_SUPPORT__
ifeq ($(strip $(EMPTY_RESOURCE)),FALSE)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += hal\audio\lib\VENDOR\dra\ArmDraDecLib_rvct.a
CUS_REL_OBJ_LIST += hal\audio\lib\VENDOR\dra\ArmDraDecLib_rvct.a
endif
else
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += hal\audio\lib\VENDOR\dra\ArmDraDecLib_rvct_Trial.a
CUS_REL_OBJ_LIST += hal\audio\lib\VENDOR\dra\ArmDraDecLib_rvct_Trial.a
endif
endif
endif
endif
ifeq ($(strip $(AAC_DECODE)),TRUE)
AAC_DECODE_SUPPORT_PLATFORM = MT6219 MT6226M MT6228 MT6229 MT6230 MT6226 MT6227 MT6225 MT6252 MT6252H MT6253T MT6253 MT6253E MT6253L MT6227D MT6226D MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268T MT6268H MT6268A MT6268 MT6270A MT6256 MT6276 MT6251 MT6921 MT6255 MT6922 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)) ,$(AAC_DECODE_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) not support AAC_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\aac_dec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\aac_dec.a
COM_DEFS += __AAC_DECODE_SWIP__
endif
endif
COM_DEFS += AAC_DECODE
endif
ifdef AAC_PLUS_DECODE
ifeq ($(strip $(AAC_PLUS_DECODE)),TRUE)
AAC_PLUS_DECODE_SUPPORT_PLATFORM = MT6228 MT6229 MT6230 MT6226 MT6227 MT6226M MT6225 MT6253T MT6253 MT6227D MT6226D MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268T MT6268H MT6268A MT6268 MT6270A MT6256 MT6276 MT6921 MT6255 MT6922
ifeq ($(filter $(strip $(PLATFORM)) ,$(AAC_PLUS_DECODE_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support AAC_PLUS_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
ifeq ($(strip $(AAC_PLUS_PS_DECODE)),FALSE)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\heaacv1_dec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\heaacv1_dec.a
COM_DEFS += __HEAAC_V1_DECODE_SWIP__
endif
endif
endif
COM_DEFS += AAC_PLUS_DECODE
endif
endif
ifdef AAC_PLUS_PS_DECODE
ifeq ($(strip $(AAC_PLUS_PS_DECODE)),TRUE)
AAC_PLUS_PS_DECODE_SUPPORT_PLATFORM = MT6228 MT6229 MT6230 MT6226 MT6227 MT6226M MT6225 MT6253T MT6253 MT6253E MT6253L MT6227D MT6226D MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268A MT6268 MT6270A MT6256 MT6276 MT6252 MT6252H MT6921 MT6255 MT6922
ifeq ($(filter $(strip $(PLATFORM)) ,$(AAC_PLUS_PS_DECODE_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support AAC_PLUS_PS_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(AAC_PLUS_DECODE)),FALSE)
$(call DEP_ERR_ONA_OR_OFFB,AAC_PLUS_DECODE,AAC_PLUS_PS_DECODE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\heaacv2_dec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\heaacv2_dec.a
COM_DEFS += __HEAAC_V2_DECODE_SWIP__
endif
endif
COM_DEFS += AAC_PLUS_PS_DECODE
endif
endif
ifeq ($(strip $(M4A_DECODE)),TRUE)
ifneq ($(strip $(AAC_DECODE)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,AAC_DECODE,M4A_DECODE)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += M4A_DECODE
endif
ifdef WMA_DECODE
ifeq ($(strip $(WMA_DECODE)),TRUE)
WMA_DECODE_SUPPORT_PLATFORM = MT6228 MT6229 MT6230 MT6238 MT6239 MT6235 MT6235B MT6236 MT6236B MT6268T MT6268H MT6268A MT6268 MT6253T MT6253 MT6253E MT6253L MT6270A MT6252 MT6252H MT6921 MT6255 MT6256
ifeq ($(filter $(strip $(PLATFORM)) ,$(WMA_DECODE_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support WMA_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(COMPILER)),RVCT)
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
COMPOBJS += $(strip $(AUDLIB))\wma_dec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\wma_dec.a
COMPOBJS += $(strip $(AUDLIB))\asf_parser.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\asf_parser.a
endif
endif
COM_DEFS += WMA_DECODE
endif
endif
ifdef BT_SPEAKER_SUPPORT
ifeq ($(strip $(BT_SPEAKER_SUPPORT)),TRUE)
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
COMPOBJS += $(strip $(AUDLIB))\sbc_dec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\sbc_dec.a
COM_DEFS += SBC_DECODE
endif
endif
endif
ifeq ($(strip $(SPECTRUM_DISPLAY)),TRUE)
COM_DEFS += __SPECTRUM_DISPLAY_SUPPORT__
endif
ifeq ($(strip $(VM_CODEC)),TRUE)
COM_DEFS += __VM_CODEC_SUPPORT__
endif
ifeq ($(strip $(KEY_TONE_DETECTION)),TRUE)
COM_DEFS += __KEY_TONE_DETECTION__
endif
WT_ROM_V1_SUPPORT_PLATFORM = MT6253 MT6253T MT6253E MT6253L MT6252 MT6252H
WT_ROM_V2_SUPPORT_PLATFORM = MT6251
ifeq ($(strip $(WAVETABLE_VER)),WT_ROM_V1)
ifeq ($(filter $(strip $(PLATFORM)),$(WT_ROM_V1_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support WAVETABLE_VER=WT_ROM_V1)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(WAVETABLE_VER)),WT_ROM_V2)
ifeq ($(filter $(strip $(PLATFORM)),$(WT_ROM_V2_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support WAVETABLE_VER=WT_ROM_V2)
DEPENDENCY_CONFLICT = TRUE
endif
else
ifneq ($(filter $(strip $(PLATFORM)),$(WT_ROM_V2_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) must set WAVETABLE_VER=WT_ROM_V2)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifdef MELODY_VER
ifeq ($(strip $(MELODY_VER)),NONE)
MELODY_SWITCHOFF_MED_FLAVOR = MED_MODEM MED_BASIC
ifeq ($(filter $(strip $(MELODY_SWITCHOFF_MED_FLAVOR)),$(MED_PROFILE)),)
$(warning ERROR: Please do NOT set MELODY_VER to be NONE or set MED_PROFILE to be one of following value: $(MELODY_SWITCHOFF_MED_FLAVOR))
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(MELODY_VER)),DSP_WT_SYN)
ifeq ($(strip $(PLATFORM)),MT6205B)
$(warning ERROR: $(strip $(PLATFORM)) does not support MELODY_VER=$(strip $(MELODY_VER)))
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += $(strip $(WAVETABLE_VER))
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
ifneq ($(strip $(J2ME_SUPPORT)),NONE)
COMPOBJS += $(strip $(AUDLIB))\melody_par.a
else
COMPOBJS += $(strip $(AUDLIB))\SLIM\melody_par.a
endif
COMPOBJS += $(strip $(AUDLIB))\melody_syn.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\melody_syn.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\melody_par.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\SLIM\melody_par.a
else
COMPOBJS += $(strip $(AUDLIB))\melody_cmi.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\melody_cmi.a
endif
endif
ifeq ($(strip $(JTONE_SUPPORT)),TRUE)
JTONE_NOT_SUPPORT_PLATFORM = MT6205 MT6205B MT6218 MT6218B MT6208
ifeq ($(filter $(strip $(PLATFORM)),$(JTONE_NOT_SUPPORT_PLATFORM)),$(strip $(PLATFORM)))
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) not support JTONE_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += JTONE_SUPPORT
endif
BACKGROUND_SOUND_NOT_SUPPORT_PLATFORM = MT6226 MT6226M MT6227
ifdef BACKGROUND_SOUND
ifeq ($(strip $(BACKGROUND_SOUND)),TRUE)
ifneq ($(filter $(strip $(PLATFORM)),$(BACKGROUND_SOUND_NOT_SUPPORT_PLATFORM)),)
$(warning ERROR: $(strip $(PLATFORM)) does not support BACKGROUND_SOUND)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += BGSND_ENABLE
endif
endif
ifdef CTM_SUPPORT
ifneq ($(strip $(CTM_SUPPORT)),FALSE)
COM_DEFS += __CTM_SUPPORT__
COMPLIST += dp_engine
endif
endif
ifdef IP_COMMON_SUPPORT
ifeq ($(strip $(IP_COMMON_SUPPORT)),TRUE)
COM_DEFS += __IPS_SUPPORT__
IP_COMMON_SUPPORT_PLATFORM = MT6236 MT6236B MT6276 MT6921 MT6256 MT6255 MT6922
ifeq ($(filter $(strip $(PLATFORM)) ,$(IP_COMMON_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support IP_COMMON_SUPPORT.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\ipcommon.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\ipcommon.a
endif
endif
endif
ifneq ($(strip $(IP_COMMON_SUPPORT)),TRUE)
ifneq ($(filter MT6276%,$(PLATFORM)),)
ifeq ($(strip $(MELODY_VER)),DSP_WT_SYN)
$(warning ERROR: Please turn on IP_COMMON_SUPPORT when MELODY_VER=DSP_WT_SYN on 6276 projects.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifneq ($(filter MT6256%,$(PLATFORM)),)
ifeq ($(strip $(MELODY_VER)),DSP_WT_SYN)
$(warning ERROR: Please turn on IP_COMMON_SUPPORT when MELODY_VER=DSP_WT_SYN on 6256 projects.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifneq ($(filter MT6255%,$(PLATFORM)),)
ifeq ($(strip $(MELODY_VER)),DSP_WT_SYN)
$(warning ERROR: Please turn on IP_COMMON_SUPPORT when MELODY_VER=DSP_WT_SYN on 6255 projects.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifneq ($(filter MT6922%,$(PLATFORM)),)
ifeq ($(strip $(MELODY_VER)),DSP_WT_SYN)
$(warning ERROR: Please turn on IP_COMMON_SUPPORT when MELODY_VER=DSP_WT_SYN on 6922 projects.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifneq ($(filter MT6236% MT6921,$(PLATFORM)),)
ifeq ($(strip $(APE_DECODE)),TRUE)
$(warning ERROR: Please turn on IP_COMMON_SUPPORT when APE_DECODE=TRUE on 6236 projects.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(VIDEO_STANDALONE_MEMORY)),TRUE)
ifeq ($(strip $(MMI_VERSION)),COSMOS_MMI)
ifeq ($(strip $(DSP_SOLUTION)),DUALMACDSP)
COM_DEFS += __VIDEO_STANDALONE_MEMORY__
else
$(warning ERROR: Please set DSP_SOLUTION = DUALMACDSP)
DEPENDENCY_CONFLICT = TRUE
endif
else
$(warning ERROR: Please set MMI_VERSION = COSMOS_MMI)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COMMINCDIRS += custom\common\hal_public
COMMINCDIRS += custom\common\ps
COMMINCDIRS += custom\codegen\$(strip $(BOARD_VER))
VP8_DECODE_SUPPORT_PLATFORM = MT6250 MT6255 MT6256 MT6276 MT6260 MT6261
ifeq ($(strip $(VP8_DECODE)),TRUE)
ifneq ($(strip $(MP4_DECODE)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,MP4_DECODE,VP8_DECODE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(filter $(strip $(PLATFORM)),$(VP8_DECODE_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does NOT support VP8_DECODE = TRUE)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __VP8_DEC_SW_SUPPORT__
endif
endif
ifdef SW_TYPE
ifneq ($(strip $(SW_TYPE)),MODEM_PRODUCT)
ifeq ($(filter __L1_STANDALONE__,$(COM_DEFS)),)
ifeq ($(filter __MAUI_BASIC__,$(COM_DEFS)),)
ifdef SMART_PHONE_CORE
ifeq ($(filter WM_MODEM ANDROID_MODEM,$(strip $(SMART_PHONE_CORE))),)
COM_DEFS += MULTI_MEDIA_EXIST
endif
else
COM_DEFS += MULTI_MEDIA_EXIST
endif
endif
endif
endif
else
ifeq ($(filter __L1_STANDALONE__,$(COM_DEFS)),)
ifeq ($(filter __MAUI_BASIC__,$(COM_DEFS)),)
ifdef SMART_PHONE_CORE
ifeq ($(filter WM_MODEM ANDROID_MODEM,$(strip $(SMART_PHONE_CORE))),)
COM_DEFS += MULTI_MEDIA_EXIST
endif
else
COM_DEFS += MULTI_MEDIA_EXIST
endif
endif
endif
endif
ifeq ($(strip $(VIDEO_SUBTITLE_SUPPORT)),TRUE)
ifeq ($(strip $(MKV_FILE_FORMAT_SUPPORT)),TRUE)
COM_DEFS += __VIDEO_SUBTITLE_SUPPORT__
else
$(call DEP_ERR_ONA_OR_OFFB,MKV_FILE_FORMAT_SUPPORT,VIDEO_SUBTITLE_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(MKV_FILE_FORMAT_SUPPORT)),TRUE)
COM_DEFS += __MKV_FILE_FORMAT_SUPPORT__
endif
ifeq ($(strip $(MULTIPLE_BINARY_FILES)),TRUE)
ifeq ($(strip $(NAND_FLASH_BOOTING)),BASIC)
$(call DEP_ERR_SETA_OR_OFFB,NAND_FLASH_BOOTING,non BASIC,MULTIPLE_BINARY_FILES)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __MULTIPLE_BINARY_FILES__
ifeq ($(strip $(NAND_FLASH_BOOTING)),ONDEMAND)
COM_DEFS += __MBA_ON_DEMAND__
endif
ifeq ($(strip $(EMMC_BOOTING)),ONDEMAND)
COM_DEFS += __MBA_ON_DEMAND__
endif
ifeq ($(strip $(MBA_DEFAULT_BINARY)),CUST_ONLY)
COM_DEFS += __MBA_CUST_ONLY__
endif
ifeq ($(strip $(MBA_DEFAULT_BINARY)),LANG_ONLY)
COM_DEFS += __MBA_LANG_ONLY__
endif
ifeq ($(strip $(MBA_DEFAULT_BINARY)),CUST_AND_LANG)
COM_DEFS += __MBA_CUST_ONLY__
COM_DEFS += __MBA_LANG_ONLY__
endif
endif
MJPEG_DIRECT_COUPLE_PLATFORM = MT6256
ifdef CAMCORDER_MOTION_SENSOR_SUPPORT
ifneq ($(strip $(CAMCORDER_MOTION_SENSOR_SUPPORT)),NONE)
ifneq ($(strip $(CAMCORDER_SUPPORT)),NONE)
ifneq ($(strip $(MOTION_SENSOR_SUPPORT)),NONE)
ifeq ($(strip $(MMI_VERSION)),COSMOS_MMI)
ifeq ($(strip $(SENSOR_TYPE)),JPEG)
ifeq ($(strip $(CAMCORDER_MOTION_SENSOR_SUPPORT)),BOTH_BY_ENCODE)
$(warning ERROR: Please set CAMCORDER_MOTION_SENSOR_SUPPORT as BOTH_BY_TAG or CAM_BY_TAG_REC_BY_ENCODE due to jpeg sensor.)
DEPENDENCY_CONFLICT = TRUE
else
ifeq ($(strip $(CAMCORDER_MOTION_SENSOR_SUPPORT)),CAM_BY_ENCODE_REC_BY_TAG)
$(warning ERROR: Please set CAMCORDER_MOTION_SENSOR_SUPPORT as BOTH_BY_TAG or CAM_BY_TAG_REC_BY_ENCODE due to jpeg sensor.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(CAMCORDER_MOTION_SENSOR_SUPPORT)),BOTH_BY_ENCODE)
ifneq ($(filter $(strip $(PLATFORM)) ,$(MJPEG_DIRECT_COUPLE_PLATFORM)),)
ifeq ($(strip $(MJPG_ENCODE)),TRUE)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support MJPG encode rotation, please turn off MJPG_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COM_DEFS += __CAMERA_MOTION_SENSOR_SUPPORT_BY_ENCODE__
COM_DEFS += __RECORDER_MOTION_SENSOR_SUPPORT_BY_ENCODE__
endif
ifeq ($(strip $(CAMCORDER_MOTION_SENSOR_SUPPORT)),BOTH_BY_TAG)
COM_DEFS += __CAMERA_MOTION_SENSOR_SUPPORT_BY_TAG__
COM_DEFS += __RECORDER_MOTION_SENSOR_SUPPORT_BY_TAG__
endif
ifeq ($(strip $(CAMCORDER_MOTION_SENSOR_SUPPORT)),CAM_BY_TAG_REC_BY_ENCODE)
ifneq ($(filter $(strip $(PLATFORM)) ,$(MJPEG_DIRECT_COUPLE_PLATFORM)),)
ifeq ($(strip $(MJPG_ENCODE)),TRUE)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support MJPG encode rotation, please turn off MJPG_ENCODE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
COM_DEFS += __CAMERA_MOTION_SENSOR_SUPPORT_BY_TAG__
COM_DEFS += __RECORDER_MOTION_SENSOR_SUPPORT_BY_ENCODE__
endif
ifeq ($(strip $(CAMCORDER_MOTION_SENSOR_SUPPORT)),CAM_BY_ENCODE_REC_BY_TAG)
COM_DEFS += __CAMERA_MOTION_SENSOR_SUPPORT_BY_ENCODE__
COM_DEFS += __RECORDER_MOTION_SENSOR_SUPPORT_BY_TAG__
endif
else
ifneq ($(strip $(CAMCORDER_MOTION_SENSOR_SUPPORT)),BOTH_BY_TAG)
$(warning ERROR: Please set CAMCORDER_MOTION_SENSOR_SUPPORT as BOTH_BY_TAG or NONE)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(CAMCORDER_MOTION_SENSOR_SUPPORT)),BOTH_BY_TAG)
COM_DEFS += __CAMERA_MOTION_SENSOR_SUPPORT_BY_TAG__
COM_DEFS += __RECORDER_MOTION_SENSOR_SUPPORT_BY_TAG__
endif
endif
else
$(call DEP_ERR_ONA_OR_OFFB,MOTION_SENSOR_SUPPORT,CAMCORDER_MOTION_SENSOR_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
else
$(call DEP_ERR_ONA_OR_OFFB,CAMCORDER_SUPPORT,CAMCORDER_MOTION_SENSOR_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(DRV_BATTERY_EXIST_DETECTION)),TRUE)
COM_DEFS += __DRV_BATTERY_EXIST_DETECTION__
endif
ifdef CHARGING_ALGORITHM
ifeq ($(strip $(CHARGING_ALGORITHM)),PULSE_LI_CHARGING)
COM_DEFS += PULSE_LI_CHARGING
endif
ifeq ($(strip $(CHARGING_ALGORITHM)),PULSE_NIMH_CHARGING)
COM_DEFS += PULSE_NIMH_CHARGING
endif
ifeq ($(strip $(CHARGING_ALGORITHM)),LINEAR_LI_CHARGING)
COM_DEFS += LINEAR_LI_CHARGING
endif
ifeq ($(strip $(CHARGING_ALGORITHM)),LINEAR_NIMH_CHARGING)
COM_DEFS += LINEAR_NIMH_CHARGING
endif
endif
ifdef DSP_COMPRESS
ifneq ($(strip $(DSP_COMPRESS)),NONE)
DSP_COMPRESS_SUPPORT_PLATFORM = MT6225 MT6253 MT6253D MT6253E MT6253L MT6252 MT6252H MT6250 MT6260 MT6261
ifeq ($(strip $(DSP_COMPRESS)),ZIP)
COM_DEFS += __DSP_COMPRESS__
endif
ifeq ($(strip $(DSP_COMPRESS)),7Z)
COM_DEFS += __DSP_COMPRESS_7Z__
endif
ifeq ($(filter $(strip $(PLATFORM)) ,$(DSP_COMPRESS_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support DSP_COMPRESS.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifdef BLUETOOTH_SUPPORT
ifneq ($(filter BTMTK_MT6250 BTMTK_MT6260 BTMTK_MT6261, $(strip $(BLUETOOTH_SUPPORT))),)
COM_DEFS += __CVSD_CODEC_SUPPORT__
COMPLIST += dp_engine
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\Audio_IIRHPF.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\Audio_IIRHPF.a
COMPOBJS += $(strip $(AUDLIB))\cvsd_codec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\cvsd_codec.a
COMPOBJS += $(strip $(AUDLIB))\plc.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\plc.a
endif
endif
endif
ifdef WIFI_INTERFACE_TYPE
ifeq ($(strip $(WIFI_INTERFACE_TYPE)),NONE)
ifneq ($(strip $(WIFI_SUPPORT)),NONE)
$(call DEP_ERR_ONA_OR_OFFB,WIFI_INTERFACE_TYPE,WIFI_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(WIFI_INTERFACE_TYPE)),EHPI_8BIT)
COM_DEFS += __WIFI_EHPI_8BIT__
endif
ifeq ($(strip $(WIFI_INTERFACE_TYPE)),EHPI_16BIT)
COM_DEFS += __WIFI_EHPI_16BIT__
endif
ifeq ($(strip $(WIFI_INTERFACE_TYPE)),HIF_SDIO)
ifneq ($(strip $(MSDC_CARD_SUPPORT_TYPE)),MSDC_SD_SDIO)
$(warning ERROR: please set MSDC_CARD_SUPPORT_TYPE as MSDC_SD_SDIO when WIFI_INTERFACE_TYPE = HIF_SDIO.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __WIFI_HIF_SDIO__
endif
endif
ifeq ($(strip $(VIDEO_PLAYER_RECORDER_W_DCM)),ENABLE)
ifneq ($(strip $(DCM_COMPRESSION_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,DCM_COMPRESSION_SUPPORT,VIDEO_PLAYER_RECORDER_W_DCM)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __DCM_W_COMPRESSION_VIDEO_PLAYER_RECORDER__
endif
ifeq ($(strip $(FLAC_DECODE)),TRUE)
FLAC_DECODE_SUPPORT_PLATFORM = MT6255 MT6256 MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)),$(FLAC_DECODE_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support FLAC_DECODE.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(COMPILER)),RVCT)
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
COMPOBJS += $(strip $(AUDLIB))\flac_dec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\flac_dec.a
endif
endif
COM_DEFS += __FLAC_DECODE__
endif
ifdef CUSTOM_WIFI_FEATURES_SWITCH
ifeq ($(strip $(CUSTOM_WIFI_FEATURES_SWITCH)),TRUE)
ifneq ($(strip $(WIFI_SUPPORT)),NONE)
COM_DEFS += __CUSTOM_WIFI_FEATURES_SWITCH__
else
$(call DEP_ERR_SETA_OR_OFFB,WIFI_SUPPORT,MT5931,CUSTOM_WIFI_FEATURES_SWITCH)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifeq ($(strip $(ECALL_SUPPORT)),TRUE)
ifneq ($(strip $(R4_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,R4_SUPPORT,ECALL_SUPPORT)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __ECALL_SUPPORT__
COM_DEFS += __ECALL_PSAP_SUPPORT__
COMPLIST += dp_engine
endif
ifneq ($(filter MT6276 MT6255 MT6250 MT6256 MT6260 MT6261,$(PLATFORM)),)
ifeq ($(filter WT600K WT150K WT70K WT20K,$(WAVETABLE_VER)),)
$(warning ERROR: WAVETABLE_VER only allows WT600K\WT150K\WT70K\WT20K,when PLATFORM = $(strip $(PLATFORM)).)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(USB_SUPPORT)),TRUE)
COM_DEFS += __CHARGER_USB_DETECT_WIHT_ONE_EINT__
endif
ifneq ($(filter __UMTS_TDD128_MODE__,$(strip $(COM_DEFS))),)
COM_DEFS += __ATCI_QUEUE_AT__
endif
ifeq ($(strip $(VIDEO_CLIPPER_SUPPORT)),TRUE)
ifeq ($(strip $(MMI_VERSION)),COSMOS_MMI)
CLIPPER_SUPPORT = FALSE
ifeq ($(strip $(M3GPMP4_FILE_FORMAT_SUPPORT)),TRUE)
CLIPPER_SUPPORT = TRUE
endif
ifeq ($(strip $(MJPG_DECODE)),TRUE)
CLIPPER_SUPPORT = TRUE
endif
ifeq ($(strip $(CLIPPER_SUPPORT)),TRUE)
COM_DEFS += __VIDEO_CLIPPER_SUPPORT__
endif
endif
endif
AUDIO_DC_CALIBRATION_PLATFORM = MT6251 MT6255 MT6256 MT6250 MT6922 MT6260 MT6261
ifneq ($(filter $(AUDIO_DC_CALIBRATION_PLATFORM),$(PLATFORM)),)
COM_DEFS += __AUDIO_DC_CALIBRATION_SUPPORT__
endif
ifeq ($(strip $(SERIAL_FLASH_SUPPORT)),TRUE)
ifdef EMMC_BOOTING
ifneq ($(strip $(EMMC_BOOTING)),NONE)
$(warning ERROR: when SERIAL_FLASH_SUPPORT is TRUE, please set EMMC_BOOTING = NONE.)
DEPENDENCY_CONFLICT = TRUE
else
ifdef NAND_FLASH_BOOTING
ifneq ($(strip $(NAND_FLASH_BOOTING)),NONE)
$(warning ERROR: when SERIAL_FLASH_SUPPORT is TRUE, please set NAND_FLASH_BOOTING = NONE.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
else
ifdef NAND_FLASH_BOOTING
ifneq ($(strip $(NAND_FLASH_BOOTING)),NONE)
$(warning ERROR: when SERIAL_FLASH_SUPPORT is TRUE, please set NAND_FLASH_BOOTING = NONE.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
COM_DEFS += __SERIAL_FLASH_EN__
COM_DEFS += __SERIAL_FLASH_SUPPORT__
endif
ifeq ($(strip $(VIDEO_SUBTITLE_SUPPORT)),TRUE)
ifeq ($(strip $(MMI_VERSION)),PLUTO_MMI)
ifneq ($(strip $(FINGER_TOUCH_SUPPORT)),FTE)
$(call DEP_ERR_SETA_OR_SETB,FINGER_TOUCH_SUPPORT,FTE,VIDEO_SUBTITLE_SUPPORT,FALSE)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
JPEG_SENSOR_SUPPORT_PLATFORM = MT6256 MT6276 MT6255 MT6922
ifeq ($(strip $(SENSOR_TYPE)),JPEG)
ifeq ($(filter $(strip $(PLATFORM)) ,$(JPEG_SENSOR_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support JPEG SENSOR)
DEPENDENCY_CONFLICT = TRUE
else
COM_DEFS += __JPEG_SENSOR_SUPPORT__
endif
endif
ifdef LOW_COST_SUPPORT
ifneq ($(strip $(LOW_COST_SUPPORT)),ULC)
ifdef MJPG_ENCODE_MODE
ifeq ($(strip $(MJPG_ENCODE)),TRUE)
ifndef MJPG_DECODE_MODE
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support MJPG_ENCODE_MODE=$(strip $(MJPG_ENCODE_MODE)) without MJPG_DECODE_MODE define .)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(strip $(MJPG_ENCODE_MODE)),NORMAL)
ifeq ($(strip $(MJPG_DECODE_MODE)),SLIM)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support MJPG_ENCODE_MODE=$(strip $(MJPG_ENCODE_MODE)) with MJPG_DECODE_MODE=$(strip $(MJPG_DECODE_MODE)) .)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(MJPG_ENCODE_MODE)),SLIM)
MJPG_ENCODE_MODE_SLIM_SUPPORT_PLATFORM = MT6250 MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)) ,$(MJPG_ENCODE_MODE_SLIM_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support MJPG_ENCODE_MODE=$(strip $(MJPG_ENCODE_MODE)) .)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __MJPEG_ENC_SW_SLIM__
endif
endif
endif
endif
endif
ifeq ($(strip $(DUAL_SERIAL_FLASH_SUPPORT)),TRUE)
COM_DEFS += __DUAL_SERIAL_FLASH_SUPPORT__
ifneq ($(strip $(COMBO_MEMORY_SUPPORT)),TRUE)
$(warning ERROR: DUAL_SERIAL_FLASH_SUPPORT = TRUE only available when COMBO_MEMORY_SUPPORT = TRUE on MT6250/MT6260/MT6261.)
DEPENDENCY_CONFLICT = TRUE
endif
ifeq ($(filter MT6250 MT6260 MT6261,$(PLATFORM)),)
$(warning ERROR: DUAL_SERIAL_FLASH_SUPPORT = TRUE only available when COMBO_MEMORY_SUPPORT = TRUE on MT6250/MT6260/MT6261.)
DEPENDENCY_CONFLICT = TRUE
endif
endif
ifeq ($(strip $(AUDIO_COMPONENT_SUPPORT_CONDITION)),TRUE)
COM_DEFS += __MCU_DTMF_SUPPORT__
ifeq ($(strip $(COMPILER)),RVCT)
COMPOBJS += $(strip $(AUDLIB))\dtmf_gen.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\dtmf_gen.a
endif
endif
ifdef CLASSK_CHARGEPUMP_SUPPORT
ifeq ($(strip $(CLASSK_CHARGEPUMP_SUPPORT)),TRUE)
CLASSK_CHARGEPUMP_SUPPORT_PLATFORM = MT6260 MT6261
ifeq ($(filter $(strip $(PLATFORM)),$(CLASSK_CHARGEPUMP_SUPPORT_PLATFORM)),)
$(warning ERROR: PLATFORM $(strip $(PLATFORM)) does not support CLASSK_CHARGEPUMP.)
DEPENDENCY_CONFLICT = TRUE
endif
COM_DEFS += __CLASSK_CP_SUPPORT__
endif
endif
ifdef VERIFY_ALL_IMAGES
ifeq ($(strip $(VERIFY_ALL_IMAGES)),TRUE)
ifneq ($(strip $(ZIMAGE_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,ZIMAGE_SUPPORT,VERIFY_ALL_IMAGES)
DEPENDENCY_CONFLICT = TRUE
endif
ifneq ($(strip $(ALICE_SUPPORT)),TRUE)
$(call DEP_ERR_ONA_OR_OFFB,ALICE_SUPPORT,VERIFY_ALL_IMAGES)
DEPENDENCY_CONFLICT = TRUE
endif
endif
endif
ifdef KARAOKE_SUPPORT
ifeq ($(strip $(KARAOKE_SUPPORT)),TRUE)
COM_DEFS += __KARAOKE_SUPPORT__
COM_DEFS += __KARAOKE_NEED_KEEP_SRC_PATH__
endif
COMPOBJS += $(strip $(AUDLIB))\aec.a
CUS_REL_OBJ_LIST += $(strip $(AUDLIB))\aec.a
endif