Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 1 | CPU=mips |
| 2 | |
| 3 | OS=linux |
| 4 | |
| 5 | ifndef OS_VER |
| 6 | OS_VER=2_6 |
| 7 | endif |
| 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 |
| 20 | ifndef TOOL_PATH |
| 21 | TOOL_PATH=/disk/ap81fus/sw/build/gcc-3.4.4-2.16.1/build_mips/bin |
| 22 | endif |
| 23 | ifndef SYS_PATH |
| 24 | SYS_PATH=/disk/ap81fus/sw/linux/kernels/mips-linux-2.6.15 |
| 25 | endif |
| 26 | ifeq ($(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 |
| 28 | endif |
| 29 | |
| 30 | |
| 31 | #db120 |
| 32 | ifeq ($(BOARD_TYPE),db12x) |
| 33 | OS_SUB=31 |
| 34 | GCC_VER=4 |
| 35 | TOOL_PATH=$(TOPDIR)/build/gcc-4.3.3/build_mips/staging_dir/usr/bin |
| 36 | SYS_PATH=$(TOPDIR)/linux/kernels/mips-linux-2.6.31 |
| 37 | 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 |
| 38 | endif |
| 39 | |
| 40 | ifeq ($(ARCH), arm) |
| 41 | CPU_CFLAG=-D__LINUX_ARM_ARCH__=7 -DMODULE -fno-common -DCONFIG_MMU |
| 42 | endif |
| 43 | |
| 44 | ifeq ($(BOARD_TYPE), ap136) |
| 45 | OS_SUB=31 |
| 46 | GCC_VER=4 |
| 47 | TOOL_PATH=$(TOPDIR)/build/gcc-4.3.3/build_mips/staging_dir/usr/bin |
| 48 | SYS_PATH=$(TOPDIR)/linux/kernels/mips-linux-2.6.31 |
| 49 | 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 |
| 50 | endif |
| 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 | |
| 60 | KERNEL_MODE=TRUE |
| 61 | #compatiable with OpenWRT |
| 62 | ifeq ($(SWITCH_SSDK_MODE),user) |
| 63 | KERNEL_MODE=FLASE |
| 64 | endif |
| 65 | |
| 66 | #FAL=FALSE or not define FAL, FAL will not be included in SSDK |
| 67 | FAL=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) |
| 70 | CHIP_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 |
| 74 | UK_IF=TRUE |
| 75 | #UK_IOCTL=TRUE define user-kernel space communication based on ioctl |
| 76 | UK_IOCTL=TRUE |
| 77 | UK_MINOR_DEV=254 |
| 78 | |
| 79 | #API_LOCK=FALSE or not define API_LOCK, API_LOCK will not be included in SSDK |
| 80 | API_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 |
| 83 | REG_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 |
| 88 | IN_ACL=TRUE |
| 89 | IN_FDB=TRUE |
| 90 | IN_IGMP=TRUE |
| 91 | IN_LEAKY=TRUE |
| 92 | IN_LED=TRUE |
| 93 | IN_MIB=TRUE |
| 94 | IN_MIRROR=TRUE |
| 95 | IN_MISC=TRUE |
| 96 | IN_PORTCONTROL=TRUE |
| 97 | IN_PORTVLAN=TRUE |
| 98 | IN_QOS=TRUE |
| 99 | IN_RATE=TRUE |
| 100 | IN_STP=TRUE |
| 101 | IN_VLAN=TRUE |
| 102 | IN_REDUCED_ACL=FALSE |
| 103 | IN_COSMAP=TRUE |
| 104 | IN_IP=TRUE |
| 105 | IN_NAT=TRUE |
| 106 | IN_TRUNK=TRUE |
| 107 | IN_SEC=TRUE |
| 108 | IN_NAT_HELPER=FALSE |
| 109 | IN_INTERFACECONTROL=TRUE |
| 110 | IN_MACBLOCK=FALSE |