blob: a283d96f8baba42b67e77d6a92595c5a4752b51b [file] [log] [blame]
Yue Lun03a82d92013-10-21 10:15:02 +08001CPU=mips
2
3OS=linux
4
Yue Lundd6e3d92013-10-25 13:03:31 +08005OS_VER=3_4
6OS_SUB=31
7CHIP_TYPE=ISISC
8
Yue Lun03a82d92013-10-21 10:15:02 +08009ifndef OS_VER
10OS_VER=2_6
11endif
12# OS subversion, 2.6.31 for WASP (db120)
13#OS_SUB=31
14# GCC version, 3 or 4
15#GCC_VER=4
16
17#For MIPS Linux2.6
18 #pb45
19 #TOOL_PATH=/disk/pb45/sw/build/gcc-3.4.4-2.16.1/build_mips_nofpu/bin
20 #SYS_PATH=/disk/pb45/sw/linux/kernels/mips-linux-2.6.15
21
22 #ap81
23# compatiable with OpenWRT
24ifndef TOOL_PATH
25TOOL_PATH=/disk/ap81fus/sw/build/gcc-3.4.4-2.16.1/build_mips/bin
26endif
27ifndef SYS_PATH
28SYS_PATH=/disk/ap81fus/sw/linux/kernels/mips-linux-2.6.15
29endif
30ifeq ($(ARCH), mips)
31 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
32endif
33
34
35#db120
36ifeq ($(BOARD_TYPE),db12x)
37OS_SUB=31
38GCC_VER=4
39TOOL_PATH=$(TOPDIR)/build/gcc-4.3.3/build_mips/staging_dir/usr/bin
40SYS_PATH=$(TOPDIR)/linux/kernels/mips-linux-2.6.31
41CPU_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
42endif
43
44ifeq ($(ARCH), arm)
45 CPU_CFLAG=-D__LINUX_ARM_ARCH__=7 -DMODULE -fno-common -DCONFIG_MMU
46endif
47
48ifeq ($(BOARD_TYPE), ap136)
49OS_SUB=31
50GCC_VER=4
51TOOL_PATH=$(TOPDIR)/build/gcc-4.3.3/build_mips/staging_dir/usr/bin
52SYS_PATH=$(TOPDIR)/linux/kernels/mips-linux-2.6.31
53CPU_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
54endif
55
56#For MIPS Linux2.4
57 #TOOL_PATH=/home/perforce/kernel2.4/5.3.1.20/tools/gcc-3.3.3-2.4.25/toolchain_mips/bin
58 #SYS_PATH=/home/perforce/kernel2.4/5.3.1.20/src/kernels/mips-linux-2.4.25
59
60 #TOOLPREFIX=$(CPU)-$(OS)-
61 #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
62
63
64KERNEL_MODE=TRUE
65#compatiable with OpenWRT
66ifeq ($(SWITCH_SSDK_MODE),user)
67KERNEL_MODE=FLASE
68endif
69
70#FAL=FALSE or not define FAL, FAL will not be included in SSDK
Yue Lundd6e3d92013-10-25 13:03:31 +080071FAL=TRUE
Yue Lun03a82d92013-10-21 10:15:02 +080072
73#CHIP_TYPE can be defined as ATHENA, GARUDA, SHIVA, HORUS, ISIS, ISISC and ALL_CHIP(ALL_CHIP means GARUDA, SHIVA, HORUS and ISIS)
74CHIP_TYPE=ISISC
75
76#UK_IF=FALSE or not define UK_IF, UK_IF will not be included in SSDK
77#when UK_IF=TRUE one of UK_NETLINK,UK_IOCTL must be defined as TRUE
78UK_IF=TRUE
79#UK_IOCTL=TRUE define user-kernel space communication based on ioctl
80UK_IOCTL=TRUE
81UK_MINOR_DEV=254
82
83#API_LOCK=FALSE or not define API_LOCK, API_LOCK will not be included in SSDK
84API_LOCK=FALSE
85
86#REG_ACCESS_SPEEDUP=FALSE or not define REG_ACCESS_SPEEDUP, REG_ACCESS_SPEEDUP will not be enabled, now only ISIS supports
87REG_ACCESS_SPEEDUP=FALSE
88
89#ALL supported features:
90#ACL FDB IGMP LEAKY LED MIB MIRROR MISC PORTCONTROL PORTVLAN QOS RATE STP VLAN
91#IN_X=FALSE or not define IN_X, X will not be included in SSDK
92IN_ACL=TRUE
93IN_FDB=TRUE
94IN_IGMP=TRUE
95IN_LEAKY=TRUE
96IN_LED=TRUE
97IN_MIB=TRUE
98IN_MIRROR=TRUE
99IN_MISC=TRUE
100IN_PORTCONTROL=TRUE
101IN_PORTVLAN=TRUE
102IN_QOS=TRUE
103IN_RATE=TRUE
104IN_STP=TRUE
105IN_VLAN=TRUE
106IN_REDUCED_ACL=FALSE
107IN_COSMAP=TRUE
108IN_IP=TRUE
109IN_NAT=TRUE
110IN_TRUNK=TRUE
111IN_SEC=TRUE
112IN_NAT_HELPER=FALSE
113IN_INTERFACECONTROL=TRUE
114IN_MACBLOCK=FALSE