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
16 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=http
://mxhaard.free.fr
/spca50x
/Download
/
19 PKG_MD5SUM
:=8fcec25715aea10f9ebec5728c37e752
22 include $(INCLUDE_DIR
)/package.mk
24 #FIXME: add proper dependency handling on kmod-usb-core & kmod-videodev packages
25 define Package
/kmod-spca5xx
27 CATEGORY
:=Kernel drivers
28 DEPENDS
:=@PACKAGE_KMOD_USB
&&PACKAGE_KMOD_VIDEODEV
29 TITLE
:=Driver for SPCA5xx based USB cameras
30 URL
:=http
://mxhaard.free.fr
/
31 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
35 $(MAKE
) -C
$(LINUX_DIR
) \
36 ARCH
="$(LINUX_KARCH)" \
37 CROSS_COMPILE
="$(TARGET_CROSS)" \
38 KERNELVERSION
="$(KERNEL)" \
39 KERNEL_VERSION
="$(LINUX_VERSION)" \
40 KERNELDIR
="$(LINUX_DIR)" \
41 SUBDIRS
="$(PKG_BUILD_DIR)" \
45 define Package
/kmod-spca5xx
/install
46 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
47 $(CP
) $(PKG_BUILD_DIR
)/spca5xx.
$(LINUX_KMOD_SUFFIX
) \
48 $(1)/lib
/modules
/$(LINUX_VERSION
)/
51 $(eval
$(call BuildPackage
,kmod-spca5xx
))