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