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.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)
17 include $(INCLUDE_DIR
)/package.mk
19 define KernelPackage
/switch
20 SUBMENU
:=Other modules
21 DEPENDS
:=@LINUX_2_6_BRCM||LINUX_2_4_BRCM
24 This package contains switch drivers for ADM6996L and BCM53XX RoboSwitch.
25 VERSION
:=$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
27 $(PKG_BUILD_DIR
)/switch-core.
$(LINUX_KMOD_SUFFIX
) \
28 $(PKG_BUILD_DIR
)/switch-adm.
$(LINUX_KMOD_SUFFIX
) \
29 $(PKG_BUILD_DIR
)/switch-robo.
$(LINUX_KMOD_SUFFIX
)
30 AUTOLOAD
:=$(call AutoLoad
,20,switch-core switch-robo switch-adm
)
34 mkdir
-p
$(PKG_BUILD_DIR
)
35 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
39 $(MAKE
) -C
"$(LINUX_DIR)" \
40 CROSS_COMPILE
="$(TARGET_CROSS)" \
41 ARCH
="$(LINUX_KARCH)" \
42 SUBDIRS
="$(PKG_BUILD_DIR)" \
43 EXTRA_CFLAGS
="-DBCMGPIO2" \
47 define KernelPackage
/switch
/install
48 $(INSTALL_DIR
) $(1)/lib
/network
/
49 $(INSTALL_BIN
) .
/files
/switch.sh
$(1)/lib
/network
/
52 $(eval
$(call KernelPackage
,switch
))