blob: 2e391a8cefcb28d1936c2f7e9a6acc63baae26a4 [file] [log] [blame]
luny479178a2014-06-18 12:33:29 +08001#CPU=mips
2
3OS=linux
4
5ifeq ($(KVER), 3.4.0)
6OS_VER=3_4
7endif
8
9ifeq ($(KVER), 3.3.8)
10OS_VER=3_2
11endif
12
13ifeq ($(ARCH), arm)
14BOARD=ipq806x
15endif
16
17ifeq ($(ARCH), mips)
18BOARD=ar71xx
19endif
20
21ifeq ($(BOARD), ar71xx)
22BOARD_NAME=BOARD_AR71XX
23endif
24
25ifeq ($(BOARD), ipq806x)
26BOARD_NAME=BOARD_IPQ806X
27endif
28
29OS_SUB=31
30CHIP_TYPE=ISISC
31
32ifndef OS_VER
33OS_VER=2_6
34endif
35# OS subversion, 2.6.31 for WASP (db120)
36#OS_SUB=31
37# GCC version, 3 or 4
38#GCC_VER=4
39
40#For MIPS Linux2.6
41 #pb45
42 #TOOL_PATH=/disk/pb45/sw/build/gcc-3.4.4-2.16.1/build_mips_nofpu/bin
43 #SYS_PATH=/disk/pb45/sw/linux/kernels/mips-linux-2.6.15
44
45 #ap81
46# compatiable with OpenWRT
47ifndef TOOL_PATH
48TOOL_PATH=/disk/ap81fus/sw/build/gcc-3.4.4-2.16.1/build_mips/bin
49endif
50ifndef SYS_PATH
51SYS_PATH=/disk/ap81fus/sw/linux/kernels/mips-linux-2.6.15
52endif
53ifeq ($(ARCH), mips)
54 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 -D$(BOARD_NAME)
55endif
56
57
58#db120
59ifeq ($(BOARD_TYPE),db12x)
60OS_SUB=31
61GCC_VER=4
62TOOL_PATH=$(TOPDIR)/build/gcc-4.3.3/build_mips/staging_dir/usr/bin
63SYS_PATH=$(TOPDIR)/linux/kernels/mips-linux-2.6.31
64CPU_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
65endif
66
67ifeq ($(ARCH), arm)
68 CPU_CFLAG=-D__LINUX_ARM_ARCH__=7 -DMODULE -fno-common -DCONFIG_MMU -D$(BOARD_NAME)
69endif
70
71ifeq ($(BOARD_TYPE), ap136)
72OS_SUB=31
73GCC_VER=4
74TOOL_PATH=$(TOPDIR)/build/gcc-4.3.3/build_mips/staging_dir/usr/bin
75SYS_PATH=$(TOPDIR)/linux/kernels/mips-linux-2.6.31
76CPU_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
77endif
78
79#For MIPS Linux2.4
80 #TOOL_PATH=/home/perforce/kernel2.4/5.3.1.20/tools/gcc-3.3.3-2.4.25/toolchain_mips/bin
81 #SYS_PATH=/home/perforce/kernel2.4/5.3.1.20/src/kernels/mips-linux-2.4.25
82
83 #TOOLPREFIX=$(CPU)-$(OS)-
84 #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
85
86
87KERNEL_MODE=TRUE
88#compatiable with OpenWRT
89ifeq ($(SWITCH_SSDK_MODE),user)
90KERNEL_MODE=FLASE
91endif
92
93#FAL=FALSE or not define FAL, FAL will not be included in SSDK
94FAL=TRUE
95
96#CHIP_TYPE can be defined as ATHENA, GARUDA, SHIVA, HORUS, ISIS, ISISC and ALL_CHIP(ALL_CHIP means GARUDA, SHIVA, HORUS and ISIS)
97CHIP_TYPE=ISISC
98
99#UK_IF=FALSE or not define UK_IF, UK_IF will not be included in SSDK
100#when UK_IF=TRUE one of UK_NETLINK,UK_IOCTL must be defined as TRUE
101UK_IF=TRUE
102#UK_IOCTL=TRUE define user-kernel space communication based on ioctl
103UK_IOCTL=TRUE
104UK_MINOR_DEV=254
105
106#API_LOCK=FALSE or not define API_LOCK, API_LOCK will not be included in SSDK
107API_LOCK=FALSE
108
109#REG_ACCESS_SPEEDUP=FALSE or not define REG_ACCESS_SPEEDUP, REG_ACCESS_SPEEDUP will not be enabled, now only ISIS supports
110REG_ACCESS_SPEEDUP=FALSE
111
112#ALL supported features:
113#ACL FDB IGMP LEAKY LED MIB MIRROR MISC PORTCONTROL PORTVLAN QOS RATE STP VLAN
114#IN_X=FALSE or not define IN_X, X will not be included in SSDK
115IN_ACL=TRUE
116IN_FDB=TRUE
117IN_IGMP=TRUE
118IN_LEAKY=TRUE
119IN_LED=TRUE
120IN_MIB=TRUE
121IN_MIRROR=TRUE
122IN_MISC=TRUE
123IN_PORTCONTROL=TRUE
124IN_PORTVLAN=TRUE
125IN_QOS=TRUE
126IN_RATE=TRUE
127IN_STP=TRUE
128IN_VLAN=TRUE
129IN_REDUCED_ACL=FALSE
130IN_COSMAP=TRUE
131IN_IP=TRUE
132IN_NAT=TRUE
133IN_TRUNK=TRUE
mingxinh640d9462017-02-23 15:16:48 +0800134IN_QM=TRUE
135IN_FLOW=TRUE
luny479178a2014-06-18 12:33:29 +0800136IN_SEC=TRUE
137ifeq ($(HNAT_FEATURE), enable)
138IN_NAT_HELPER=TRUE
139else
140IN_NAT_HELPER=FALSE
141endif
142IN_INTERFACECONTROL=TRUE
143IN_MACBLOCK=FALSE
mingxinh640d9462017-02-23 15:16:48 +0800144IN_VSI=TRUE
145IN_CTRLPKT=TRUE
146IN_SERVCODE=TRUE
mingxinhad3000d2017-04-06 18:35:00 +0800147IN_RSS_HASH=TRUE
mingxinh640d9462017-02-23 15:16:48 +0800148IN_PPPOE=TRUE
149IN_BM=TRUE
150IN_SHAPER=TRUE
151IN_POLICER=TRUE