Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # Copyright (C) 2007 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # $Id$
  8. include $(TOPDIR)/rules.mk
  9. include $(INCLUDE_DIR)/kernel.mk
  10. PKG_NAME:=linux-uvc
  11. PKG_REV:=215
  12. PKG_VERSION:=r$(PKG_REV)
  13. PKG_RELEASE:=1
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  15. PKG_SOURCE_URL:=http://svn.berlios.de/svnroot/repos/linux-uvc/linux-uvc/trunk/
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=$(PKG_REV)
  18. PKG_SOURCE_PROTO:=svn
  19. include $(INCLUDE_DIR)/package.mk
  20. define KernelPackage/video-uvc
  21. SUBMENU:=Video Support
  22. TITLE:=USB Video Class (UVC) support
  23. URL:=http://linux-uvc.berlios.de/
  24. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core kmod-video-core
  25. FILES:=$(PKG_BUILD_DIR)/uvcvideo.$(LINUX_KMOD_SUFFIX)
  26. AUTOLOAD:=$(call AutoLoad,90,uvcvideo)
  27. endef
  28. define Build/Compile
  29. echo "#define DRIVER_VERSION \"SVN $(PKG_VERSION)\"" > "$(PKG_BUILD_DIR)/version.h"
  30. $(MAKE) -C $(LINUX_DIR) \
  31. ARCH="$(LINUX_KARCH)" \
  32. CROSS_COMPILE="$(TARGET_CROSS)" \
  33. SUBDIRS="$(PKG_BUILD_DIR)" \
  34. modules
  35. endef
  36. $(eval $(call KernelPackage,video-uvc))