-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.common
2964 lines (2430 loc) · 92.7 KB
/
make.common
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
GPL_CODE_NCS=1
GPL_CODE_TELUS=1
GPL_CODE_TELUS_T3200=1
GPL_CODE_DHCP_AUTO_RESERVATION=1
GPL_CODE_TR098_TELUS=1
GPL_CODE_AEIGUI=1
GPL_CODE_TR098=1
GPL_CODE_MYNETWORK=1
GPL_CODE_TR157=1
GPL_CODE_WAN_ETH=1
GPL_CODE_FULLPATH_IDENTIFY_DEFAULT_WAN=1
GPL_CODE_UPNP_NAT_FEATURE=1
GPL_CODE_DNS_CACHE=1
GPL_CODE_TOOLBOX=1
GPL_CODE_TCPDUMP_FEATURE=1
GPL_CODE_EXTSW_DEBUG=1
GPL_CODE_GLOBAL_SINGLE_FIREWALL=1
GPL_CODE_UPGRADE_HISTORY_SPAD=1
GPL_CODE_WT107=1
GPL_CODE_HTTP_COOKIE=1
GPL_CODE_MULTILEVEL=1
GPL_CODE_AUTO_DETEC_MULTIPLE_PHY=1
GPL_CODE_QOS=1
GPL_CODE_QOS_STATUS=1
GPL_CODE_BRIDGE_STB_QOS=1
GPL_CODE_SMARTDMZ=1
GPL_CODE_SMALL_PACKET_PRIORITY=3
GPL_CODE_LOG_FIREWALL_DROP=1
GPL_CODE_SERVICES_BLOCK_FIVE_RULES=1
GPL_CODE_WEBSITE_BLOCK=1
GPL_CODE_WEBACTIVELOG_SWITCH=1
GPL_CODE_MULTI_LANGUAGE=1
GPL_CODE_DHCP_WAN_LEASETIME=1
GPL_CODE_DHCP_WAN_OPTION60=1
GPL_CODE_TR098_TR64=1
GPL_CODE_ADVANCED_DMZ=1
GPL_CODE_DHCP_WAN_OPTION121=1
GPL_CODE_DNS_PROBE=1
GPL_CODE_MDM_ADJUST_FEATURE=1
GPL_CODE_WPS_AP_PIN=1
GPL_CODE_DHCP_LEASE=1
GPL_CODE_STB_NO_FIREWALL=1
GPL_CODE_CPU_SYSLOG=1
GPL_CODE_63138_CHIP=1
GPL_CODE_CONFIG_JFFS=1
GPL_CODE_SIGNED_FIRMWARE=1
GPL_CODE_ENABLE_PROFILE_LOG=1
GPL_CODE_DHCP_OPTION42=1
GPL_CODE_FIREWALL_DSCP=1
GPL_CODE_WIRELESS_DUALBAND=1
GPL_CODE_DHCP_OPTION60=1
GPL_CODE_DHCP_OPTION67=1
GPL_CODE_DHCP_OPTION128=1
GPL_CODE_ALG_PASSTHROUGH=1
GPL_CODE_QUANTENNA_SUPPORT=1
BUILD_GPL_CODE_QUANTENNA_LIB=1
GPL_CODE_CWMP_CLI=1
GPL_CODE_WP=1
GPL_CODE_CONTROL_PING6=1
ACTION_TEC_IPV6_CODE_FOR_IOT=1
GPL_CODE_CONTROL_LAYER=1
GPL_CODE_CONTROL_TR143_IPV6=1
GPL_CODE_SUPPORT_PHYTYPE_IFNAME_CHANGE=1
GPL_CODE_MSG_L3INTERFACE_FOR_CENTURYLINK=1
ACTION_TEC_IPV6_CODE_FOR_IOT_DEL_ADDR=1
GPL_CODE_SUPPORT_6RD=1
GPL_CODE_CONTROL_TR98_IPV6=1
GPL_CODE_FUNCTION_UPNP_MOD=1
GPL_CODE_PORT_BRIDGE=1
GPL_CODE_CONNTRACK_TIMEOUT=1
GPL_CODE_SSID_ACCESS_CTL=1
GPL_CODE_VSDL_ARPSCAN=1
GPL_CODE_PREVENT_DNS_REBIND=1
GPL_CODE_ADVANCED_WL_STATISTICS=1
GPL_CODE_FEATURE_IPERF=1
GPL_CODE_UPNP_IPV6FIREWALLCONTROL=1
GPL_CODE_CRASHLOG=1
GPL_CODE_WIFI_MAC_FROM_SYS_POOL=1
GPL_CODE_CONFIGFILE_ENCRYPTION=1
GPL_CODE_AUTO_RELAUNCH_DHCPC=1
GPL_CODE_24G_WIFI_CALIBRATION_TEST_SUPPORT=1
GPL_CODE_RESTART_SSK=1
GPL_CODE_STB_XML=1
GPL_CODE_DEFAULT_CFG_CUSTOMER=1
GPL_CODE_DHCPFORCERENEW=1
GPL_CODE_SPEED_TEST=1
GPL_CODE_TELUS_SPECIAL=1
GPL_CODE_ROOTPASSWD=1
GPL_CODE_SECURITY_VULNERABLE_PROTECT=1
GPL_CODE_MUTIL_WAN_ETHERNET_PHY=1
GPL_CODE_PASSWORD_ENCRYPTION=1
GPL_CODE_DUAL_RGMII=1
GPL_CODE_QTN_WIRELESS_RGMII=1
GPL_CODE_ROOT_LOGIN=1
GPL_CODE_ENCRYPTION=1
GPL_CODE_SECURITY_SESSIONKEY=1
GPL_CODE_COOKIE_BASED_AUTH=1
GPL_CODE_ACTIVE_GUI_ONE_SESSION=1
GPL_CODE_WAN_CONVERT_LAN=1
CONFIG_BHR5C_CIG_USB=1
GPL_CODE_FACTORY_TEST=1
GPL_CODE_USE_LIBCURL=1
GPL_CODE_CLI_TEST_CMD=1
GPL_CODE_XDSL_INFO_GRAPH=1
GPL_CODE_CONSOLE_SECURITY_MODE=1
GPL_CODE_QTN_CONSOLE_ACCESS=1
GPL_CODE_SECURITY_LEVEL_3=1
GPL_CODE_SECURITY_LEVEL_3_TR=1
CONFIG_GPL_CODE_CMD_INTERCEPTOR=1
GPL_CODE_LOAD_BALANCING_CONTROL=1
GPL_CODE_AUTO_RESTART_MOCA=1
GPL_CODE_ENABLE_PAUSE=1
GPL_CODE_DETECT_BOARD_ID=1
GPL_CODE_INTERNET_LED_BEHAVIOR=1
GPL_CODE_ENABLE_VIDEO_SSID=1
GPL_CODE_CONFIG_DSCP_WMM_MAPPING=1
GPL_CODE_DFS_REENTRY=1
GPL_CODE_TELUS_STATIC_MAC_ADDR=y
GPL_CODE_ARPSCAN=1
GPL_CODE_DMZ_TIMER=1
GPL_CODE_CASCADED_PD=1
GPL_CODE_MULT_BOARD_ID_IN_ONE_FIRMWARE=1
GPL_CODE_SUPPORT_WIFI_CHANNEL_RECORD=1
GPL_CODE_TELUS_SPECIAL_WAN_ADDR=1
GPL_CODE_SUPPORT_DHCPV6_PD_ONLY=1
GPL_CODE_CONTROL_LAYER_SLAAC=1
GPL_CODE_WAN_DHCP_OPTION60_TR69_CONFIG=1
GPL_CODE_63138_WAN_ETHER_LINK_PATCH=1
GPL_CODE_63138_LAN_ETHER_LINK_PATCH=1
GPL_CODE_TELUS_ACL=1
GPL_CODE_BAND_STEERING=1
GPL_CODE_UPNP_FEATURE=1
GPL_CODE_SYNC_DNS_PROXY_HOSTNAME=1
GPL_CODE_GUI_SECURITY=1
GPL_CODE_TELUS_T3200_RDNSS=1
GPL_CODE_SUPPORT_PARENT_CONTROL=1
GPL_CODE_SFP_DETECTION_BY_GPIO=1
GPL_CODE_IEEE1905_WIFI_SYNC=1
GPL_CODE_QUANTENNA_PAIRING_PROTECTION=1
GPL_CODE_QUANTENNA_MAUI_MODE=1
GPL_CODE_DHCPV6_LEASE=1
GPL_CODE_SCHEDULE_ACS=1
GPL_CODE_QTN_RGMII_RELOAD=1
GPL_CODE_INDEX_REUSE=1
GPL_CODE_DUAL_IMAGE_CONFIG=1
GPL_CODE_DHD_OFFLOAD_CONF=1
GPL_CODE_DHD_WATCHDOG=1
GPL_CODE_SUPPORT_LAN_FIREWALL=1
GPL_CODE_AIRTIME_FAIRNESS=1
GPL_CODE_SECBTN_LONG_HOLD=1
GPL_CODE_63138_DP_VER=A2pvbH042w
GPL_CODE_TR069_PROTO=1
GPL_CODE_TR069_SYSLOG=1
GPL_CODE_TR069_WIFI_INIT=1
GPL_CODE_EXT_SWITCH_PORT_ISOLATE=1
GPL_CODE_TELUS_T3200_DHCP6C_RENEW=1
GPL_CODE_DSL_DRIVER_VERSION=26r
GPL_CODE_TELUS_LAN_WAN_SPEED=1
GPL_CODE_SUPPORT_100M_ETH_RELINK=1
GPL_CODE_FIRST_GET_V4=1
GPL_CODE_DETECT_24G_WIFI=1
GPL_CODE_SERVICE_QEVT=1
GPL_CODE_MOCA_LINK_EVENT=1
GPL_CODE_SUPPORT_TR181_MOCA=1
GPL_CODE_WP_AUTO_CONFIG=1
GPL_CODE_REMOVE_DUPLICATE_SOAP_LOG=1
GPL_CODE_TR143_SPEED_TEST=1
GPL_CODE_DISABLE_LAN_PORT_DISABLE_PHY=1
GPL_CODE_ETH_PORT_MODE_SET=1
GPL_CODE_DSL_STATE_GUI_ACCESS_NO_AUTH=1
GPL_CODE_OOKLA_SPEED_TEST=1
GPL_CODE_SCKIPIO_RESTRICT_OUI=70:f1:96
GPL_CODE_SUPPORT_SCKIPIO_GFAST=1
GPL_CODE_QTN_11KV=1
GPL_CODE_WIFI_RMV_LOWBAND_FROMICS=1
GPL_CODE_LAN_BRIDGE_EXTEND=1
GPL_CODE_TELUS_DETECT_WAN_SERVICE=1
GPL_CODE_SUPPORT_MU_MIMO=1
GPL_CODE_DUMPMDM=1
GPL_CODE_DUMPCFG=1
GPL_CODE_QTN_VERSION=Acr4.5
GPL_CODE_BRCM_BONDING_SEED=1
GPL_CODE_MOCA_IMPEDANCE_MODE_BONDING=0x541
GPL_CODE_MOCA_TX_POWER=1
GPL_CODE_WIRELESS_TR181_WDS=1
GPL_CODE_ABSD_AIRUSAGE=1
GPL_CODE_ABSD_5G_11KV=1
GPL_CODE_ABSD_BRCM_2G=1
GPL_CODE_ABSD_REPO=1
GPL_CODE_WIFI_RMV_CHAN_FROMICS=1
GPL_CODE_ABS_DENIED_MACLIST=1
GPL_CODE_PUBLIC_WIFI=1
GPL_CODE_TR69_SERVER_NAME_SUPPORT=1
GPL_CODE_SUPPORT_ASSIA_AGENT=1
GPL_CODE_SUPPORT_EBTABLES_DATE_MATCH=1
GPL_CODE_SUPPORT_EBTABLES_DOMAINNAME=1
GPL_CODE_SUPPORT_EBTABLES_PCREDIRECT=1
GPL_CODE_SUPPORT_EBTABLES_TIME_OVERNIGHT_MATCH=1
GPL_CODE_SUPPORT_SERVICE_BLOKING_EXTEND=1
GPL_CODE_SUPPORT_SCHEDULING_ACCESS_EXTEND=1
GPL_CODE_WEBSITE_BLK_IPv6=1
GPL_CODE_OPENSSL_1_1_0E=1
GPL_CODE_WIFI_TXPOWER_SWITCH=1
GPL_CODE_TELUS_CALL_CENTER=1
GPL_CODE_TR69_MONITOR=1
GPL_CODE_TIMEZONE_NAME_STD_SUPPORT=1
GPL_CODE_TR069_SKIP_COMMON_NAME_CHECK=1
GPL_CODE_ENABLE_PANIC_OOPS=1
GPL_CODE_PROHIBIT_MODIFY_NVRAM=1
GPL_CODE_CMS_LOCK_DEBUG=1
GPL_CODE_FEATURE_GATEWAY_CAPABILITY=1
GPL_CODE_CONSOLE=1
GPL_CODE_WPS_LOCKDOWN_LOG=1
GPL_CODE_SUPPORT_WIFI_181=1
GPL_CODE_STATISTICS_COLLECT=1
GPL_CODE_VODSL_FW=1
GPL_CODE_WIFI_SEPARATE_PRIMARY_SSID=1
GPL_CODE_WIFI_TELUS_CLIENT_CAPABILITIES=1
GPL_CODE_IOCTL_IFSTATS=1
GPL_CODE_SUPPORT_SFP_TR98_VENDOR_EXTENSIONS=1
GPL_CODE_EXFAT_SUPPORT=1
GPL_CODE_HFSPLUS_SUPPORT=1
GPL_CODE_CLI_EXTEND=1
GPL_CODE_DLNA_RESCAN=1
GPL_CODE_WCB_EP=1
GPL_CODE_DSL_FAILED_TRAIN_COUNT_BEFORE_FLAP=5
GPL_CODE_SEND_EXTRA_NOTIFICATION=1
GPL_CODE_UPGRADE_MEM_CHECK=1
GPL_CODE_PC_PAUSE_INTERNET=1
GPL_CODE_TELUS_T3200_SFP_LED=1
GPL_CODE_CMS_MSG_NOBLOCK=1
GPL_CODE_SUPPORT_CUJO=1
GPL_CODE_ENABLE_IOT_SSID=1
GPL_CODE_CMSLOCK_MONITOR=1
GPL_CODE_CDROUTER_TESTMODE_SUPPORT=1
GPL_CODE_AUTODNS_VULNERABLE=1
GPL_CODE_REMOVE_DNS_SUFFIX=1
GPL_CODE_COVERITY_FIX=1
GPL_CODE_ABBA_FIX=1
GPL_CODE_QTN_VER=4500
NAND_FLASH_BLOCK_SIZE=128
export GPL_CODE_NCS GPL_CODE_TELUS GPL_CODE_TELUS_T3200 GPL_CODE_DHCP_AUTO_RESERVATION GPL_CODE_TR098_TELUS GPL_CODE_AEIGUI GPL_CODE_TR098 GPL_CODE_MYNETWORK GPL_CODE_TR157 GPL_CODE_WAN_ETH GPL_CODE_FULLPATH_IDENTIFY_DEFAULT_WAN GPL_CODE_UPNP_NAT_FEATURE GPL_CODE_DNS_CACHE GPL_CODE_TOOLBOX GPL_CODE_TCPDUMP_FEATURE GPL_CODE_EXTSW_DEBUG GPL_CODE_GLOBAL_SINGLE_FIREWALL GPL_CODE_UPGRADE_HISTORY_SPAD GPL_CODE_WT107 GPL_CODE_HTTP_COOKIE GPL_CODE_MULTILEVEL GPL_CODE_AUTO_DETEC_MULTIPLE_PHY GPL_CODE_QOS GPL_CODE_QOS_STATUS GPL_CODE_BRIDGE_STB_QOS GPL_CODE_SMARTDMZ GPL_CODE_SMALL_PACKET_PRIORITY GPL_CODE_LOG_FIREWALL_DROP GPL_CODE_SERVICES_BLOCK_FIVE_RULES GPL_CODE_WEBSITE_BLOCK GPL_CODE_WEBACTIVELOG_SWITCH GPL_CODE_MULTI_LANGUAGE GPL_CODE_DHCP_WAN_LEASETIME GPL_CODE_DHCP_WAN_OPTION60 GPL_CODE_TR098_TR64 GPL_CODE_ADVANCED_DMZ GPL_CODE_DHCP_WAN_OPTION121 GPL_CODE_DNS_PROBE GPL_CODE_MDM_ADJUST_FEATURE GPL_CODE_WPS_AP_PIN GPL_CODE_DHCP_LEASE GPL_CODE_STB_NO_FIREWALL GPL_CODE_CPU_SYSLOG GPL_CODE_63138_CHIP GPL_CODE_CONFIG_JFFS GPL_CODE_SIGNED_FIRMWARE GPL_CODE_ENABLE_PROFILE_LOG GPL_CODE_DHCP_OPTION42 GPL_CODE_FIREWALL_DSCP GPL_CODE_WIRELESS_DUALBAND GPL_CODE_DHCP_OPTION60 GPL_CODE_DHCP_OPTION67 GPL_CODE_DHCP_OPTION128 GPL_CODE_ALG_PASSTHROUGH GPL_CODE_QUANTENNA_SUPPORT BUILD_GPL_CODE_QUANTENNA_LIB GPL_CODE_CWMP_CLI GPL_CODE_WP GPL_CODE_CONTROL_PING6 ACTION_TEC_IPV6_CODE_FOR_IOT GPL_CODE_CONTROL_LAYER GPL_CODE_CONTROL_TR143_IPV6 GPL_CODE_SUPPORT_PHYTYPE_IFNAME_CHANGE GPL_CODE_MSG_L3INTERFACE_FOR_CENTURYLINK ACTION_TEC_IPV6_CODE_FOR_IOT_DEL_ADDR GPL_CODE_SUPPORT_6RD GPL_CODE_CONTROL_TR98_IPV6 GPL_CODE_FUNCTION_UPNP_MOD GPL_CODE_PORT_BRIDGE GPL_CODE_CONNTRACK_TIMEOUT GPL_CODE_SSID_ACCESS_CTL GPL_CODE_VSDL_ARPSCAN GPL_CODE_PREVENT_DNS_REBIND GPL_CODE_ADVANCED_WL_STATISTICS GPL_CODE_FEATURE_IPERF GPL_CODE_UPNP_IPV6FIREWALLCONTROL GPL_CODE_CRASHLOG GPL_CODE_WIFI_MAC_FROM_SYS_POOL GPL_CODE_CONFIGFILE_ENCRYPTION GPL_CODE_AUTO_RELAUNCH_DHCPC GPL_CODE_24G_WIFI_CALIBRATION_TEST_SUPPORT GPL_CODE_RESTART_SSK GPL_CODE_STB_XML GPL_CODE_DEFAULT_CFG_CUSTOMER GPL_CODE_DHCPFORCERENEW GPL_CODE_SPEED_TEST GPL_CODE_TELUS_SPECIAL GPL_CODE_ROOTPASSWD GPL_CODE_SECURITY_VULNERABLE_PROTECT GPL_CODE_MUTIL_WAN_ETHERNET_PHY GPL_CODE_PASSWORD_ENCRYPTION GPL_CODE_DUAL_RGMII GPL_CODE_QTN_WIRELESS_RGMII GPL_CODE_ROOT_LOGIN GPL_CODE_ENCRYPTION GPL_CODE_SECURITY_SESSIONKEY GPL_CODE_COOKIE_BASED_AUTH GPL_CODE_ACTIVE_GUI_ONE_SESSION GPL_CODE_WAN_CONVERT_LAN CONFIG_BHR5C_CIG_USB GPL_CODE_FACTORY_TEST GPL_CODE_USE_LIBCURL GPL_CODE_CLI_TEST_CMD GPL_CODE_XDSL_INFO_GRAPH GPL_CODE_CONSOLE_SECURITY_MODE GPL_CODE_QTN_CONSOLE_ACCESS GPL_CODE_SECURITY_LEVEL_3 GPL_CODE_SECURITY_LEVEL_3_TR CONFIG_GPL_CODE_CMD_INTERCEPTOR GPL_CODE_LOAD_BALANCING_CONTROL GPL_CODE_AUTO_RESTART_MOCA GPL_CODE_ENABLE_PAUSE GPL_CODE_DETECT_BOARD_ID GPL_CODE_INTERNET_LED_BEHAVIOR GPL_CODE_ENABLE_VIDEO_SSID GPL_CODE_CONFIG_DSCP_WMM_MAPPING GPL_CODE_DFS_REENTRY GPL_CODE_TELUS_STATIC_MAC_ADDR GPL_CODE_ARPSCAN GPL_CODE_DMZ_TIMER GPL_CODE_CASCADED_PD GPL_CODE_MULT_BOARD_ID_IN_ONE_FIRMWARE GPL_CODE_SUPPORT_WIFI_CHANNEL_RECORD GPL_CODE_TELUS_SPECIAL_WAN_ADDR GPL_CODE_SUPPORT_DHCPV6_PD_ONLY GPL_CODE_CONTROL_LAYER_SLAAC GPL_CODE_WAN_DHCP_OPTION60_TR69_CONFIG GPL_CODE_63138_WAN_ETHER_LINK_PATCH GPL_CODE_63138_LAN_ETHER_LINK_PATCH GPL_CODE_TELUS_ACL GPL_CODE_BAND_STEERING GPL_CODE_UPNP_FEATURE GPL_CODE_SYNC_DNS_PROXY_HOSTNAME GPL_CODE_GUI_SECURITY GPL_CODE_TELUS_T3200_RDNSS GPL_CODE_SUPPORT_PARENT_CONTROL GPL_CODE_SFP_DETECTION_BY_GPIO GPL_CODE_IEEE1905_WIFI_SYNC GPL_CODE_QUANTENNA_PAIRING_PROTECTION GPL_CODE_QUANTENNA_MAUI_MODE GPL_CODE_DHCPV6_LEASE GPL_CODE_SCHEDULE_ACS GPL_CODE_QTN_RGMII_RELOAD GPL_CODE_INDEX_REUSE GPL_CODE_DUAL_IMAGE_CONFIG GPL_CODE_DHD_OFFLOAD_CONF GPL_CODE_DHD_WATCHDOG GPL_CODE_SUPPORT_LAN_FIREWALL GPL_CODE_AIRTIME_FAIRNESS GPL_CODE_SECBTN_LONG_HOLD GPL_CODE_63138_DP_VER GPL_CODE_TR069_PROTO GPL_CODE_TR069_SYSLOG GPL_CODE_TR069_WIFI_INIT GPL_CODE_EXT_SWITCH_PORT_ISOLATE GPL_CODE_TELUS_T3200_DHCP6C_RENEW GPL_CODE_DSL_DRIVER_VERSION GPL_CODE_TELUS_LAN_WAN_SPEED GPL_CODE_SUPPORT_100M_ETH_RELINK GPL_CODE_FIRST_GET_V4 GPL_CODE_DETECT_24G_WIFI GPL_CODE_SERVICE_QEVT GPL_CODE_MOCA_LINK_EVENT GPL_CODE_SUPPORT_TR181_MOCA GPL_CODE_WP_AUTO_CONFIG GPL_CODE_REMOVE_DUPLICATE_SOAP_LOG GPL_CODE_TR143_SPEED_TEST GPL_CODE_DISABLE_LAN_PORT_DISABLE_PHY GPL_CODE_ETH_PORT_MODE_SET GPL_CODE_DSL_STATE_GUI_ACCESS_NO_AUTH GPL_CODE_OOKLA_SPEED_TEST GPL_CODE_SCKIPIO_RESTRICT_OUI GPL_CODE_SUPPORT_SCKIPIO_GFAST GPL_CODE_QTN_11KV GPL_CODE_WIFI_RMV_LOWBAND_FROMICS GPL_CODE_LAN_BRIDGE_EXTEND GPL_CODE_TELUS_DETECT_WAN_SERVICE GPL_CODE_SUPPORT_MU_MIMO GPL_CODE_DUMPMDM GPL_CODE_DUMPCFG GPL_CODE_QTN_VERSION GPL_CODE_BRCM_BONDING_SEED GPL_CODE_MOCA_IMPEDANCE_MODE_BONDING GPL_CODE_MOCA_TX_POWER GPL_CODE_WIRELESS_TR181_WDS GPL_CODE_ABSD_AIRUSAGE GPL_CODE_ABSD_5G_11KV GPL_CODE_ABSD_BRCM_2G GPL_CODE_ABSD_REPO GPL_CODE_WIFI_RMV_CHAN_FROMICS GPL_CODE_ABS_DENIED_MACLIST GPL_CODE_PUBLIC_WIFI GPL_CODE_TR69_SERVER_NAME_SUPPORT GPL_CODE_SUPPORT_ASSIA_AGENT GPL_CODE_SUPPORT_EBTABLES_DATE_MATCH GPL_CODE_SUPPORT_EBTABLES_DOMAINNAME GPL_CODE_SUPPORT_EBTABLES_PCREDIRECT GPL_CODE_SUPPORT_EBTABLES_TIME_OVERNIGHT_MATCH GPL_CODE_SUPPORT_SERVICE_BLOKING_EXTEND GPL_CODE_SUPPORT_SCHEDULING_ACCESS_EXTEND GPL_CODE_WEBSITE_BLK_IPv6 GPL_CODE_OPENSSL_1_1_0E GPL_CODE_WIFI_TXPOWER_SWITCH GPL_CODE_TELUS_CALL_CENTER GPL_CODE_TR69_MONITOR GPL_CODE_TIMEZONE_NAME_STD_SUPPORT GPL_CODE_TR069_SKIP_COMMON_NAME_CHECK GPL_CODE_ENABLE_PANIC_OOPS GPL_CODE_PROHIBIT_MODIFY_NVRAM GPL_CODE_CMS_LOCK_DEBUG GPL_CODE_FEATURE_GATEWAY_CAPABILITY GPL_CODE_CONSOLE GPL_CODE_WPS_LOCKDOWN_LOG GPL_CODE_SUPPORT_WIFI_181 GPL_CODE_STATISTICS_COLLECT GPL_CODE_VODSL_FW GPL_CODE_WIFI_SEPARATE_PRIMARY_SSID GPL_CODE_WIFI_TELUS_CLIENT_CAPABILITIES GPL_CODE_IOCTL_IFSTATS GPL_CODE_SUPPORT_SFP_TR98_VENDOR_EXTENSIONS GPL_CODE_EXFAT_SUPPORT GPL_CODE_HFSPLUS_SUPPORT GPL_CODE_CLI_EXTEND GPL_CODE_DLNA_RESCAN GPL_CODE_WCB_EP GPL_CODE_DSL_FAILED_TRAIN_COUNT_BEFORE_FLAP GPL_CODE_SEND_EXTRA_NOTIFICATION GPL_CODE_UPGRADE_MEM_CHECK GPL_CODE_PC_PAUSE_INTERNET GPL_CODE_TELUS_T3200_SFP_LED GPL_CODE_CMS_MSG_NOBLOCK GPL_CODE_SUPPORT_CUJO GPL_CODE_ENABLE_IOT_SSID GPL_CODE_CMSLOCK_MONITOR GPL_CODE_CDROUTER_TESTMODE_SUPPORT GPL_CODE_AUTODNS_VULNERABLE GPL_CODE_REMOVE_DNS_SUFFIX GPL_CODE_COVERITY_FIX GPL_CODE_ABBA_FIX GPL_CODE_QTN_VER NAND_FLASH_BLOCK_SIZE
#***********************************************************************
#
# Copyright (c) 2006 Broadcom Corporation
# All Rights Reserved
#
#***********************************************************************/
#
# This makefile is included by most of the lower level makefiles
# to suck in the common defines.
#
#
# version.make has the 4.0.0 version number,
# each directory must set depth appropriately
#
default_auto_fail:
@echo ""
@echo "Error - $@ target invoked. This is likely because make.common" >&2
@echo " was included before the default target in a parent Makefile." >&2
@echo ""
exit 1
include $(BUILD_DIR)/version.make
ifneq ($(strip $(GPL_CODE_TWO_IN_ONE_FIRMWARE)),)
include $(BUILD_DIR)/version2.make
include $(BUILD_DIR)/version3.make
endif
BRCM_RELEASETAG=$(BRCM_VERSION).$(BRCM_RELEASE)L.$(BRCM_EXTRAVERSION)
GPL_CODE_RELEASETAG=$(BRCM_VERSION).$(BRCM_RELEASE)L.$(BRCM_EXTRAVERSION)
ifneq ($(strip $(GPL_CODE_TWO_IN_ONE_FIRMWARE)),)
BRCM_RELEASETAG2=$(BRCM_VERSION2).$(BRCM_RELEASE2)L.$(BRCM_EXTRAVERSION2)
BRCM_RELEASETAG3=$(BRCM_VERSION3).$(BRCM_RELEASE3)L.$(BRCM_EXTRAVERSION3)
endif
###########################################
# Define build environment (profile and
# toolchain)
#
###########################################
TARGETS_DIR := $(BUILD_DIR)/targets
INC_KERNEL_BASE := $(BUILD_DIR)/kernel
#
# If we don't define a PROFILE, try to figure out what the last profile
# was and use that.
#
ifneq ($(MAKECMDGOALS), menuconfig)
ifneq ($(MAKECMDGOALS), distclean)
ifneq ($(MAKECMDGOALS), cleanall)
ifneq ($(MAKECMDGOALS), binaryonly_dist_clean)
LAST_PROFILE_COOKIE := $(BUILD_DIR)/.last_profile
LAST_PROFILE := $(strip $(shell cat $(LAST_PROFILE_COOKIE) 2>/dev/null))
ifeq ($(strip $(PROFILE)),)
PROFILE=$(LAST_PROFILE)
export PROFILE
endif #PROFILE
endif #binaryonly_dist_clean
endif #cleanall
endif #distclean
ifneq ($(strip $(PROFILE)),)
PROFILE_DIR := $(TARGETS_DIR)/$(PROFILE)
PROFILE_FILE := $(PROFILE_DIR)/$(PROFILE)
include $(PROFILE_FILE)
#
# Get Kernel and Toolchain versions based
# on profile
#
# --- KERNEL VERSION SPECIFIC INFORMATION:
# for MIPS, big endian, Linux 3.4.0
DEFAULT_TOOLCHAIN_LINUX_3_4_0_RT_MIPS := /opt/toolchains/crosstools-mips-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21
DEFAULT_TOOLCHAIN_VER_LINUX_3_4_0_RT_MIPS := 4.6.2
TOOLCHAIN_PREFIX_LINUX_3_4_0_RT_MIPS := mips-unknown-linux-uclibc
TOOLCHAIN_LIBDIR_LINUX_3_4_0_RT_MIPS := usr/$(TOOLCHAIN_PREFIX_LINUX_3_4_0_RT_MIPS)/sysroot/lib
TOOLCHAIN_INCDIR_LINUX_3_4_0_RT_MIPS := usr/$(TOOLCHAIN_PREFIX_LINUX_3_4_0_RT_MIPS)/sysroot/usr/include
# for MIPS, little endian, Linux 3.4.0
DEFAULT_TOOLCHAIN_LINUX_3_4_0_RT_MIPSEL := /opt/toolchains/crosstools-mipsel-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21
DEFAULT_TOOLCHAIN_VER_LINUX_3_4_0_RT_MIPSEL := 4.6.2
TOOLCHAIN_PREFIX_LINUX_3_4_0_RT_MIPSEL := mipsel-unknown-linux-uclibc
TOOLCHAIN_LIBDIR_LINUX_3_4_0_RT_MIPSEL := usr/$(TOOLCHAIN_PREFIX_LINUX_3_4_0_RT_MIPSEL)/sysroot/lib
TOOLCHAIN_INCDIR_LINUX_3_4_0_RT_MIPSEL := usr/$(TOOLCHAIN_PREFIX_LINUX_3_4_0_RT_MIPSEL)/sysroot/usr/include
# for ARM, Linux 3.4.0
DEFAULT_TOOLCHAIN_LINUX_3_4_0_RT_ARM := /opt/toolchains/crosstools-arm-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21-NPTL
DEFAULT_TOOLCHAIN_VER_LINUX_3_4_0_RT_ARM := 4.6.2
TOOLCHAIN_PREFIX_LINUX_3_4_0_RT_ARM := arm-unknown-linux-uclibcgnueabi
TOOLCHAIN_LIBDIR_LINUX_3_4_0_RT_ARM := usr/$(TOOLCHAIN_PREFIX_LINUX_3_4_0_RT_ARM)/sysroot/lib
TOOLCHAIN_INCDIR_LINUX_3_4_0_RT_ARM := usr/$(TOOLCHAIN_PREFIX_LINUX_3_4_0_RT_ARM)/sysroot/usr/include
LINUX_ZIP_FILE_LINUX_3_4_0_RT := src-linux-3.4.11-rt19.tar.bz2
LINUX_SUB_DIR_LINUX_3_4_0_RT := linux-3.4rt
KERNEL_CHECK_FILE_LINUX_3_4_0_RT := MAINTAINERS
LINUX_VER_STR_LINUX_3_4_0_RT := 3.4.11-rt19
ifeq ($(strip $(PROFILE_ARCH)),mips)
ARCHCAP := MIPS
ARCH := mips
ARCH_ENDIAN := big
export BRCM_ENDIAN_FLAGS := -b
else
ARCH_ENDIAN := little
export BRCM_ENDIAN_FLAGS := -l
ifeq ($(strip $(PROFILE_ARCH)),arm)
ARCHCAP := ARM
ARCH := arm
endif
ifeq ($(strip $(PROFILE_ARCH)),mipsel)
ARCHCAP := MIPSEL
ARCH := mips
endif
ifeq ($(strip $(PROFILE_ARCH)),i386)
ARCHCAP := I386
ARCH := i386
endif
endif
# ---
ifeq ($(PROFILE_KERNEL_VER),)
$(error KERNEL VERSION not specified in profile $(PROFILE_FILE))
endif
ifndef TOOLCHAIN_TOP
TOOLCHAIN_TOP := ${DEFAULT_TOOLCHAIN_${PROFILE_KERNEL_VER}_${ARCHCAP}}
endif
TOOLCHAIN_VER := ${DEFAULT_TOOLCHAIN_VER_${PROFILE_KERNEL_VER}_${ARCHCAP}}
TOOLCHAIN_LIBDIR := ${TOOLCHAIN_LIBDIR_${PROFILE_KERNEL_VER}_${ARCHCAP}}
TOOLCHAIN_PREFIX := ${TOOLCHAIN_PREFIX_${PROFILE_KERNEL_VER}_${ARCHCAP}}
export TOOLCHAIN_PREFIX
TOOLCHAIN_INCLUDE_DIR := $(TOOLCHAIN_TOP)/${TOOLCHAIN_INCDIR_${PROFILE_KERNEL_VER}_${ARCHCAP}}
KERNEL_CHECK_FILE := ${KERNEL_CHECK_FILE_${PROFILE_KERNEL_VER}}
LINUX_VER_STR := ${LINUX_VER_STR_${PROFILE_KERNEL_VER}}
CONFIG_BCM_KERNEL_CUSTOM:=y
BCM_KF:=y
LINUX_ZIP_FILE := ${LINUX_ZIP_FILE_${PROFILE_KERNEL_VER}}
LINUX_SUB_DIR := ${LINUX_SUB_DIR_${PROFILE_KERNEL_VER}}
KERNEL_DIR := $(BUILD_DIR)/kernel/$(LINUX_SUB_DIR)
KERNEL_LINKS_DIR := $(INC_KERNEL_BASE)
KERNEL_INCLUDE_LINK_NAME := bcm_local_kernel_include
KERNEL_MIPS_INCLUDE_LINK_NAME := bcm_local_kernel_mips_include
KERNEL_ARM_INCLUDE_LINK_NAME := bcm_local_kernel_arm_include
#KERNEL_GEN_INCLUDE_LINK_NAME := bcm_local_kernel_gen_include
KERNEL_INCLUDE_LINK := $(KERNEL_LINKS_DIR)/$(KERNEL_INCLUDE_LINK_NAME)
KERNEL_MIPS_INCLUDE_LINK := $(KERNEL_LINKS_DIR)/$(KERNEL_MIPS_INCLUDE_LINK_NAME)
KERNEL_ARM_INCLUDE_LINK := $(KERNEL_LINKS_DIR)/$(KERNEL_ARM_INCLUDE_LINK_NAME)
#KERNEL_GEN_INCLUDE_LINK_NAME := bcm_local_kernel_gen_include
export BRCM_CHIP
export BRCM_FLASHPSI_SIZE
export BRCM_DRIVER_WIRELESS_PCMCIA_DATASWAP BRCM_DRIVER_WIRELESS_EBI_DMA
export BRCM_DRIVER_USB BRCM_DRIVER_ETHERNET_CONFIG BRCM_DRIVER_GPON BRCM_DRIVER_XTM
export BRCM_DRIVER_LOG BRCM_GPON_FPGA BRCM_DRIVER_I2C
export BRCM_DRIVER_PKTFLOW_DEBUG BRCM_DRIVER_PKTFLOW_IPV6 BRCM_DRIVER_PKTFLOW_MCAST
export BRCM_DRIVER_MoCA_CTP_CANDIDATE BUILD_6802_MOCA MOCA_LAN_DISCONN MOCA_WAN_DISCONN
export BRCM_DRIVER_ISDN
export BRCM_DRIVER_EMMC
export BRCM_DEFAULTCFG
export BRCM_CERT_FILE
export BRCM_KERNEL_NF_FIREWALL BRCM_KERNEL_NF_MANGLE BRCM_KERNEL_NF_NAT
export BRCM_KERNEL_NF_NAT_ALG_FTP BRCM_KERNEL_NF_NAT_ALG_SIP BRCM_KERNEL_NF_NAT_ALG_TFTP BRCM_KERNEL_NF_NAT_ALG_H323 BRCM_KERNEL_NF_NAT_ALG_H323_SIGNAL_PROXY
export BRCM_KERNEL_NF_NAT_ALG_IRC BRCM_KERNEL_NF_NAT_ALG_WM BRCM_KERNEL_NF_NAT_ALG_PT BRCM_KERNEL_NF_NAT_ALG_PPTP BRCM_KERNEL_NF_NAT_ALG_IPSEC
export BRCM_KERNEL_NF_NAT_ALG_RTSP BRCM_KERNEL_NF_NAT_ALG_SNMP BRCM_KERNEL_NF_NAT_ALG_TALK
export BRCM_KERNEL_NF_LAYER7_FILTER
export BRCM_EXT_SWITCH_TYPE BRCM_EXT_SWITCH_REV
export BCM_PHY_54616
export BRCM_BOARD_ID BRCM_NUM_MAC_ADDRESSES BRCM_BASE_MAC_ADDRESS BRCM_PSI_SIZE
export BUILD_SECURE_BOOT SECURE_BOOT_NUM_BTLDR_IMAGES SECURE_BOOT_NUM_BOOT_BLKS SECURE_BOOT_NOR_BOOT_SIZE
export BRCM_AUXFS_PERCENT BRCM_GPON_SERIAL_NUMBER BRCM_GPON_PASSWORD
export BRCM_VOICE_BOARD_ID BRCM_MAIN_TP_NUM
export BRCM_DRIVER_FBOND_DEBUG
export BRCM_SPDSVC_SUPPORT
endif # PROFILE
endif #menuconfig
###########################################
# Define Basic Variables
#
###########################################
BL_BUILD_DIR=$(BUILD_DIR)/cfe/build/broadcom/bcm63xx_rom
BRCM_BOARD := bcm963xx
BRCMDRIVERS_DIR = $(BUILD_DIR)/bcmdrivers
SWMDK_BASE = mdk
HOSTTOOLS_DIR = $(BUILD_DIR)/hostTools
HOSTTOOLS_PERL_LIB = $(HOSTTOOLS_DIR)/PerlLib
IMAGES_DIR = $(BUILD_DIR)/images
RELEASE_DIR = $(BUILD_DIR)/release
TARGETS_DIR = $(BUILD_DIR)/targets
DEFAULTCFG_DIR = $(TARGETS_DIR)/defaultcfg
FSSRC_DIR = $(TARGETS_DIR)/fs.src
CFE_FILE = $(TARGETS_DIR)/cfe/cfe$(BRCM_CHIP).bin
CFE_ROM_FILE = $(TARGETS_DIR)/cfe/cfe$(BRCM_CHIP)rom.bin
PMC_FILE = $(TARGETS_DIR)/pmc/pmc$(BRCM_CHIP).bin
SHARED_DIR = $(BUILD_DIR)/shared
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi ; fi)
GENDEFCONFIG_CMD = $(HOSTTOOLS_DIR)/scripts/gendefconfig
6510_REF_CODE=$(BUILD_DIR)/userapps/broadcom/6510refCode
USERSPACE_PUBLIC_LIBS_DIR=$(BUILD_DIR)/userspace/public/libs
KERNEL_DEBUG=0
KERNEL_KALLSYMS=0
ifdef FORCE
COND_FAIL:=(echo "NOT FAILING DUE TO FORCE=$(FORCE)";true)
else #FORCE
COND_FAIL:=(false)
endif #else FORCE
#
# This is for CMS
# We could put this in the make menuconfig, but it might
# confuse the users. For now, we only support one target OS.
# Everytime we see OALDIR, substitute it with linux
#
TARGET_OS = LINUX
OALDIR = $(subst LINUX,linux,$(strip $(TARGET_OS)))
export PROFILE_ARCH BL_BUILD_DIR PROFILE_KERNEL_VER KERNEL_DIR BRCMDRIVERS_DIR \
LINUXDIR HOSTTOOLS_DIR IMAGES_DIR TARGETS_DIR DEFAULTCFG_DIR \
FSSRC_DIR CFE_FILE PMC_FILE SHARED_DIR GENDEFCONFIG_CMD CONFIG_BCM_KERNEL_CUSTOM BCM_KF\
6510_REF_CODE CMS_LOG_FLAGS OALDIR USERSPACE_PUBLIC_LIBS_DIR \
KERNEL_DEBUG ARCH ARCH_ENDIAN
export DESKTOP_LINUX BRCM_BOARD BRCM_UCLIBC
#############################################
# ACTIONTEC MACRO DEFINES
#############################################
ACT_TMP_MACRODEFINE=$(shell find $(TARGETS_DIR)/$(PROFILE) -name DEFINES)
ifeq ($(strip $(ACT_NEW_MACRODEFINE)),)
ACT_NEW_MACRODEFINE=$(ACT_TMP_MACRODEFINE)
endif
ifneq ($(strip $(GPL_CODE_NCS)),)
export ACTION_TEC_DFLAGS:=$(shell cat $(ACT_NEW_MACRODEFINE) | sed -e "s/^/-D/g" | awk '{print $0}' \
| tr '\r\n' ' ')
endif
ifneq ($(strip $(GPL_CODE_BCMSDK)),)
ifeq ($(strip $(GPL_CODE_NCS)),)
export ACTION_TEC_DFLAGS:=$(shell cat $(ACT_NEW_MACRODEFINE) | sed -e "s/^/-D/g" | awk '{print $0}' \
| tr '\r\n' ' ')
endif
endif
# these vars are needed by busybox
export BUILD_BUSYBOX_GUNZIP BUILD_BUSYBOX_GZIP \
BUILD_BUSYBOX_TAR BUILD_BUSYBOX_UNTAR \
BUILD_BUSYBOX_TELNET \
BUILD_BUSYBOX_VI \
BUILD_BUSYBOX_AWK \
BUILD_BUSYBOX_PIDOF \
BUILD_BUSYBOX_BRCM_VANILLA \
BUILD_WGET_HTTPS
###########################################
#
# Define Toolchain
#
###########################################
ifeq ($(strip $(DESKTOP_LINUX)),)
TOOLCHAIN = $(TOOLCHAIN_TOP)/usr
LIBDIR = $(TOOLCHAIN_TOP)/$(TOOLCHAIN_LIBDIR)
HOSTUSRLIBDIR = $(TOOLCHAIN_TOP)/usr/lib
USRGCCLIBDIR = $(TOOLCHAIN_TOP)/usr/lib/gcc/$(TOOLCHAIN_PREFIX)/$(TOOLCHAIN_VER)
EXTRALIBDIR = $(TOOLCHAIN_TOP)/usr/$(TOOLCHAIN_PREFIX)/lib
EXTRAINCDIR = $(TOOLCHAIN_TOP)/usr/lib/gcc/$(TOOLCHAIN_PREFIX)/$(TOOLCHAIN_VER)/include
LIB_PATH = $(TOOLCHAIN_TOP)/lib
LIBCDIR = $(TOOLCHAIN_TOP)/lib
# Only LINUX_3_14_0_RT has -Wmaybe-uninitialized
ifeq ($(PROFILE_KERNEL_VER),LINUX_3_4_0_RT)
export BRCM_NO_ERROR_MAYBE_UNINITIALIZED :=
else
export BRCM_NO_ERROR_MAYBE_UNINITIALIZED := -Wno-error=maybe-uninitialized
endif
ifndef NO_WERRS
# The new compiler has a bug that if you specify -Werror=frame-larger-than=X, it treats X as 1 (and errors on all functions)
#export BRCM_WERROR_CFLAGS := -Werror=return-type -Werror=uninitialized -Wframe-larger-than=1024
export BRCM_WERROR_CFLAGS := -Werror=return-type -Werror=uninitialized
else
export BRCM_WERROR_CFLAGS :=
endif
ifeq ($(ARCH),mips)
BRCM_COMMON_CFLAGS := -Os -march=mips32 -fomit-frame-pointer -fno-strict-aliasing -mabi=32 -G0 -msoft-float -pipe -Wa,-mips32 $(BRCM_WERROR_CFLAGS)
export BRCM_APP_CFLAGS := $(BRCM_COMMON_CFLAGS) -mno-shared
endif
ifeq ($(ARCH),arm)
BRCM_COMMON_CFLAGS := -Os -march=armv7-a -fomit-frame-pointer -mno-thumb-interwork -mabi=aapcs-linux -marm -fno-common -ffixed-r8 -msoft-float -D__ARM_ARCH_7A__ $(BRCM_WERROR_CFLAGS)
#for mips' -mno-shared (do not generate posistion independent code), arm is -mno-apcs-reentrant which is the default
ifeq ($(CMS_MEM_LEAK_TRACING),y)
# These extra flags are needed by ARM stack backtrace function
BRCM_COMMON_CFLAGS += -fasynchronous-unwind-tables -rdynamic
endif
export BRCM_APP_CFLAGS := $(BRCM_COMMON_CFLAGS)
endif # ARCH eq arm
export BRCM_SO_CFLAGS := $(BRCM_COMMON_CFLAGS)
CROSS_COMPILE = $(TOOLCHAIN)/bin/$(TOOLCHAIN_PREFIX)-
endif # DESKTOP_LINUX eq empty
ifeq ($(strip $(DESKTOP_LINUX)),y)
CROSS_COMPILE = /usr/bin/
endif
AR = $(CROSS_COMPILE)ar
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
CPP = $(CROSS_COMPILE)cpp
NM = $(CROSS_COMPILE)nm
STRIP = $(CROSS_COMPILE)strip
SSTRIP = $(CROSS_COMPILE)sstrip
OBJCOPY = $(CROSS_COMPILE)objcopy
OBJDUMP = $(CROSS_COMPILE)objdump
RANLIB = $(CROSS_COMPILE)ranlib
# If building on desktop, don't strip binaries
ifeq ($(strip $(DESKTOP_LINUX)),y)
STRIP = /bin/touch
SSTRIP = /bin/touch
endif
# If building on desktop, set LIBDIR for legacy makefiles
# that still use LIBDIR (e.g. zebra)
ifeq ($(strip $(DESKTOP_LINUX)),y)
LIB_PATH = /usr/lib
LIBDIR = /usr/lib
LIBCDIR = /usr/lib
endif
# STRIP is used to strip the kernel modules. Currently, there is no
# usage scenario which requires unstripped kernel modules.
# SSTRIP is used to strip userspace apps in the final fs dir.
export TOOLCHAIN_TOP TOOLCHAIN LEGACY_TOOLCHAIN CROSS_COMPILE \
AR AS LD CC CXX CPP NM STRIP SSTRIP OBJCOPY OBJDUMP RANLIB \
LIB_PATH LIBDIR HOSTUSRLIBDIR EXTRALIBDIR EXTRAINCDIR LIBCDIR \
BUILD_GDBSERVER
###########################################
#
# Application-specific settings
#
###########################################
TARGET_FS = $(TARGETS_DIR)/$(PROFILE)/fs
TARGET_BOOTFS = $(TARGETS_DIR)/$(PROFILE)/bootfs
PROFILE_DIR = $(TARGETS_DIR)/$(PROFILE)
INSTALL_DIR=$(PROFILE_DIR)/fs.install
BCM_FSBUILD_DIR=$(PROFILE_DIR)/fs.build
PROFILE_PATH = $(TARGETS_DIR)/$(PROFILE)/$(PROFILE)
VENDOR_NAME = bcm
FLASH_BASE_IMAGE_NAME = $(VENDOR_NAME)$(PROFILE)
FS_KERNEL_IMAGE_NAME = $(FLASH_BASE_IMAGE_NAME)_fs_kernel
CFE_FS_KERNEL_IMAGE_NAME = $(FLASH_BASE_IMAGE_NAME)_cfe_fs_kernel
FLASH_IMAGE_NAME = $(FLASH_BASE_IMAGE_NAME)_flash_image_$(BRCM_BOARD_ID)
FLASH_NAND_CFEROM_FS_IMAGE_NAME_16 = $(FLASH_BASE_IMAGE_NAME)_nand_cferom_fs_image_16
FLASH_NAND_FS_IMAGE_NAME_16 = $(FLASH_BASE_IMAGE_NAME)_nand_fs_image_16
FLASH_NAND_CFEROM_FS_IMAGE_NAME_128 = $(FLASH_BASE_IMAGE_NAME)_nand_cferom_fs_image_128
FLASH_NAND_FS_IMAGE_NAME_128 = $(FLASH_BASE_IMAGE_NAME)_nand_fs_image_128
FLASH_NAND_CFEROM_FS_IMAGE_NAME_256 = $(FLASH_BASE_IMAGE_NAME)_nand_cferom_fs_image_256
FLASH_NAND_FS_IMAGE_NAME_256 = $(FLASH_BASE_IMAGE_NAME)_nand_fs_image_256
FLASH_NAND_CFEROM_FS_IMAGE_NAME_512 = $(FLASH_BASE_IMAGE_NAME)_nand_cferom_fs_image_512
FLASH_NAND_FS_IMAGE_NAME_512 = $(FLASH_BASE_IMAGE_NAME)_nand_fs_image_512
FLASH_NAND_CFEROM_FS_IMAGE_NAME_1024 = $(FLASH_BASE_IMAGE_NAME)_nand_cferom_fs_image_1024
FLASH_NAND_FS_IMAGE_NAME_1024 = $(FLASH_BASE_IMAGE_NAME)_nand_fs_image_1024
FLASH_NAND_CFEROM_FS_IMAGE_NAME_2048 = $(FLASH_BASE_IMAGE_NAME)_nand_cferom_fs_image_2048
FLASH_NAND_FS_IMAGE_NAME_2048 = $(FLASH_BASE_IMAGE_NAME)_nand_fs_image_2048
FLASH_NAND_BLOCK_16KB=16384
FLASH_NAND_BLOCK_128KB=131072
FLASH_NAND_BLOCK_256KB=262144
FLASH_NAND_BLOCK_512KB=524288
FLASH_NAND_BLOCK_1024KB=1048576
FLASH_NAND_BLOCK_2048KB=2097152
ifneq ($(findstring _$(strip $(BRCM_CHIP))_,_63138_63148_),)
FLASH_BOOT_OFS=65536
else
FLASH_BOOT_OFS=0
endif
INC_BRCMDRIVER_PUB_PATH=$(BRCMDRIVERS_DIR)/opensource/include
INC_BRCMDRIVER_PRIV_PATH=$(BRCMDRIVERS_DIR)/broadcom/include
INC_ADSLDRV_PATH=$(BRCMDRIVERS_DIR)/broadcom/char/adsl/impl1
INC_ATMAPI_DRV_PATH=$(BRCMDRIVERS_DIR)/broadcom/char/atmapi/impl1
INC_MOCACFGDRV_PATH=$(BRCMDRIVERS_DIR)/opensource/char/moca/impl2
INC_GPON_PATH=$(BRCMDRIVERS_DIR)/broadcom/char/gpon/impl5
ifeq ($(strip $(RDPA_PLATFORM)),)
RDPA_PLATFORM :=
endif
INC_BRCMSHARED_PUB_PATH=$(SHARED_DIR)/opensource/include
INC_BRCMSHARED_PRIV_PATH=$(SHARED_DIR)/broadcom/include
INC_BRCMBOARDPARMS_PATH=$(SHARED_DIR)/opensource/boardparms
INC_FLASH_PATH=$(SHARED_DIR)/opensource/flash
INC_UTILS_PATH=$(SHARED_DIR)/opensource/utils
INC_SPI_PATH=$(SHARED_DIR)/opensource/spi
INC_SPUDRV_PATH=$(BRCMDRIVERS_DIR)/broadcom/char/spudd/impl1
INC_PWRMNGTDRV_PATH=$(BRCMDRIVERS_DIR)/broadcom/char/pwrmngt/impl1
INC_ENETDRV_PATH=$(BRCMDRIVERS_DIR)/opensource/net/enet/impl5
INC_EPONDRV_PATH=$(BRCMDRIVERS_DIR)/broadcom/char/epon/impl1
INC_RDPA_PATH=$(BRCMDRIVERS_DIR)/opensource/char/rdpa_gpl/impl1/include
INC_RDPA_MW_PATH=$(BRCMDRIVERS_DIR)/opensource/char/rdpa_mw/impl1
INC_RDPA_DRV_PATH=$(BRCMDRIVERS_DIR)/opensource/char/rdpa_drv/impl1
INC_RDPA_PATH_PLATFORM=$(INC_RDPA_PATH)/$(RDPA_PLATFORM)
INC_BDMF_PATH=$(BRCMDRIVERS_DIR)/opensource/char/bdmf/impl1
RDP_PATH=$(SHARED_DIR)/broadcom/rdp
EXTRA_CFLAGS_BDMF=-I$(INC_BDMF_PATH)/framework -I$(INC_BDMF_PATH)/platform/$(RDPA_PLATFORM) -I$(INC_BDMF_PATH)/system -I$(INC_BDMF_PATH)/system/linux -I$(INC_BDMF_PATH)/system/linux/ce -I$(INC_BDMF_PATH)/shell
EXTRA_CFLAGS_RDPA=$(EXTRA_CFLAGS_BDMF) -I$(INC_RDPA_PATH) -I$(INC_RDPA_PATH)/$(RDPA_PLATFORM) -I$(INC_RDPA_MW_PATH) -I$(INC_RDPA_DRV_PATH)
ifneq ($(strip $(RDPA_PLATFORM)),)
EXTRA_CFLAGS_RDPA += -DRDPA_PLATFORM
endif
export TARGET_FS TARGET_BOOTFS PROFILE_DIR INSTALL_DIR PROFILE_PATH \
BCM_FSBUILD_DIR \
VENDOR_NAME FLASH_BASE_IMAGE_NAME \
FS_KERNEL_IMAGE_NAME CFE_FS_KERNEL_IMAGE_NAME FLASH_IMAGE_NAME \
FLASH_BOOT_OFS \
BUILD_NAND_IMG_BLKSIZE_16KB \
BUILD_NAND_IMG_BLKSIZE_128KB \
BUILD_NAND_IMG_BLKSIZE_256KB \
BUILD_NAND_IMG_BLKSIZE_512KB \
BUILD_NAND_IMG_BLKSIZE_1024KB \
INC_BRCMDRIVER_PUB_PATH INC_BRCMDRIVER_PRIV_PATH \
INC_ADSLDRV_PATH INC_ATMAPI_DRV_PATH \
INC_BRCMSHARED_PUB_PATH INC_BRCMSHARED_PRIV_PATH \
INC_BRCMBOARDPARMS_PATH INC_FLASH_PATH \
INC_UTILS_PATH \
INC_PWRMNGTDRV_PATH INC_ENETDRV_PATH INC_SPI_PATH \
INC_RDPA_PATH INC_RDPA_MW_PATH INC_RDPA_DRV_PATH INC_RDPA_PATH_PLATFORM INC_BDMF_PATH \
EXTRA_CFLAGS_BDMF EXTRA_CFLAGS_RDPA RDP_PATH RDPA_PLATFORM
##################################################################
#
# Start CMS specific defines
#
##################################################################
ifeq ($(strip $(DESKTOP_LINUX)),y)
#Defines when are are building for Desktop Linux
ifdef BRCM_CMS_COMPILER_OPTS
CMS_COMPILER_OPTS := -Wall -W $(BRCM_CMS_COMPILER_OPTS) -DDESKTOP_LINUX -fPIC
else
# The -O is needed to detect uninitialized variables, but sometimes prevents
# gdb from printing out a variable value. So if you need to do some serious
# debugging, set BRCM_CMS_COMPILER_OPTS=-g in your shell.
CMS_COMPILER_OPTS := -Wall -W -O -g -DDESKTOP_LINUX -fPIC
endif
# Force 32 bit compiles even if the build machine is a 64 bit system
CMS_COMPILER_OPTS += -m32
BCM_LD_FLAGS := -m32
CMS_COMMON_LIBS := -lcms_util -lbcm_crc -lbcm_flashutil -lcms_boardctl -lcrypt -lrt
CMS_LIB_RPATH = $(ALLOWED_LIB_DIRS):$(INSTALL_DIR)$(subst :,:$(INSTALL_DIR),$(ALLOWED_LIB_DIRS))
else
# Defines when we are building for real target system
CMS_COMPILER_OPTS := $(BRCM_COMMON_CFLAGS) -Wall -D$(ARCH) -g -fPIC
CMS_COMMON_LIBS := -lcms_util -lbcm_crc -lbcm_flashutil -lcms_boardctl -lcrypt
ifeq ($(CMS_MEM_LEAK_TRACING),y)
ifeq ($(ARCH),arm)
# arm backtrace code calls dlopen
CMS_COMMON_LIBS += -ldl
endif
endif
CMS_LIB_RPATH =
endif
# This is the cms_core library plus all the libraries that libcms_core
# depend on.
CMS_CORE_LIBS := -lcms_core -lcms_qdm -lnanoxml -ldl
ifneq ($(strip $(GPL_CODE_CONTROL_LAYER)),)
CMS_CORE_LIBS += -L$(BUILD_DIR)/userspace/private/apps/ctl_layer/lib -ldbussend_msg -ldbus
endif
ifneq ($(strip $(BRCM_DRIVER_ADSL)),)
CMS_CORE_LIBS += -lxdslctl
ifneq ($(strip $(BUILD_DSL_SELT_TEST)),)
CMS_CORE_LIBS += -lseltctl
endif
endif
ifneq ($(strip $(BRCM_DRIVER_XTM)),)
CMS_CORE_LIBS += -latmctl
endif
ifneq ($(strip $(BUILD_MoCACTL)),)
CMS_CORE_LIBS += -lmocactl -lm
endif
ifneq ($(strip $(BUILD_MoCACTL2)),)
CMS_CORE_LIBS += -lpthread
endif
ifneq ($(strip $(BUILD_HOMEPLUG)),)
CMS_CORE_LIBS += -lhomeplugctl -lhomeplugctl_drv
endif
ifneq ($(strip $(BUILD_GPONCTL)),)
CMS_CORE_LIBS += -lgponctl -lgponif
endif
ifneq ($(strip $(BUILD_OMCI)),)
CMS_CORE_LIBS += -lomci -lomcipm_drv -lm
endif
ifneq ($(strip $(BUILD_VLANCTL)),)
CMS_CORE_LIBS += -lvlanctl
endif
ifneq ($(strip $(BUILD_SPUCTL)),)
CMS_CORE_LIBS += -lspuctl
endif
ifneq ($(strip $(BUILD_PWRCTL)),)
CMS_CORE_LIBS += -lpwrctl
endif
ifneq ($(strip $(BUILD_ETHSWCTL)),)
CMS_CORE_LIBS += -lethswctl
endif
ifneq ($(strip $(BUILD_EPONCTL)),)
CMS_CORE_LIBS += -leponctl
endif
ifneq ($(strip $(BUILD_CMFAPI)),)
CMS_CORE_LIBS += -lcmfapi
endif
ifneq ($(strip $(BUILD_FAPCTL)),)
export BUILD_FAPCTL=y
CMS_CORE_LIBS += -lfapctl
endif
ifneq ($(strip $(BUILD_CLI_CMD)),)
CMS_CORE_LIBS += -lm
endif
ifneq ($(strip $(GPL_CODE_PASSWORD_ENCRYPTION)),)
CMS_CORE_LIBS += -lssl -lcrypto
endif
ifneq ($(strip $(BUILD_GPL_CODE_QUANTENNA_LIB)),)
CMS_CORE_LIBS += -L$(INSTALL_DIR)/lib -lqcsapi_client
endif
CMS_LIB_PATH = $(patsubst %,-L$(INSTALL_DIR)%,$(subst :, ,$(ALLOWED_LIB_DIRS)))
CMS_COMPILER_OPTS += -DMDM_SHARED_MEM
CMS_COMPILER_OPTS += -DCMS_MEM_DEBUG
export CMS_COMMON_LIBS CMS_CORE_LIBS CMS_COMPILER_OPTS CMS_COMPILE_FLAGS
#
# Several features will trigger the building of libpcap.
ifneq ($(strip $(BUILD_TCPDUMP)),)
BUILD_LIBPCAP=y
endif
ifneq ($(strip $(BUILD_SENDPACKETS)),)
BUILD_LIBPCAP=y
endif
ifneq ($(strip $(BRCM_ANDROID)),)
BUILD_LIBPCAP=y
BUILD_BUSYBOX_GZIP=y
BUILD_BUSYBOX_GUNZIP=y
BUILD_BUSYBOX_TAR=y
BUILD_BUSYBOX_UNTAR=y
endif
# this means the user wants to have a LTE interface
ifneq ($(strip $(BRCM_DRIVER_LTE)),)
BUILD_CELLULAR=y
BUILD_SAMOS=y
BUILD_LIBXML2=y
BUILD_LIBSQLITE=y
BUILD_LIBCAP=y
export BUILD_SAMOS
export BUILD_CELLULAR
endif
export BUILD_LIBPCAP
#
# Many features will trigger the building of OpenSSL.
# OpenSSL is both a library and an app.
# We could distinguish betwen building OpenSSL lib and OpenSSL app,
# but for now, we always build and install both. I have a plan to
# get rid of the app completely.
#
ifneq ($(strip $(BUILD_CERT)),)
DO_BUILD_OPENSSL=y
endif
ifneq ($(strip $(BUILD_TR69C_SSL)),)
DO_BUILD_OPENSSL=y
endif
ifneq ($(strip $(BUILD_HTTPD_SSL)),)
DO_BUILD_OPENSSL=y
endif
ifneq ($(strip $(BUILD_IPSEC_TOOLS)),)
DO_BUILD_OPENSSL=y
endif
export DO_BUILD_OPENSSL
#
# Top level decisions about which Data Model(s) we are going to use
#
CMS_DMP_FLAGS :=
BUILD_TR98_PROFILES :=
BUILD_HYBRID181_PROFILES :=
BUILD_PURE181_PROFILES :=
ifneq ($(strip $(BUILD_DM_LEGACY98)),)
BUILD_TR98_PROFILES := y
CMS_DMP_FLAGS += -DSUPPORT_DM_LEGACY98
endif
ifneq ($(strip $(BUILD_DM_HYBRID)),)
BUILD_TR98_PROFILES := y
BUILD_HYBRID181_PROFILES := y
CMS_DMP_FLAGS += -DSUPPORT_DM_HYBRID
endif
ifneq ($(strip $(BUILD_DM_PURE181)),)
BUILD_HYBRID181_PROFILES := y
BUILD_PURE181_PROFILES := y
CMS_DMP_FLAGS += -DSUPPORT_DM_PURE181
endif
ifneq ($(strip $(BUILD_DM_DETECT)),)
BUILD_TR98_PROFILES := y
BUILD_HYBRID181_PROFILES := y
BUILD_PURE181_PROFILES := y
CMS_DMP_FLAGS += -DSUPPORT_DM_DETECT
endif
#
# ==> These TR98 profiles are always defined when the root
# of the data model is InternetGatewayDevice, i.e. when we are in
# Legacy TR98 and Hybrid98+181 modes.
#
ifneq ($(strip $(BUILD_TR98_PROFILES)),)
CMS_DMP_FLAGS += -DDMP_BASELINE_1 -DDMP_X_BROADCOM_COM_BASELINE_1
CMS_DMP_FLAGS += -DDMP_ETHERNETLAN_1
CMS_DMP_FLAGS += -DDMP_DEVICEASSOCIATION_1
CMS_DMP_FLAGS += -DDMP_IPPING_1
CMS_DMP_FLAGS += -DDMP_X_BROADCOM_COM_DEBUG_1
CMS_DMP_FLAGS += -DDMP_X_BROADCOM_COM_SECURITY_1
CMS_DMP_FLAGS += -DDMP_DUSTATECHNGCOMPLPOLICY_1
endif
ifneq ($(strip $(GPL_CODE_TELUS)),)
CMS_DMP_FLAGS += -DDMP_QOSSTATS_1
endif
ifneq ($(strip $(GPL_CODE_TR69_MONITOR)),)
CMS_DMP_FLAGS += -DDMP_X_ACTIONTEC_COM_TR69MONITOR_1
endif
ifneq ($(strip $(GPL_CODE_SUPPORT_CUJO)),)
CMS_DMP_FLAGS += -DDMP_GPL_CODE_SUPPORT_CUJO_1
endif
ifneq ($(strip $(GPL_CODE_CDROUTER_TESTMODE_SUPPORT)),)
CMS_DMP_FLAGS += -DDMP_X_ACTIONTEC_COM_CDROUTER_TESTMODE_1
endif
#
# ==> This is a small subset of the TR181 profiles which are always
# defined in both Hybrid98+181 and Pure TR181 modes.
#
ifneq ($(strip $(BUILD_HYBRID181_PROFILES)),)
CMS_DMP_FLAGS += -DDMP_DEVICE2_BASELINE_1 -DDMP_DEVICE2_X_BROADCOM_COM_BASELINE_1
CMS_DMP_FLAGS += -DDMP_DEVICE2_BASELINE_2
CMS_DMP_FLAGS += -DDMP_DEVICE2_BASELINE_3
CMS_DMP_FLAGS += -DDMP_DEVICE2_IPINTERFACE_1 -DDMP_DEVICE2_IPINTERFACE_2
CMS_DMP_FLAGS += -DDMP_DEVICE2_DUSTATECHNGCOMPLPOLICY_1
# In Hybrid, we don't use TR181 EthernetInterface, but we must define it
# in order to get EthernetLink, which we need.
CMS_DMP_FLAGS += -DDMP_DEVICE2_ETHERNETLINK_1 -DDMP_DEVICE2_ETHERNETINTERFACE_1 -DDMP_DEVICE2_VLANTERMINATION_1
CMS_DMP_FLAGS += -DDMP_DEVICE2_PPPINTERFACE_1 -DDMP_DEVICE2_PPPINTERFACE_2
CMS_DMP_FLAGS += -DDMP_DEVICE2_IPPING_1 -DDMP_DEVICE2_TRACEROUTE_1
CMS_DMP_FLAGS += -DDMP_DEVICE2_ROUTING_1 -DDMP_DEVICE2_ROUTING_2
endif
#
# ==> These TR181 profiles are always defined in Pure TR181 mode (but
# not in Hybrid98+181 mode)
#
ifneq ($(strip $(BUILD_PURE181_PROFILES)),)
CMS_DMP_FLAGS += -DDMP_DEVICE2_BRIDGE_1
CMS_DMP_FLAGS += -DDMP_DEVICE2_ROUTING_1 -DDMP_DEVICE2_ROUTING_2