Yue Lun | f564a1f | 2014-01-07 15:54:34 +0800 | [diff] [blame] | 1 | #CPU=mips |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 2 | |
| 3 | OS=linux |
| 4 | |
Vasudevan Murugesan | f5fe749 | 2015-06-10 19:45:37 +0530 | [diff] [blame] | 5 | ifeq ($(KVER),$(filter 3.14%,$(KVER))) |
luny | d975a20 | 2014-05-15 22:17:17 +0800 | [diff] [blame] | 6 | OS_VER=3_14 |
| 7 | endif |
| 8 | |
Liu Zhongjian | f8134e9 | 2016-09-21 14:42:01 +0800 | [diff] [blame] | 9 | ifeq ($(KVER),$(filter 4.4%,$(KVER))) |
| 10 | OS_VER=4_4 |
| 11 | endif |
Luo Jie | 2611659 | 2017-06-06 15:59:46 +0800 | [diff] [blame] | 12 | |
| 13 | ifeq ($(KVER),$(filter 4.1%,$(KVER))) |
| 14 | OS_VER=4_1 |
| 15 | endif |
| 16 | |
Luo Jie | cc39258 | 2017-08-12 15:20:34 +0800 | [diff] [blame] | 17 | ifeq ($(KVER),$(filter 4.9%,$(KVER))) |
| 18 | OS_VER=4_9 |
| 19 | endif |
| 20 | |
Yue Lun | f564a1f | 2014-01-07 15:54:34 +0800 | [diff] [blame] | 21 | ifeq ($(KVER), 3.4.0) |
Yue Lun | dd6e3d9 | 2013-10-25 13:03:31 +0800 | [diff] [blame] | 22 | OS_VER=3_4 |
Yue Lun | f564a1f | 2014-01-07 15:54:34 +0800 | [diff] [blame] | 23 | endif |
| 24 | |
Ram Chandra Jangir | 88dfc38 | 2015-09-04 11:50:17 +0530 | [diff] [blame] | 25 | ifeq ($(KVER), 3.18) |
| 26 | OS_VER=3_18 |
| 27 | endif |
| 28 | |
Ram Chandra Jangir | 511c9a4 | 2015-09-25 19:25:57 +0530 | [diff] [blame] | 29 | ifeq ($(KVER), 3.18.21) |
Ram Chandra Jangir | 88dfc38 | 2015-09-04 11:50:17 +0530 | [diff] [blame] | 30 | OS_VER=3_18 |
| 31 | endif |
| 32 | |
Yili Zhao | b8db20b | 2014-10-17 18:29:06 -0700 | [diff] [blame] | 33 | ifeq ($(KVER), 3.4.103) |
| 34 | OS_VER=3_4 |
| 35 | endif |
| 36 | |
Yue Lun | f564a1f | 2014-01-07 15:54:34 +0800 | [diff] [blame] | 37 | ifeq ($(KVER), 3.3.8) |
| 38 | OS_VER=3_2 |
| 39 | endif |
| 40 | |
| 41 | ifeq ($(ARCH), arm) |
| 42 | BOARD=ipq806x |
| 43 | endif |
| 44 | |
| 45 | ifeq ($(ARCH), mips) |
| 46 | BOARD=ar71xx |
| 47 | endif |
| 48 | |
| 49 | ifeq ($(BOARD), ar71xx) |
| 50 | BOARD_NAME=BOARD_AR71XX |
| 51 | endif |
| 52 | |
| 53 | ifeq ($(BOARD), ipq806x) |
| 54 | BOARD_NAME=BOARD_IPQ806X |
| 55 | endif |
| 56 | |
Yue Lun | dd6e3d9 | 2013-10-25 13:03:31 +0800 | [diff] [blame] | 57 | OS_SUB=31 |
Yue Lun | dd6e3d9 | 2013-10-25 13:03:31 +0800 | [diff] [blame] | 58 | |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 59 | ifndef OS_VER |
| 60 | OS_VER=2_6 |
| 61 | endif |
| 62 | # OS subversion, 2.6.31 for WASP (db120) |
| 63 | #OS_SUB=31 |
| 64 | # GCC version, 3 or 4 |
| 65 | #GCC_VER=4 |
| 66 | |
| 67 | #For MIPS Linux2.6 |
| 68 | #pb45 |
| 69 | #TOOL_PATH=/disk/pb45/sw/build/gcc-3.4.4-2.16.1/build_mips_nofpu/bin |
| 70 | #SYS_PATH=/disk/pb45/sw/linux/kernels/mips-linux-2.6.15 |
Ram Chandra Jangir | 963e4d2 | 2015-12-21 20:53:40 +0530 | [diff] [blame] | 71 | |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 72 | #ap81 |
| 73 | # compatiable with OpenWRT |
Ram Chandra Jangir | 963e4d2 | 2015-12-21 20:53:40 +0530 | [diff] [blame] | 74 | ifndef TOOL_PATH |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 75 | TOOL_PATH=/disk/ap81fus/sw/build/gcc-3.4.4-2.16.1/build_mips/bin |
| 76 | endif |
Ram Chandra Jangir | 963e4d2 | 2015-12-21 20:53:40 +0530 | [diff] [blame] | 77 | ifndef SYS_PATH |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 78 | SYS_PATH=/disk/ap81fus/sw/linux/kernels/mips-linux-2.6.15 |
| 79 | endif |
| 80 | ifeq ($(ARCH), mips) |
Zou Shunxiang | 0b4f142 | 2014-04-17 13:59:28 +0800 | [diff] [blame] | 81 | CPU_CFLAG=-Wstrict-prototypes -fomit-frame-pointer -G 0 -mno-abicalls -fno-common -fno-strict-aliasing -O2 -fno-pic -pipe -mabi=32 -march=mips32r2 -DMODULE -mlong-calls -DEXPORT_SYMTAB -D$(BOARD_NAME) |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 82 | endif |
| 83 | |
| 84 | |
| 85 | #db120 |
| 86 | ifeq ($(BOARD_TYPE),db12x) |
| 87 | OS_SUB=31 |
| 88 | GCC_VER=4 |
| 89 | TOOL_PATH=$(TOPDIR)/build/gcc-4.3.3/build_mips/staging_dir/usr/bin |
| 90 | SYS_PATH=$(TOPDIR)/linux/kernels/mips-linux-2.6.31 |
| 91 | CPU_CFLAG=-Wstrict-prototypes -fomit-frame-pointer -G 0 -mno-abicalls -fno-strict-aliasing -O2 -fno-pic -pipe -mabi=32 -march=mips32r2 -DMODULE -mlong-calls -DEXPORT_SYMTAB |
| 92 | endif |
| 93 | |
| 94 | ifeq ($(ARCH), arm) |
luny | d975a20 | 2014-05-15 22:17:17 +0800 | [diff] [blame] | 95 | ifeq ($(KVER), 3.4.0) |
Yue Lun | f564a1f | 2014-01-07 15:54:34 +0800 | [diff] [blame] | 96 | CPU_CFLAG=-D__LINUX_ARM_ARCH__=7 -DMODULE -fno-common -DCONFIG_MMU -D$(BOARD_NAME) |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 97 | endif |
Yili Zhao | b8db20b | 2014-10-17 18:29:06 -0700 | [diff] [blame] | 98 | ifeq ($(KVER), 3.4.103) |
| 99 | CPU_CFLAG=-D__LINUX_ARM_ARCH__=7 -DMODULE -fno-common -DCONFIG_MMU -D$(BOARD_NAME) |
| 100 | endif |
Ram Chandra Jangir | 511c9a4 | 2015-09-25 19:25:57 +0530 | [diff] [blame] | 101 | ifeq ($(KVER), 3.18.21) |
Ram Chandra Jangir | 88dfc38 | 2015-09-04 11:50:17 +0530 | [diff] [blame] | 102 | CPU_CFLAG=-D__LINUX_ARM_ARCH__=7 -DMODULE -fno-common -DCONFIG_MMU -D$(BOARD_NAME) |
| 103 | endif |
Liu Zhongjian | f8134e9 | 2016-09-21 14:42:01 +0800 | [diff] [blame] | 104 | ifeq ($(KVER),$(filter 4.4%,$(KVER))) |
| 105 | CPU_CFLAG=-D__LINUX_ARM_ARCH__=7 -DMODULE -fno-common -DCONFIG_MMU -D$(BOARD_NAME) |
| 106 | endif |
Ram Chandra Jangir | 88dfc38 | 2015-09-04 11:50:17 +0530 | [diff] [blame] | 107 | |
Vasudevan Murugesan | f5fe749 | 2015-06-10 19:45:37 +0530 | [diff] [blame] | 108 | ifeq ($(KVER),$(filter 3.14%,$(KVER))) |
xiaofeis | ccdee9c | 2016-03-07 21:01:03 +0800 | [diff] [blame] | 109 | CPU_CFLAG= -DMODULE -nostdinc -D$(BOARD_NAME) -mlittle-endian -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror -fno-strict-aliasing -fno-common -Wno-format-security -fno-delete-null-pointer-checks -O2 -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp -funwind-tables -marm -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(mem)" |
luny | d975a20 | 2014-05-15 22:17:17 +0800 | [diff] [blame] | 110 | endif |
Ram Chandra Jangir | 88dfc38 | 2015-09-04 11:50:17 +0530 | [diff] [blame] | 111 | |
Luo Jie | 25a0405 | 2017-10-23 19:37:13 +0800 | [diff] [blame] | 112 | ifeq ($(KVER),$(filter 4.9% 4.4%,$(KVER))) |
xiaofeis | 81ae1f7 | 2018-06-26 17:13:35 +0800 | [diff] [blame] | 113 | CPU_CFLAG= -DMODULE -nostdinc -D$(BOARD_NAME) -mlittle-endian -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror -fno-strict-aliasing -fno-common -Wno-format-security -fno-delete-null-pointer-checks -O2 -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp -funwind-tables -marm -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(mem)" |
Liu Zhongjian | f8134e9 | 2016-09-21 14:42:01 +0800 | [diff] [blame] | 114 | endif |
| 115 | |
Ram Chandra Jangir | 88dfc38 | 2015-09-04 11:50:17 +0530 | [diff] [blame] | 116 | ifeq ($(KVER),$(filter 3.18%,$(KVER))) |
xiaofeis | 9ebb3ff | 2016-02-29 16:49:31 +0800 | [diff] [blame] | 117 | CPU_CFLAG= -DMODULE -nostdinc -D$(BOARD_NAME) -mlittle-endian -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wno-format-security -fno-delete-null-pointer-checks -O2 -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp -funwind-tables -marm -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(mem)" |
Ram Chandra Jangir | 88dfc38 | 2015-09-04 11:50:17 +0530 | [diff] [blame] | 118 | endif |
luny | d975a20 | 2014-05-15 22:17:17 +0800 | [diff] [blame] | 119 | endif |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 120 | |
mingxinh | 7458b24 | 2017-02-21 18:30:24 +0800 | [diff] [blame] | 121 | ifeq ($(ARCH), arm64) |
| 122 | ifeq ($(KVER),$(filter 4.4%,$(KVER))) |
| 123 | CPU_CFLAG= -DMODULE -Os -pipe -march=armv8-a -mcpu=cortex-a53+crypto -fno-caller-saves -fhonour-copts -fno-common -Wno-error=unused-but-set-variable -Wno-error=unused-result -mcmodel=large |
| 124 | endif |
Luo Jie | cc39258 | 2017-08-12 15:20:34 +0800 | [diff] [blame] | 125 | ifeq ($(KVER),$(filter 4.1% 4.9%, $(KVER))) |
Luo Jie | 2611659 | 2017-06-06 15:59:46 +0800 | [diff] [blame] | 126 | CPU_CFLAG= -DMODULE -Os -pipe -march=armv8-a -mcpu=cortex-a53+crypto -fno-caller-saves -fno-common -Wno-error=unused-but-set-variable -Wno-error=unused-result -mcmodel=large |
| 127 | endif |
mingxinh | 7458b24 | 2017-02-21 18:30:24 +0800 | [diff] [blame] | 128 | endif |
| 129 | |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 130 | ifeq ($(BOARD_TYPE), ap136) |
| 131 | OS_SUB=31 |
| 132 | GCC_VER=4 |
| 133 | TOOL_PATH=$(TOPDIR)/build/gcc-4.3.3/build_mips/staging_dir/usr/bin |
| 134 | SYS_PATH=$(TOPDIR)/linux/kernels/mips-linux-2.6.31 |
| 135 | CPU_CFLAG=-Wstrict-prototypes -fomit-frame-pointer -G 0 -mno-abicalls -fno-strict-aliasing -O2 -fno-pic -pipe -mabi=32 -march=mips32r2 -DMODULE -mlong-calls -DEXPORT_SYMTAB |
| 136 | endif |
| 137 | |
| 138 | #For MIPS Linux2.4 |
| 139 | #TOOL_PATH=/home/perforce/kernel2.4/5.3.1.20/tools/gcc-3.3.3-2.4.25/toolchain_mips/bin |
| 140 | #SYS_PATH=/home/perforce/kernel2.4/5.3.1.20/src/kernels/mips-linux-2.4.25 |
| 141 | |
| 142 | #TOOLPREFIX=$(CPU)-$(OS)- |
| 143 | #CPU_CFLAG=-Wstrict-prototypes -Wundef -fomit-frame-pointer -G 0 -mno-abicalls -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fno-pic -pipe -mabi=32 -march=r4600 -Wa,-32 -Wa,-march=r4600 -Wa,--trap -DMODULE -mlong-calls -DEXPORT_SYMTAB |
| 144 | |
Luo Jie | 82b4a88 | 2017-06-29 20:50:18 +0800 | [diff] [blame] | 145 | ifeq ($(SWCONFIG_FEATURE), disable) |
| 146 | SWCONFIG=FALSE |
| 147 | else |
| 148 | SWCONFIG=TRUE |
| 149 | endif |
| 150 | |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 151 | KERNEL_MODE=TRUE |
| 152 | #compatiable with OpenWRT |
| 153 | ifeq ($(SWITCH_SSDK_MODE),user) |
| 154 | KERNEL_MODE=FLASE |
| 155 | endif |
| 156 | |
| 157 | #FAL=FALSE or not define FAL, FAL will not be included in SSDK |
Yue Lun | dd6e3d9 | 2013-10-25 13:03:31 +0800 | [diff] [blame] | 158 | FAL=TRUE |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 159 | |
mingxinh | 7458b24 | 2017-02-21 18:30:24 +0800 | [diff] [blame] | 160 | #CHIP_TYPE can be defined as ATHENA, GARUDA, SHIVA, HORUS, ISIS, ISISC, DESS, HPPE and ALL_CHIP(ALL_CHIP means GARUDA, SHIVA, HORUS, ISIS, ISISC, DESS and HPPE) |
Zou Shunxiang | 0b4f142 | 2014-04-17 13:59:28 +0800 | [diff] [blame] | 161 | CHIP_TYPE=ALL_CHIP |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 162 | |
| 163 | #UK_IF=FALSE or not define UK_IF, UK_IF will not be included in SSDK |
| 164 | #when UK_IF=TRUE one of UK_NETLINK,UK_IOCTL must be defined as TRUE |
| 165 | UK_IF=TRUE |
| 166 | #UK_IOCTL=TRUE define user-kernel space communication based on ioctl |
| 167 | UK_IOCTL=TRUE |
| 168 | UK_MINOR_DEV=254 |
| 169 | |
| 170 | #API_LOCK=FALSE or not define API_LOCK, API_LOCK will not be included in SSDK |
| 171 | API_LOCK=FALSE |
| 172 | |
| 173 | #REG_ACCESS_SPEEDUP=FALSE or not define REG_ACCESS_SPEEDUP, REG_ACCESS_SPEEDUP will not be enabled, now only ISIS supports |
| 174 | REG_ACCESS_SPEEDUP=FALSE |
| 175 | |
| 176 | #ALL supported features: |
| 177 | #ACL FDB IGMP LEAKY LED MIB MIRROR MISC PORTCONTROL PORTVLAN QOS RATE STP VLAN |
| 178 | #IN_X=FALSE or not define IN_X, X will not be included in SSDK |
| 179 | IN_ACL=TRUE |
| 180 | IN_FDB=TRUE |
xiaofeis | 3237f35 | 2015-10-30 15:38:20 +0800 | [diff] [blame] | 181 | IN_FDB_MINI=FALSE |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 182 | IN_IGMP=TRUE |
| 183 | IN_LEAKY=TRUE |
| 184 | IN_LED=TRUE |
| 185 | IN_MIB=TRUE |
| 186 | IN_MIRROR=TRUE |
| 187 | IN_MISC=TRUE |
xiaofeis | 3237f35 | 2015-10-30 15:38:20 +0800 | [diff] [blame] | 188 | IN_MISC_MINI=FALSE |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 189 | IN_PORTCONTROL=TRUE |
xiaofeis | 3237f35 | 2015-10-30 15:38:20 +0800 | [diff] [blame] | 190 | IN_PORTCONTROL_MINI=FALSE |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 191 | IN_PORTVLAN=TRUE |
xiaofeis | 3237f35 | 2015-10-30 15:38:20 +0800 | [diff] [blame] | 192 | IN_PORTVLAN_MINI=FALSE |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 193 | IN_QOS=TRUE |
xiaofeis | 3237f35 | 2015-10-30 15:38:20 +0800 | [diff] [blame] | 194 | IN_QOS_MINI=FALSE |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 195 | IN_RATE=TRUE |
| 196 | IN_STP=TRUE |
| 197 | IN_VLAN=TRUE |
xiaofeis | 3237f35 | 2015-10-30 15:38:20 +0800 | [diff] [blame] | 198 | IN_VLAN_MINI=FALSE |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 199 | IN_REDUCED_ACL=FALSE |
| 200 | IN_COSMAP=TRUE |
xiaofeis | 3237f35 | 2015-10-30 15:38:20 +0800 | [diff] [blame] | 201 | IN_COSMAP_MINI=FALSE |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 202 | IN_IP=TRUE |
| 203 | IN_NAT=TRUE |
mingxinh | 7458b24 | 2017-02-21 18:30:24 +0800 | [diff] [blame] | 204 | IN_FLOW=TRUE |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 205 | IN_TRUNK=TRUE |
mingxinh | 3b69f73 | 2017-04-06 18:33:36 +0800 | [diff] [blame] | 206 | IN_RSS_HASH=TRUE |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 207 | IN_SEC=TRUE |
mingxinh | 7458b24 | 2017-02-21 18:30:24 +0800 | [diff] [blame] | 208 | IN_QM=TRUE |
| 209 | IN_PPPOE=TRUE |
Yue Lun | f564a1f | 2014-01-07 15:54:34 +0800 | [diff] [blame] | 210 | ifeq ($(HNAT_FEATURE), enable) |
| 211 | IN_NAT_HELPER=TRUE |
| 212 | else |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 213 | IN_NAT_HELPER=FALSE |
Yue Lun | f564a1f | 2014-01-07 15:54:34 +0800 | [diff] [blame] | 214 | endif |
xiaofeis | ad0eef0 | 2015-02-09 16:14:32 +0800 | [diff] [blame] | 215 | ifeq ($(RFS_FEATURE), enable) |
| 216 | IN_RFS=TRUE |
| 217 | else |
| 218 | IN_RFS=FALSE |
| 219 | endif |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 220 | IN_INTERFACECONTROL=TRUE |
| 221 | IN_MACBLOCK=FALSE |
xiaofeis | 3237f35 | 2015-10-30 15:38:20 +0800 | [diff] [blame] | 222 | IN_MALIBU_PHY=TRUE |
Liu Zhongjian | 7b7ef15 | 2017-06-12 20:25:23 +0800 | [diff] [blame] | 223 | ifeq (ALL_CHIP, $(CHIP_TYPE)) |
Liu Zhongjian | c6834c0 | 2017-04-28 15:43:29 +0800 | [diff] [blame] | 224 | IN_AQUANTIA_PHY=TRUE |
Liu Zhongjian | e7cef67 | 2017-07-19 16:31:24 +0800 | [diff] [blame] | 225 | IN_QCA803X_PHY=TRUE |
Liu Zhongjian | 0133494 | 2018-06-04 20:47:00 +0800 | [diff] [blame] | 226 | IN_QCA808X_PHY=TRUE |
xiaofeis | d96a987 | 2018-02-28 17:47:17 +0800 | [diff] [blame] | 227 | IN_SFP_PHY=TRUE |
Liu Zhongjian | 7b7ef15 | 2017-06-12 20:25:23 +0800 | [diff] [blame] | 228 | else |
Liu Zhongjian | e7cef67 | 2017-07-19 16:31:24 +0800 | [diff] [blame] | 229 | IN_QCA803X_PHY=FALSE |
Liu Zhongjian | 0133494 | 2018-06-04 20:47:00 +0800 | [diff] [blame] | 230 | IN_QCA808X_PHY=FALSE |
Liu Zhongjian | 7b7ef15 | 2017-06-12 20:25:23 +0800 | [diff] [blame] | 231 | IN_AQUANTIA_PHY=FALSE |
xiaofeis | d96a987 | 2018-02-28 17:47:17 +0800 | [diff] [blame] | 232 | IN_SFP_PHY=FALSE |
Liu Zhongjian | 7b7ef15 | 2017-06-12 20:25:23 +0800 | [diff] [blame] | 233 | endif |
Ram Chandra Jangir | 963e4d2 | 2015-12-21 20:53:40 +0530 | [diff] [blame] | 234 | ifeq ($(SFE_FEATURE), enable) |
| 235 | IN_SFE=TRUE |
| 236 | else |
| 237 | IN_SFE=FALSE |
| 238 | endif |
Luo Jie | 5e3044d | 2018-03-13 17:56:37 +0800 | [diff] [blame] | 239 | ifeq ($(IN_QCA808X_PHY), TRUE) |
| 240 | IN_PHY_I2C_MODE=TRUE |
| 241 | else |
| 242 | IN_PHY_I2C_MODE=FALSE |
Luo Jie | 3278112 | 2018-08-22 18:05:44 +0800 | [diff] [blame] | 243 | endif |
| 244 | ifeq ($(PTP_FEATURE), enable) |
| 245 | IN_PTP=TRUE |
| 246 | else |
Luo Jie | 8314e70 | 2018-06-04 11:23:57 +0800 | [diff] [blame] | 247 | IN_PTP=FALSE |
Luo Jie | 5e3044d | 2018-03-13 17:56:37 +0800 | [diff] [blame] | 248 | endif |
mingxinh | 7458b24 | 2017-02-21 18:30:24 +0800 | [diff] [blame] | 249 | IN_VSI=TRUE |
| 250 | IN_CTRLPKT=TRUE |
| 251 | IN_SERVCODE=TRUE |
| 252 | IN_BM=TRUE |
| 253 | IN_SHAPER=TRUE |
| 254 | IN_POLICER=TRUE |
esong | a168965 | 2017-03-30 18:07:37 +0800 | [diff] [blame] | 255 | IN_UNIPHY=TRUE |
mingxinh | 2066f35 | 2017-03-07 19:52:30 +0800 | [diff] [blame] | 256 | ifneq ($(HK_CHIP), enable) |
| 257 | CHIP_TYPE=NONHK_CHIP |
| 258 | endif |
esong | b326909 | 2018-01-25 16:54:04 +0800 | [diff] [blame] | 259 | HAWKEYE_CHIP=TRUE |