3 include $(TOPDIR
)/rules.mk
4 include $(INCLUDE_DIR
)/kernel.mk
9 PKG_MD5SUM
:=4160e03c408ac254111febacf058b88a
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_SOURCE_URL
:=http
://mxhaard.free.fr
/spca50x
/Download
/
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 include $(INCLUDE_DIR
)/package.mk
18 #FIXME: add proper dependency handling on kmod-usb-core & kmod-videodev packages
19 define Package
/kmod-spca5xx
22 DEPENDS
:=@PACKAGE_KMOD_USB
&&PACKAGE_KMOD_VIDEODEV
23 TITLE
:=Driver for SPCA5xx based USB cameras
24 DESCRIPTION
:=Driver for SPCA5xx based USB cameras
25 URL
:=http
://mxhaard.free.fr
/
26 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
30 $(MAKE
) -C
$(LINUX_DIR
) \
31 ARCH
="$(LINUX_KARCH)" \
32 CROSS_COMPILE
="$(TARGET_CROSS)" \
33 KERNELVERSION
="$(KERNEL)" \
34 SUBDIRS
="$(PKG_BUILD_DIR)" \
38 define Package
/kmod-spca5xx
/install
39 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
40 $(CP
) $(PKG_BUILD_DIR
)/spca5xx.
$(LINUX_KMOD_SUFFIX
) \
41 $(1)/lib
/modules
/$(LINUX_VERSION
)/
44 $(eval
$(call BuildPackage
,kmod-spca5xx
))