3 include $(TOPDIR
)/rules.mk
4 include $(INCLUDE_DIR
)/kernel.mk
9 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)
11 include $(INCLUDE_DIR
)/package.mk
13 define Package
/kmod-switch
16 DEPENDS
:=@LINUX_2_6_BRCM||LINUX_2_4_BRCM
19 DESCRIPTION
:=Switch drivers for ADM6996L and BCM53XX RoboSwitch
20 VERSION
:=$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
24 mkdir
-p
$(PKG_BUILD_DIR
)
25 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
29 $(MAKE
) -C
"$(LINUX_DIR)" \
30 CROSS_COMPILE
="$(TARGET_CROSS)" \
31 ARCH
="$(LINUX_KARCH)" \
32 PATH
="$(TARGET_PATH)" \
33 SUBDIRS
="$(PKG_BUILD_DIR)" \
34 EXTRA_CFLAGS
="-DBCMGPIO2" \
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
))