-
Notifications
You must be signed in to change notification settings - Fork 5
/
zyxel_rule.mk
executable file
·1490 lines (1170 loc) · 44.5 KB
/
zyxel_rule.mk
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
#
# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifneq ($(__zyxel_rules_inc),1)
__zyxel_rules_inc=1
#
# CP, 2018-01-08 13:48:29
#
# link all files in the folder and sub-folders to the destination
# parameter 1 is the source directory
# parameter 2 is the destination directory
#
define link_files
for src_dir in `find $(1) -type d -print`; do \
( \
if [[ $$src_dir != "." ]]; \
then \
mkdir -p $(2)/$$src_dir; \
for src_file in `find $$src_dir -maxdepth 1 -type f -print`; do \
( \
ln -f $$src_file $2/$$src_dir; \
); \
done \
fi \
); \
done
endef
CP_AF:=cp -af
########################################################################
### export some MACROs for toolchain
########################################################################
export TOOLCHAIN_DIR TOOLCHAIN_ROOT_DIR KERNEL_TOOLCHAIN_ROOT_DIR
export REAL_GNU_TARGET_NAME KERNEL_TOOLCHAIN_REAL_GNU_TARGET_NAME
export TOOLCHAIN_INC_DIRS TOOLCHAIN_LIB_DIRS
export CONFIG_EXTERNAL_TOOLCHAIN CONFIG_EXTERNAL_KERNEL_TOOLCHAIN
export KERNEL_TOOLCHAIN_INC_DIRS KERNEL_TOOLCHAIN_LIB_DIRS
########################################################################
### export some MACROs for release GPL
########################################################################
export ZYXEL_PUBLIC_PACKAGE := $(TOPDIR)/package/public-zyxel
export ZYXEL_PRIVATE_PACKAGE:= $(TOPDIR)/package/private/zyxel
########################################################################
### export some MACROs for packages
########################################################################
export CONFIG_ZYXEL_RMA_FW_SUPPORT CONFIG_ZYXEL_SYS_FWUR_SUPPORT
export CONFIG_ZYXEL_FIRMWARE_VERSION CONFIG_MRD_MODEL_ID
########################################################################
### init
########################################################################
#store Zyxel common cflags
ZYXEL_COMMON_CFLAGS:=
#specific for userspace "process" and inherit the setting in ZYXEL_COMMON_CFLAGS
ZYXEL_APP_CFLAGS:=
ZYXEL_APP_LDFLAGS:=
#specific for userspace "libraries" and inherit the setting in ZYXEL_COMMON_CFLAGS
ZYXEL_LIB_CFLAGS:=
ZYXEL_LIB_LDFLAGS:=
########################################################################
### START: Zyxel common compile flags
########################################################################
ZYXEL=y
ZYXEL_RSA_FORMAT=y
###########CROSS_PLATFORM###############################################
ifeq ($(CONFIG_TARGET_brcm963xx),y)
ZCFG_PLATFORM=BROADCOM
endif
ifeq ($(CONFIG_TARGET_en75xx),y)
ZCFG_PLATFORM=ECONET
endif
ifeq ($(CONFIG_TARGET_ramips)$,y)
ZCFG_PLATFORM=MTKSOC
endif
ifeq ($(CONFIG_TARGET_mediatek),y)
ZCFG_PLATFORM=MTK
endif
ZCFG_PLATFORM?=UNKNOW
export ZCFG_PLATFORM
########################################################################
# Broadcom Related
########################################################################
ifeq ("$(strip ${ZCFG_PLATFORM})","BROADCOM")
######Original define in target/linux/brcm963xx/*/target.mk#############
##### for inculding make.common BCM SDK define ######
########### Add CONFIG_BUILD_MSTC_VOICE_KSOCKET_RTP compile flag for VoIP related feature(Kernel Socket) ###########
export BRCM_BOARD=bcm963xx
export BRCM_CHIP=$(CONFIG_BRCMSDK$(shell echo $(CONFIG_BRCM_SDK_VERSION))_BRCM_CHIP)
export BRCM_CHIP_REV=$(CONFIG_BRCMSDK$(shell echo $(CONFIG_BRCM_SDK_VERSION))_BRCM_CHIP_REV)
export BCM_PROFILE=$(shell echo $(SUBTARGET) | tr a-z A-Z)
export BCM_BUILD_DIR=$(BUILD_DIR)/broadcom-sdk-$(call qstrip,$(CONFIG_BRCM_SDK_VERSION))$(call qstrip,$(CONFIG_BRCM_SDK_PATCH_VERSION))
export BCM_HOSTTOOLS_DIR=$(STAGING_DIR_HOST)/bin/$(shell echo $(CONFIG_BRCM_SDK_VERSION))
export BRCM_SDK_VERSION=$(strip $(shell echo $(CONFIG_BRCM_SDK_VERSION)))
export BCM_INSTALL_DIR=$(BCM_BUILD_DIR)/targets/$(BCM_PROFILE)/fs.install
export BRCMDRIVERS_DIR=$(BCM_BUILD_DIR)/bcmdrivers
export SHARED_DIR=$(BCM_BUILD_DIR)/shared
export INC_BRCMDRIVER_PUB_PATH=$(BRCMDRIVERS_DIR)/opensource/include
export INC_BRCMDRIVER_PRIV_PATH=$(BRCMDRIVERS_DIR)/broadcom/include
export INC_BRCMSHARED_PUB_PATH=$(SHARED_DIR)/opensource/include
export INC_BRCMSHARED_PRIV_PATH=$(SHARED_DIR)/broadcom/include
export CONFIG_BUILD_MSTC_VOICE_KSOCKET_RTP
ifeq ($(CONFIG_BRCMSDK$(shell echo $(CONFIG_BRCM_SDK_VERSION))_BUILD_UBOOT),y)
export BROADCOM_UBOOT_PLATFORM=y
ZYXEL_COMMON_CFLAGS += -DBROADCOM_UBOOT_PLATFORM
endif
ifeq ($(CONFIG_ZYXEL_FEATURE_BITS),y)
export ZYXEL_FEATURE_BITS=y
endif
ifeq ($(CONFIG_SAME_FW_FOR_PROJECTS),y)
export SAME_FW_FOR_PROJECTS=y
endif
ifeq ($(CONFIG_ZYXEL_DISABLE_TXRX_FOR_WAN_ACT),y)
export ZYXEL_DISABLE_TXRX_FOR_WAN_ACT=y
endif
# Change HW_LED to software control.(ex DX5601-B0_WIND) (WAN)
ifeq ($(CONFIG_ZYXEL_SUPPORT_SW_CTL_WAN_LED),y)
export ZYXEL_SUPPORT_SW_CTL_WAN_LED=y
endif
# Support software control lan aggregate led(ex. VMG8825-B50B)
ifeq ($(CONFIG_ZYXEL_SUPPORT_SW_LAN_AGGREGATE_LED),y)
export ZYXEL_SUPPORT_SW_LAN_AGGREGATE_LED=y
endif
# Support software control lan aggregate led(ex. VMG8825-B50B)
ifeq ($(CONFIG_ZYXEL_SUPPORT_SW_LAN_AGGREGATE_LED),y)
export ZYXEL_SUPPORT_SW_LAN_AGGREGATE_LED=y
endif
# VMG8825-B50B WIND, support 256MB and 512MB flash
ifeq ($(CONFIG_ZYXEL_SUPPORT_BOTH_256_512_FLASH),y)
export ZYXEL_SUPPORT_BOTH_256_512_FLASH=y
endif
#__ZyXEL__, for ZyXEL hardware depend misc.
ifeq ($(CONFIG_ZYXEL_QTN_WIFI_5G_SUPPORT),y)
export ZYXEL_QTN_WIFI_5G_SUPPORT=y
endif
ifeq ($(CONFIG_ZYXEL_QTN_SW_RESET),y)
export ZYXEL_QTN_SW_RESET=y
endif
ifeq ($(CONFIG_ZYXEL_SW_RESET_WIFI_MODULE),y)
export ZYXEL_SW_RESET_WIFI_MODULE=y
endif
ifeq ($(CONFIG_ZYXEL_WPS_SPOTLIGHT),y)
export ZYXEL_WPS_SPOTLIGHT=y
ifeq ($(CONFIG_ZYXEL_WPS_SPOTLIGHT_2GPIO),y)
export ZYXEL_WPS_SPOTLIGHT_2GPIO=y
endif
endif
ifeq ($(CONFIG_ZYXEL_SFP_SW_RX_LOS),y)
export ZYXEL_SFP_SW_RX_LOS=y
endif
ifeq ($(CONFIG_ZYXEL_SFP_DETECT_PIN),y)
export ZYXEL_SFP_DETECT_PIN=y
endif
ifeq ($(CONFIG_ZYXEL_SFP_TX_FAULT_PIN),y)
export ZYXEL_SFP_TX_FAULT_PIN=y
endif
ifeq ($(CONFIG_ZYXEL_SFP_TX_DISABLE),y)
export ZYXEL_SFP_TX_DISABLE=y
endif
ifeq ($(CONFIG_ZYXEL_LED_EN_SUPPORT),y)
export ZYXEL_LED_EN_SUPPORT=y
endif
ifeq ($(CONFIG_ZYXEL_SFP_RX_SLEEP),y)
export ZYXEL_SFP_RX_SLEEP=y
endif
ifeq ($(CONFIG_ZYXEL_ZIGBEE_SUPPORT),y)
export ZYXEL_ZIGBEE_SUPPORT=y
endif
## 2.4G FEM detection
ifeq ($(CONFIG_ZYXEL_FEM_DETECT),y)
export ZYXEL_FEM_DETECT=y
endif
## Detect board by GPIO
ifeq ($(CONFIG_ZYXEL_BOARD_DETECT_BY_GPIO),y)
export ZYXEL_BOARD_DETECT_BY_GPIO=y
endif
## USB3.0 or USB2.0 can be set by user manually
ifeq ($(CONFIG_ZYXEL_USB_SET_MANUALLY),y)
export ZYXEL_USB_SET_MANUALLY=y
endif
#############################################
ZYXEL_COMMON_CFLAGS += -DBROADCOM_PLATFORM
ifneq ("$(CONFIG_BRCM_SDK_VERSION)","")
ZYXEL_COMMON_CFLAGS += -DBCM_SDK_$(CONFIG_BRCM_SDK_VERSION)
ZYXEL_COMMON_CFLAGS += -DNEW_MTD_DRIVER
endif
ifeq ($(CONFIG_ZYXEL_VMG8924_B10D_TAAAD_ISOLATE_DMZ),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_VMG8924_B10D_TAAAD_ISOLATE_DMZ
endif
ifeq ($(CONFIG_BRCMSDK416L05_SUPPORT_RTK_SWITCH),y)
ZYXEL_COMMON_CFLAGS += -DSUPPORT_RTK_SWITCH
endif
#WIND Customization for VMG8823-B50B
ifeq ($(CONFIG_ZCFG_VMG8823_B50B_WIND),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_VMG8823_B50B_WIND
endif
ifeq ($(CONFIG_KERNEL_ZYXEL_RS_TRY_5_TIMES),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_RS_TRY_5_TIMES
endif
ifeq ($(CONFIG_ZYXEL_DEDICATED_SFPWAN_INTERFACE),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_DEDICATED_SFPWAN_INTERFACE
endif
ifeq ($(CONFIG_BRCMSDK$(shell echo $(CONFIG_BRCM_SDK_VERSION))_BRCM_PHY_BONDING),y)
ZYXEL_COMMON_CFLAGS += -DSUPPORT_DSL_BONDING
endif
# LED enum in bcmdrivers/opensource/include/bcm963xx/board.h will use it
ifneq ($(findstring _$(strip $(shell echo $(CONFIG_BRCMSDK$(shell echo $(CONFIG_BRCM_SDK_VERSION))_BRCM_CHIP)))_,_6838_6848_6858_6846_6856_6878_),)
ZYXEL_COMMON_CFLAGS += -DCONFIG_BCM_PON=1
endif
endif
# End of Broadcom platform
########################################################################
# Econet Related
########################################################################
ifeq ("$(strip ${ZCFG_PLATFORM})","ECONET")
export ECONET_SDK_VERSION=$(call qstrip,$(CONFIG_TC_SDK_VERSION))
export ECONET_TARGET_VERSION=$(call qstrip,$(CONFIG_TARGET_BOARD))
ifneq ($(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_ZYXEL_LAN_WAN_WLAN_SHARE_THE_SAME_MAC),)
ZYXEL_COMMON_CFLAGS += -DZYXEL_LAN_WAN_WLAN_SHARE_THE_SAME_MAC
endif
ifeq ($(CONFIG_ZYXEL_VMG8825_T50K_TAAAD_ISOLATE_DMZ),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_VMG8825_T50K_TAAAD_ISOLATE_DMZ
endif
ZYXEL_COMMON_CFLAGS += -DNEW_MTD_DRIVER
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7516)),)
ZYXEL_COMMON_CFLAGS += -DBOOTROM_LARGE_SIZE
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_BOOTROM_LARGE_SIZE)),)
ZYXEL_COMMON_CFLAGS += -DBOOTROM_LARGE_SIZE
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_MTD_ENCHANCEMENT)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_MTD_ENCHANCEMENT
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_RESERVEAREA_BLOCK)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_RESERVEAREA_BLOCK=$(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_RESERVEAREA_BLOCK)
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CT)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CT
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_NAND_BMT)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_NAND_BMT
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_NAND_BADBLOCK_CHECK)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_NAND_BADBLOCK_CHECK
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_PRODUCTIONLINE)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_PRODUCTIONLINE
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7612E)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_WLAN_AC
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7615E)),)
ZYXEL_COMMON_CFLAGS += -DMT7615E
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_WLAN_MT7615_11N)),)
ZYXEL_COMMON_CFLAGS += -DMT7615_11N
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_WLAN_MT7615D)),)
ZYXEL_COMMON_CFLAGS += -DMT7615D -DMT7615_11N -DMT7615E -DTCSUPPORT_DUAL_WLAN -DTCSUPPORT_WLAN_AC
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_WLAN_MT7915D)),)
ZYXEL_COMMON_CFLAGS += -DMT7915D -DMT7915N -DMT7915E -DTCSUPPORT_DUAL_WLAN -DTCSUPPORT_WLAN_AC -DTCSUPPORT_WLAN_AX -DTCSUPPORT_WLAN_WPA3
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_WLAN_MT7915A)),)
ZYXEL_COMMON_CFLAGS += -DMT7915A -DMT7915E -DTCSUPPORT_DUAL_WLAN -DTCSUPPORT_WLAN_AC -DTCSUPPORT_WLAN_AX -DTCSUPPORT_WLAN_WPA3
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7570)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_MT7570
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CT_BOOTLOADER_UPGRADE)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CT_BOOTLOADER_UPGRADE
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_LITTLE_ENDIAN)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_BB_256KB
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7580)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_BB_256KB
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_NAND_FLASH)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_NAND_FLASH
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CT_PON)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CT_PON
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7613E)),)
ZYXEL_COMMON_CFLAGS += -DMT7613E
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7615E)),)
ZYXEL_COMMON_CFLAGS += -DMT7615E
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7610E)),)
ZYXEL_COMMON_CFLAGS += -DMT7610E -DBBUTOWBU -DTCSUPPORT_DUAL_WLAN -DTCSUPPORT_WLAN_AC
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7612E)),)
ZYXEL_COMMON_CFLAGS += -DMT7612E -DBBUTOWBU -DTCSUPPORT_DUAL_WLAN -DTCSUPPORT_WLAN_AC
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7512)$(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7516)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CPU_EN7512
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7521)$(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7527)$(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7528)$(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7580)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CPU_EN7521
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_RESERVEAREA_EXTEND)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_RESERVEAREA_EXTEND
endif
ifneq ($(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_POWERSAVE_ENABLE),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_POWERSAVE_ENABLE
endif
ifeq ($(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7516),y)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CPU_EN7516
endif
ifeq ($(CONFIG_ZYXEL_ECONET_OPERATION_MODE),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_ECONET_OPERATION_MODE
endif
ifeq ($(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DMT_MCT),y)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_DMT_MCT
endif
ifeq ($(CONFIG_EN7516SDK_TCSUPPORT_ECNT_MAP),y)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_ECNT_MAP
endif
ifeq ($(CONFIG_TC_SDK_VERSION),"7.3.235.200")
ZYXEL_COMMON_CFLAGS += -DCONFIG_TC_SDK_7_3_235_200
endif
ifeq ($(CONFIG_TC_SDK_VERSION),"7.3.257.150")
ZYXEL_COMMON_CFLAGS += -DCONFIG_TC_SDK_7_3_257_150
endif
ifeq ($(CONFIG_TC_SDK_VERSION),"7.3.245.300")
ZYXEL_COMMON_CFLAGS += -DCONFIG_TC_SDK_7_3_245_300
endif
ifeq ($(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_ZYXEL_DETECT_PRODUCT_TYPE),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_DETECT_PRODUCT_TYPE
endif
endif
# End of Econet platform
############################################################################################################
# MTK
############################################################################################################
ifeq ("$(strip ${ZCFG_PLATFORM})","MTK")
export MTK_SDK_VERSION=$(call qstrip,$(CONFIG_MTK_SDK_VERSION))
export MTK_TARGET_VERSION=$(call qstrip,$(CONFIG_TARGET_BOARD))
ifneq ($($(shell echo CONFIG_MRD_PRODUCT_NAME)),"")
ZYXEL_COMMON_CFLAGS += -DZYPRJ_$(subst -,_,$(call qstrip,$($(shell echo CONFIG_MRD_PRODUCT_NAME))))
endif
ifneq ($(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_ZYXEL_LAN_WAN_WLAN_SHARE_THE_SAME_MAC),)
ZYXEL_COMMON_CFLAGS += -DZYXEL_LAN_WAN_WLAN_SHARE_THE_SAME_MAC
endif
ifeq ($(CONFIG_ZYXEL_VMG8825_T50K_TAAAD_ISOLATE_DMZ),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_VMG8825_T50K_TAAAD_ISOLATE_DMZ
endif
ZYXEL_COMMON_CFLAGS += -DNEW_MTD_DRIVER
#ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7516)),)
#ZYXEL_COMMON_CFLAGS += -DBOOTROM_LARGE_SIZE
#endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_BOOTROM_LARGE_SIZE)),)
ZYXEL_COMMON_CFLAGS += -DBOOTROM_LARGE_SIZE
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_MTD_ENCHANCEMENT)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_MTD_ENCHANCEMENT
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_RESERVEAREA_BLOCK)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_RESERVEAREA_BLOCK=$(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_RESERVEAREA_BLOCK)
endif
#ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CT)),)
#ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CT
#endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_NAND_BMT)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_NAND_BMT
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_NAND_BADBLOCK_CHECK)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_NAND_BADBLOCK_CHECK
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_PRODUCTIONLINE)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_PRODUCTIONLINE
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7612E)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_WLAN_AC
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7615E)),)
ZYXEL_COMMON_CFLAGS += -DMT7615E
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_WLAN_MT7615_11N)),)
ZYXEL_COMMON_CFLAGS += -DMT7615_11N
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_WLAN_MT7615D)),)
ZYXEL_COMMON_CFLAGS += -DMT7615D -DMT7615_11N -DMT7615E -DTCSUPPORT_DUAL_WLAN -DTCSUPPORT_WLAN_AC
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_WLAN_MT7915D)),)
ZYXEL_COMMON_CFLAGS += -DMT7915D -DMT7915N -DMT7915E -DTCSUPPORT_DUAL_WLAN -DTCSUPPORT_WLAN_AC -DTCSUPPORT_WLAN_AX -DTCSUPPORT_WLAN_WPA3
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_WLAN_MT7915A)),)
ZYXEL_COMMON_CFLAGS += -DMT7915A -DMT7915E -DTCSUPPORT_DUAL_WLAN -DTCSUPPORT_WLAN_AC -DTCSUPPORT_WLAN_AX -DTCSUPPORT_WLAN_WPA3
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7570)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_MT7570
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CT_BOOTLOADER_UPGRADE)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CT_BOOTLOADER_UPGRADE
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_LITTLE_ENDIAN)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_BB_256KB
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7580)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_BB_256KB
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_NAND_FLASH)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_NAND_FLASH
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CT_PON)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CT_PON
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7613E)),)
ZYXEL_COMMON_CFLAGS += -DMT7613E
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7615E)),)
ZYXEL_COMMON_CFLAGS += -DMT7615E
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7610E)),)
ZYXEL_COMMON_CFLAGS += -DMT7610E -DBBUTOWBU -DTCSUPPORT_DUAL_WLAN -DTCSUPPORT_WLAN_AC
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DUAL_WLAN_MT7612E)),)
ZYXEL_COMMON_CFLAGS += -DMT7612E -DBBUTOWBU -DTCSUPPORT_DUAL_WLAN -DTCSUPPORT_WLAN_AC
endif
#ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7512)$(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7516)),)
#ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CPU_EN7512
#endif
#ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7521)$(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7527)$(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7528)$(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7580)),)
#ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CPU_EN7521
#endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_RESERVEAREA_EXTEND)),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_RESERVEAREA_EXTEND
endif
ifneq ($(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_POWERSAVE_ENABLE),)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_POWERSAVE_ENABLE
endif
#ifeq ($(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_CPU_EN7516),y)
#ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_CPU_EN7516
#endif
ifeq ($(CONFIG_ZYXEL_MTK_OPERATION_MODE),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_MTK_OPERATION_MODE
endif
ifeq ($(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_DMT_MCT),y)
ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_DMT_MCT
endif
#ifeq ($(CONFIG_EN7516SDK_TCSUPPORT_ECNT_MAP),y)
#ZYXEL_COMMON_CFLAGS += -DTCSUPPORT_ECNT_MAP
#endif
ifeq ($(CONFIG_MTK_SDK_VERSION),"7.6.200.N")
ZYXEL_COMMON_CFLAGS += -DCONFIG_MTK_SDK_7_6_200_N
endif
ifeq ($(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_ZYXEL_DETECT_PRODUCT_TYPE),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_DETECT_PRODUCT_TYPE
endif
endif
# End of Econet platform
########################################################################
# Zyxel Customization
########################################################################
ifeq ($(CONFIG_ABUE_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DABUE_CUSTOMIZATION
endif
ifeq ($(CONFIG_ABOG_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DABOG_CUSTOMIZATION
endif
ifeq ($(CONFIG_ACCL_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DACCL_CUSTOMIZATION
endif
#IAAAA
ifeq ($(CONFIG_IAAAA_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DIAAAA_CUSTOMIZATION
endif
ifeq ($(CONFIG_IAAAA_CUSTOMIZATION_Motorola_VIP1003),y)
ZYXEL_COMMON_CFLAGS += -DIAAAA_CUSTOMIZATION_Motorola_VIP1003
endif
#TAAAF
ifeq ($(CONFIG_TAAAF_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DTAAAF_CUSTOMIZATION
endif
#WIND
ifeq ($(CONFIG_WIND_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DZYPRJ_CUSTOMER_WIND
endif
ifeq ($(CONFIG_WIND_ITALY_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_WIND_ITALY_CUSTOMIZATION
ZYXEL_COMMON_CFLAGS += -DWIND_ITALY_CUSTOMIZATION
endif
ifeq ($(CONFIG_ACEN_ENCRYPTED_IMAGE),y)
ZYXEL_COMMON_CFLAGS += -DACEN_ENCRYPTED_IMAGE
endif
ifeq ($(CONFIG_ZYXEL_SFP_LINKUP_DELAYTIMES),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_SFP_LINKUP_DELAYTIMES
endif
ifeq ($(CONFIG_ZYXEL_WIND_NEW_XDSL_BEHAVIOR),y)
export ZYXEL_WIND_NEW_XDSL_BEHAVIOR=y
endif
ifeq ($(CONFIG_ZYXEL_SFP_MODULE_SUPPORT),y)
export ZYXEL_SFP_MODULE_SUPPORT=y
endif
#TT
ifeq ($(CONFIG_TAAAB_CUSTOMIZATION_TR069),y)
ZYXEL_COMMON_CFLAGS += -DCONFIG_TAAAB_CUSTOMIZATION_TR069
endif
ifeq ($(CONFIG_TAAAB_DSL_BINDING),y)
ZYXEL_COMMON_CFLAGS += -DCONFIG_TAAAB_DSL_BINDING
endif
ifeq ($(CONFIG_TAAAB_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DCONFIG_TAAAB_CUSTOMIZATION
endif
ifeq ($(CONFIG_TAAAB_PORTMIRROR),y)
ZYXEL_COMMON_CFLAGS += -DCONFIG_TAAAB_PORTMIRROR
endif
ifeq ($(CONFIG_TAAAB_PACKETCAPTURE),y)
ZYXEL_COMMON_CFLAGS += -DCONFIG_TAAAB_PACKETCAPTURE
endif
ifeq ($(CONFIG_MSTC_TAAAG_MULTI_USER),y)
ZYXEL_COMMON_CFLAGS += -DMSTC_TAAAG_MULTI_USER
endif
# always set APP_AGENT_SUPPORT ???
ifeq ($(filter y,$(CONFIG_CAAAB_CUSTOMIZATION)),)
ZYXEL_COMMON_CFLAGS += -DAPP_AGENT_SUPPORT
endif
ifeq ($(CONFIG_CAAAB_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DCAAAB_CUSTOMIZATION
endif
#CAAAE
ifeq ($(CONFIG_CAAAE_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DCAAAE_CUSTOMIZATION
endif
#CAAAD
ifeq ($(CONFIG_CAAAD_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DCAAAD_CUSTOMIZATION
endif
#SAAAC
ifeq ($(CONFIG_SAAAC_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DSAAAC_CUSTOMIZATION
endif
#ABUU
ifeq ($(CONFIG_ABUU_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DABUU_CUSTOMIZATION
endif
ifeq ($(CONFIG_ABUU_CUSTOMIZATION_MULTIPLE_CONFIG),y)
ZYXEL_COMMON_CFLAGS += -DABUU_CUSTOMIZATION_MULTIPLE_CONFIG
endif
ifeq ($(CONFIG_ABUU_CUSTOMIZATION_WLAN_SCHEDULER),y)
ZYXEL_COMMON_CFLAGS += -DABUU_CUSTOMIZATION_WLAN_SCHEDULER
endif
ifeq ($(CONFIG_ABUU_CUSTOMIZATION_ONLINE_FW_UPGRADE),y)
ZYXEL_COMMON_CFLAGS += -DABUU_CUSTOMIZATION_ONLINE_FW_UPGRADE
endif
#SAAAD
ifneq ($(strip $(CONFIG_SAAAD_TR98_CUSTOMIZATION)),)
ZYXEL_COMMON_CFLAGS += -DSAAAD_TR98_CUSTOMIZATION
endif
ifeq ($(CONFIG_SAAAD_TR69_WAN_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DSAAAD_TR69_WAN_CUSTOMIZATION
endif
ifeq ($(CONFIG_SAAAD_VLANHUNT_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DSAAAD_VLANHUNT_CUSTOMIZATION
endif
ifeq ($(CONFIG_SAAAD_WAN_AUTO_DETECT_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DSAAAD_WAN_AUTO_DETECT_CUSTOMIZATION
endif
#TAAAD
ifeq ($(CONFIG_TAAAD_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_TAAAD_CUSTOMIZATION
endif
#EAAAA
ifeq ($(CONFIG_EAAAA_CLEAN_ROMD_EVERYTIME_DURING_BOOT_UP),y)
ZYXEL_COMMON_CFLAGS += -DEAAAA_CLEAN_ROMD_EVERYTIME_DURING_BOOT_UP
endif
ifeq ($(CONFIG_EAAAA_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DEAAAA_CUSTOMIZATION
endif
ifeq ($(CONFIG_EAAAA_WAN_AUTO_DETECT),y)
ZYXEL_COMMON_CFLAGS += -DEAAAA_WAN_AUTO_DETECT
endif
#Oi
ifeq ($(CONFIG_OAAAA_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DOAAAA_CUSTOMIZATION
endif
# End of Zyxel Customization
########################################################################
# Zyxel Features
########################################################################
ZYXEL_COMMON_CFLAGS += -D$(ZCFG_PLATFORM)_PLATFORM
ifeq ($(CONFIG_ZYXEL_FEATURE_BITS),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_FEATURE_BITS
endif
ifeq ($(CONFIG_ZYXEL_SFP_MODULE_SUPPORT),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_SFP_MODULE_SUPPORT
endif
ifeq ($(CONFIG_ZYXEL_SIP_DELAYTIMES),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_SIP_DELAYTIMES
endif
ifeq ($(CONFIG_ZYXEL_AP_STEERING),y)
ZYXEL_COMMON_CFLAGS += -DAPSTEERING
endif
ifeq ($(CONFIG_ZyXEL_WEB_REDIRECT),y)
ZYXEL_COMMON_CFLAGS += -DZyXEL_WEB_REDIRECT
endif
ifeq ($(CONFIG_ZyXEL_PCP_WEB_REDIRECT),y)
ZYXEL_COMMON_CFLAGS += -DZyXEL_PCP_WEB_REDIRECT
endif
ifeq ($(CONFIG_ZYXEL_DL_DIAG_CALCULATION),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_DL_DIAG_CALCULATION
endif
ifeq ($(CONFIG_DSL_SUPPORT),y)
ZYXEL_COMMON_CFLAGS += -DSUPPORT_DSL
endif
ifeq ($(CONFIG_ZCFG_LOG_USE_DEBUGCFG),y)
ZYXEL_COMMON_CFLAGS += -DZCFG_LOG_USE_DEBUGCFG
ZYXEL_COMMON_CFLAGS += -DZCFG_ZYUTIL_DEBUG_API
endif
ifeq ($(CONFIG_TARGET_ROOTFS_UBIFS),y)
ZYXEL_COMMON_CFLAGS += -DTARGET_ROOTFS_UBIFS
endif
ifeq ($(CONFIG_ZYXEL_AT_SET_KEY),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_AT_SET_KEY
ifeq ($(CONFIG_ZYXEL_AT_SET_SUPERVISOR_KEY),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_AT_SET_SUPERVISOR_KEY
endif
endif
ifeq ($(CONFIG_ZYXEL_DNS_TRAFFIC_ROUTE_FUZZY_COMPARE),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_DNS_TRAFFIC_ROUTE_FUZZY_COMPARE
endif
ifeq ($(CONFIG_ZYXEL_OPAL_EXTENDER_WITH_NPACK),y)
ZYXEL_COMMON_CFLAGS += -DCONFIG_ZYXEL_OPAL_EXTENDER_WITH_NPACK
endif
ifneq ($(strip $(CONFIG_ZYXEL_RMA_FW_SUPPORT)),)
ZYXEL_COMMON_CFLAGS += -DZYXEL_RMA_FW_SUPPORT
endif
ifneq ($(strip $(CONFIG_ZYXEL_IPV6_UPLOAD_DIAG_ENABLE)),)
ZYXEL_COMMON_CFLAGS += -DZYXEL_IPV6_UPLOAD_DIAG_ENABLE
endif
ifeq ($(CONFIG_LTE_SUPPORT),y)
ZYXEL_COMMON_CFLAGS += -DLTE_SUPPORT
endif
ifeq ($(CONFIG_ZYXEL_NEW_ATSN),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_NEW_ATSN
endif
ifneq ($(strip $(CONFIG_ZYXEL_FIRMWARE_VERSION_EXT)), "")
ZYXEL_COMMON_CFLAGS += -DZYXEL_SUPPORT_EXT_FW_VER
endif
ifeq ($(CONFIG_ZYXEL_MEMORY_LEAK_DETECT),y)
ZYXEL_COMMON_CFLAGS += -DZCFG_MEMORY_LEAK_DETECT
endif
#define the number of interface for 2.4G and 5G
ifneq ($(strip $(CONFIG_ZYXEL_WIFI_NUM_OF_24G_SSID_INTERFACE)),)
ZYXEL_COMMON_CFLAGS += -DTOTAL_INTERFACE_24G=$(CONFIG_ZYXEL_WIFI_NUM_OF_24G_SSID_INTERFACE)
endif
ifneq ($(strip $(CONFIG_ZYXEL_WIFI_NUM_OF_5G_SSID_INTERFACE)),)
ZYXEL_COMMON_CFLAGS += -DTOTAL_INTERFACE_5G=$(CONFIG_ZYXEL_WIFI_NUM_OF_5G_SSID_INTERFACE)
endif
# F-secure Home Cyber Security
ifeq ($(CONFIG_ZYXEL_HOME_CYBER_SECURITY_FSECURE),y)
ZYXEL_COMMON_CFLAGS += -DCONFIG_ZYXEL_HOME_CYBER_SECURITY_FSECURE
endif
ifeq ($(CONFIG_KERNEL_ZYXEL_RS_TRY_5_TIMES),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_RS_TRY_5_TIMES
endif
ifeq ($(CONFIG_WIND_Greece_DHCPv6_Client_NTP_Option),y)
ZYXEL_COMMON_CFLAGS += -DWIND_Greece_DHCPv6_Client_NTP_Option
endif
ifeq ($(CONFIG_ZYXEL_USA_PRODUCT),y)
ZYXEL_COMMON_CFLAGS += -DUSA_PRODUCT
endif
ifeq ($(CONFIG_ZYXEL_WLAN_SCHEDULER),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_WLAN_SCHEDULER
endif
ifeq ($(CONFIG_ZYXEL_WLAN_SCHEDULER_AUTO_SWITCH_RADIO_ON),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_WLAN_SCHEDULER_AUTO_SWITCH_RADIO_ON
endif
ifeq ($(CONFIG_ZYXEL_SP_DOMAIN_TIMER),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_SP_DOMAIN_TIMER
endif
ifeq ($(CONFIG_SEND_PADT_BEFORE_DISCOVERY),y)
ZYXEL_COMMON_CFLAGS += -DSEND_PADT_BEFORE_DISCOVERY
endif
ifeq ($(CONFIG_WAN_AUTO_DETECT),y)
ZYXEL_COMMON_CFLAGS += -DWAN_AUTO_DETECT
endif
ifeq ($(CONFIG_ZYXEL_SYS_FWUR_SUPPORT),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_SYS_FWUR_SUPPORT=y
endif
ifeq ($(CONFIG_BRCMSDK$(shell echo $(CONFIG_BRCM_SDK_VERSION))_ZYXEL_SUPPORT_3G_LED_GREEN_AND_RED),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_SUPPORT_3G_LED_GREEN_AND_RED
endif
ifeq ($(CONFIG_INTERNET_LED_DEPEND_ON_DEFAULT_GW),y)
ZYXEL_COMMON_CFLAGS += -DINTERNET_LED_DEPEND_ON_DEFAULT_GW
endif
ifeq ($(CONFIG_BRCMSDK$(shell echo $(CONFIG_BRCM_SDK_VERSION))_ZYXEL_FW_UPGRADE_POWER_LED_BLINK),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_FW_UPGRADE_POWER_LED_BLINK
endif
ifneq ($(strip $(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_ZYXEL_FW_UPGRADE_POWER_LED_BLINK)),)
ZYXEL_COMMON_CFLAGS += -DZYXEL_FW_UPGRADE_POWER_LED_BLINK
endif
ifeq ($(strip ${CONFIG_ZYXEL_WPS_SPOTLIGHT}),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_WPS_SPOTLIGHT
endif
ZYXEL_COMMON_CFLAGS += -DZYXEL_ESMD_UTILIZE_TIMER_THREAD
# Support ONECONNECT
ifeq ($(CONFIG_ZYXEL_ONECONNECT),y)
ZYXEL_COMMON_CFLAGS += -DONECONNECT
endif
ifeq ($(CONFIG_ZYXEL_ONECONNECT_EU),y)
ZYXEL_COMMON_CFLAGS += -DONECONNECT_EU
endif
# Easy Mesh
ifeq ($(CONFIG_ZYXEL_EASYMESH),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_EASYMESH
ZYXEL_COMMON_CFLAGS += -DBUILD_EASYMESH
endif
ifeq ($(CONFIG_ZYXEL_EASYMESH_ROM_CONVERT),y)
ZYXEL_COMMON_CFLAGS += -DEASYMESH_ROM_CONVERT
ZYXEL_COMMON_CFLAGS += -DZYXEL_EASYMESH_ROM_CONVERT
endif
## PCP
ifeq ($(CONFIG_ZYXEL_PCP),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_PCP_SUPPORT
endif
ifeq ($(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_ZYXEL_SUPPORT_LAN_AS_ETHWAN),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_SUPPORT_LAN_AS_ETHWAN
ifeq ("$(strip ${ZCFG_PLATFORM})","ECONET")
ZYXEL_COMMON_CFLAGS += -DLAN4_PORTID=$(CONFIG_$(shell echo $(CONFIG_CUSTOM_SDK_PREFIX))_TCSUPPORT_LAN3_PORT)
endif
endif
#Ethernet UNI feature
ifeq ($(CONFIG_ZYXEL_WEB_GUI_ETH_UNI),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_WEB_GUI_ETH_UNI
endif
ifeq ($(CONFIG_ZyXEL_PPP_LCP_ECHO),y)
ZYXEL_COMMON_CFLAGS += -DZyXEL_PPP_LCP_ECHO
endif
ifeq ($(CONFIG_ZYXEL_DHCP_OPTION15),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_DHCP_OPTION15
endif
ifeq ($(CONFIG_ZyXEL_DHCP_OPTION125),y)
ZYXEL_COMMON_CFLAGS += -DZyXEL_DHCP_OPTION125
endif
ifeq ($(CONFIG_ZYXEL_POWER_MANAGEMENT),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_POWER_MGMT
endif
ifeq ($(CONFIG_PROXIMITY_SENSOR_SUPPORT),y)
ZYXEL_COMMON_CFLAGS += -DSUPPORT_PROXIMITY_SENSOR
endif
ifeq ($(CONFIG_ZYXEL_LED_SWITCH_ACTIVE),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_LED_SWITCH_ACTIVE
endif
ifeq ($(CONFIG_ZYXEL_ZYCLI_SUPERVISOR_IPTABLES),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_ZYCLI_SUPERVISOR_IPTABLES
endif
ifeq ($(CONFIG_ZYXEL_ZYCLI_SUPERVISOR_TCPDUMP),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_ZYCLI_SUPERVISOR_TCPDUMP
endif
#CONFIG_ZYXEL_IPV6_IANA_IAPD
ifeq ($(CONFIG_ZYXEL_IPV6_IANA_IAPD),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_IPV6_IANA_IAPD
endif
ifeq ($(CONFIG_ZYXEL_IPV6_MAP),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_IPV6_MAP
endif
ifeq ($(CONFIG_HAAAA_CUSTOMIZATION),y)
ZYXEL_COMMON_CFLAGS += -DHAAAA_CUSTOMIZATION
endif
#IPv6 Ready Logo Conformance
ifeq ($(CONFIG_ZYXEL_IPV6_READYLOGO_CONFORMANCE),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_IPV6_READYLOGO_CONFORMANCE
endif
## TR98 Global Ipv6 Enable
ifeq ($(CONFIG_ZYXEL_IPV6_GLOBAL_ENABLE),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_IPV6_GLOBAL_ENABLE_SUPPORT
endif
#DHCPv6s
ifeq ($(CONFIG_ZYXEL_DHCPV6S_LEASE),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_DHCPV6S_LEASE
endif
#DHCPv6c option
ifeq ($(CONFIG_ZYXEL_DHCPV6C_OPTION),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_DHCPV6C_OPTION
endif
#zigbee
ifeq ($(CONFIG_ZYXEL_ZIGBEE_SUPPORT),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_ZIGBEE_SUPPORT
endif
#Avast agent support
ifeq ($(CONFIG_ZYXEL_AVAST_AGENT_SUPPORT),y)
ZYXEL_COMMON_CFLAGS += -DAVAST_AGENT_PACKAGE
endif
ifeq ($(CONFIG_KERNEL_ZYXEL_SUPPORT_USB_FALL_BACK_2_0),y)
ZYXEL_COMMON_CFLAGS += -DZYXEL_SUPPORT_USB_FALL_BACK_2_0
endif