Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 1 | CPU=mips |
| 2 | |
| 3 | OS=linux |
| 4 | |
Yue Lun | dd6e3d9 | 2013-10-25 13:03:31 +0800 | [diff] [blame^] | 5 | OS_VER=3_4 |
| 6 | OS_SUB=31 |
| 7 | CHIP_TYPE=ISISC |
| 8 | |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 9 | ifndef OS_VER |
| 10 | OS_VER=2_6 |
| 11 | endif |
| 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 |
| 24 | ifndef TOOL_PATH |
| 25 | TOOL_PATH=/disk/ap81fus/sw/build/gcc-3.4.4-2.16.1/build_mips/bin |
| 26 | endif |
| 27 | ifndef SYS_PATH |
| 28 | SYS_PATH=/disk/ap81fus/sw/linux/kernels/mips-linux-2.6.15 |
| 29 | endif |
| 30 | ifeq ($(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 |
| 32 | endif |
| 33 | |
| 34 | |
| 35 | #db120 |
| 36 | ifeq ($(BOARD_TYPE),db12x) |
| 37 | OS_SUB=31 |
| 38 | GCC_VER=4 |
| 39 | TOOL_PATH=$(TOPDIR)/build/gcc-4.3.3/build_mips/staging_dir/usr/bin |
| 40 | SYS_PATH=$(TOPDIR)/linux/kernels/mips-linux-2.6.31 |
| 41 | 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 |
| 42 | endif |
| 43 | |
| 44 | ifeq ($(ARCH), arm) |
| 45 | CPU_CFLAG=-D__LINUX_ARM_ARCH__=7 -DMODULE -fno-common -DCONFIG_MMU |
| 46 | endif |
| 47 | |
| 48 | ifeq ($(BOARD_TYPE), ap136) |
| 49 | OS_SUB=31 |
| 50 | GCC_VER=4 |
| 51 | TOOL_PATH=$(TOPDIR)/build/gcc-4.3.3/build_mips/staging_dir/usr/bin |
| 52 | SYS_PATH=$(TOPDIR)/linux/kernels/mips-linux-2.6.31 |
| 53 | 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 |
| 54 | endif |
| 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 | |
| 64 | KERNEL_MODE=TRUE |
| 65 | #compatiable with OpenWRT |
| 66 | ifeq ($(SWITCH_SSDK_MODE),user) |
| 67 | KERNEL_MODE=FLASE |
| 68 | endif |
| 69 | |
| 70 | #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^] | 71 | FAL=TRUE |
Yue Lun | 03a82d9 | 2013-10-21 10:15:02 +0800 | [diff] [blame] | 72 | |
| 73 | #CHIP_TYPE can be defined as ATHENA, GARUDA, SHIVA, HORUS, ISIS, ISISC and ALL_CHIP(ALL_CHIP means GARUDA, SHIVA, HORUS and ISIS) |
| 74 | CHIP_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 |
| 78 | UK_IF=TRUE |
| 79 | #UK_IOCTL=TRUE define user-kernel space communication based on ioctl |
| 80 | UK_IOCTL=TRUE |
| 81 | UK_MINOR_DEV=254 |
| 82 | |
| 83 | #API_LOCK=FALSE or not define API_LOCK, API_LOCK will not be included in SSDK |
| 84 | API_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 |
| 87 | REG_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 |
| 92 | IN_ACL=TRUE |
| 93 | IN_FDB=TRUE |
| 94 | IN_IGMP=TRUE |
| 95 | IN_LEAKY=TRUE |
| 96 | IN_LED=TRUE |
| 97 | IN_MIB=TRUE |
| 98 | IN_MIRROR=TRUE |
| 99 | IN_MISC=TRUE |
| 100 | IN_PORTCONTROL=TRUE |
| 101 | IN_PORTVLAN=TRUE |
| 102 | IN_QOS=TRUE |
| 103 | IN_RATE=TRUE |
| 104 | IN_STP=TRUE |
| 105 | IN_VLAN=TRUE |
| 106 | IN_REDUCED_ACL=FALSE |
| 107 | IN_COSMAP=TRUE |
| 108 | IN_IP=TRUE |
| 109 | IN_NAT=TRUE |
| 110 | IN_TRUNK=TRUE |
| 111 | IN_SEC=TRUE |
| 112 | IN_NAT_HELPER=FALSE |
| 113 | IN_INTERFACECONTROL=TRUE |
| 114 | IN_MACBLOCK=FALSE |