3 include $(TOPDIR
)/rules.mk
4 include $(TOPDIR
)/package
/kernel.mk
6 PKG_NAME
:= kmod-switch
8 PKG_BUILD_DIR
:= $(KERNEL_BUILD_DIR
)/$(PKG_NAME
)
10 include $(TOPDIR
)/package
/rules.mk
14 mkdir
-p
$(PKG_BUILD_DIR
)
15 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
19 $(MAKE
) -C
"$(LINUX_DIR)" \
20 CROSS_COMPILE
="$(TARGET_CROSS)" \
21 ARCH
="$(LINUX_KARCH)" \
22 PATH
="$(TARGET_PATH)" \
23 SUBDIRS
="$(PKG_BUILD_DIR)" \
24 EXTRA_CFLAGS
="-DBCMGPIO2" \
28 define Package
/kmod-switch
31 DEPENDS
:=@LINUX_2_6_BRCM||LINUX_2_4_BRCM
34 DESCRIPTION
:=Switch drivers for ADM6996L and BCM53XX RoboSwitch
35 VERSION
:=$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
38 define Package
/kmod-switch
/install
39 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
40 $(CP
) $(PKG_BUILD_DIR
)/*.
$(LINUX_KMOD_SUFFIX
) \
41 $(1)/lib
/modules
/$(LINUX_VERSION
)
44 $(eval
$(call BuildPackage
,kmod-switch
))