2 # Copyright (C) 2007-2008 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_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://www.rastageeks.org
/downloads
/ov51x-jpeg
/ \
18 http
://www.rastageeks.org
/downloads
/ov51x-jpeg
/old-releases
/
19 PKG_MD5SUM
:=7de1f426a48bdb55218913e2d713f813
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/ov51x-jpeg
/Default
24 URL
:=http
://www.rastageeks.org
/ov51x-jpeg
/
27 define Package
/ov51x-jpeg-utils
28 $(call Package
/ov51x-jpeg
/Default
)
31 TITLE
:=OV51x based USB webcam utilities
32 DEPENDS
:=+kmod-video-ov51x-jpeg
35 define Package
/ov51x-jpeg-utils
/description
36 Utility programs for the video-ov51x kernel module
39 # XXX: remove @!TARGET_* later when we have USB support properly detected on all targets
40 define KernelPackage
/video-ov51x-jpeg
41 $(call Package
/ov51x-jpeg
/Default
)
42 SUBMENU
:=Video Support
43 TITLE
:=OV51x based USB webcam support
(JPEG
)
44 DEPENDS
:=@LINUX_2_6 @USB_SUPPORT
+kmod-usb-core kmod-video-core @
!TARGET_atheros @
!TARGET_uml
45 FILES
:=$(PKG_BUILD_DIR
)/ov51x-jpeg.
$(LINUX_KMOD_SUFFIX
)
46 AUTOLOAD
:=$(call AutoLoad
,70,ov51x-jpeg
)
49 define KernelPackage
/video-ov51x-jpeg
/description
50 Kernel module for OV51x based USB cameras
, with in-driver JPEG support.
53 ifneq ($(CONFIG_PACKAGE_kmod-video-ov51x-jpeg
),)
54 define Build
/Compile
/kmod
55 $(MAKE
) -C
$(LINUX_DIR
) \
56 ARCH
="$(LINUX_KARCH)" \
57 CROSS_COMPILE
="$(TARGET_CROSS)" \
58 SUBDIRS
="$(PKG_BUILD_DIR)" \
64 $(call Build
/Compile
/kmod
)
65 $(MAKE
) -C
$(PKG_BUILD_DIR
)/test \
66 CFLAGS
="$(TARGET_CFLAGS)" \
71 define Package
/ov51x-jpeg-utils
/install
72 $(INSTALL_DIR
) $(1)/usr
/bin
73 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/test/getjpeg
$(1)/usr
/bin
/
76 $(eval
$(call BuildPackage
,ov51x-jpeg-utils
))
77 $(eval
$(call KernelPackage
,video-ov51x-jpeg
))