2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 8694 2007-09-08 19:55:42Z nbd $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_NAME
:=broadcom-57xx
15 include $(INCLUDE_DIR
)/package.mk
17 define KernelPackage
/brcm-57xx
18 SUBMENU
:=Network Devices
19 DEPENDS
:=@TARGET_brcm_2_4
+kmod-switch
20 TITLE
:=Broadcom
57xx ethernet support
21 FILES
:=$(PKG_BUILD_DIR
)/bcm57xx.
$(LINUX_KMOD_SUFFIX
)
22 AUTOLOAD
:=$(call AutoLoad
,30,bcm57xx
)
26 mkdir
-p
$(PKG_BUILD_DIR
)
27 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
30 ifeq ($(BOARD
),brcm-2.4
)
31 BUILDFLAGS
= -DBCMDRIVER
-I
$(LINUX_DIR
)/arch
/mips
/bcm947xx
/include -I
$(STAGING_DIR
)/usr
/include
32 BUILDFLAGS
+= -DDBG
=0 -DBCM_PROC_FS
=1 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT
=256 -DNICE_SUPPORT
33 BUILDFLAGS
+= -DPCIX_TARGET_WORKAROUND
=1 -DINCLUDE_TBI_SUPPORT
=1 -DINCLUDE_5701_AX_FIX
=1
37 $(MAKE
) -C
"$(LINUX_DIR)" \
38 CROSS_COMPILE
="$(TARGET_CROSS)" \
39 ARCH
="$(LINUX_KARCH)" \
40 SUBDIRS
="$(PKG_BUILD_DIR)" \
41 EXTRA_CFLAGS
="$(BUILDFLAGS)" \
45 define KernelPackage
/brcm-57xx
/install
46 $(call Package
/brcm-57xx
/install/Default
,$(1))
47 #$(INSTALL_DIR) $(1)/etc/modules.d
48 #echo "bcm57xx activate_gpio=1" > $(1)/etc/modules.d/30-bcm57xx
51 $(eval
$(call KernelPackage
,brcm-57xx
))