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