Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #
  2. # Copyright (C) 2006 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:=pwc
  11. PKG_VERSION:=10.0.12-rc1
  12. PKG_RELEASE:=1
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  14. PKG_SOURCE_URL:=http://www.saillard.org/linux/pwc/files/
  15. PKG_MD5SUM:=8763f3d6fd0f9738ef9854de205a126d
  16. include $(INCLUDE_DIR)/package.mk
  17. define KernelPackage/pwc
  18. TITLE:=USB Philips camera driver
  19. DESCRIPTION:=Kernel support for USB Philips camera
  20. SUBMENU:=USB Support
  21. DEPENDS:=@BROKEN @LINUX_2_6 @VIDEO_SUPPORT
  22. VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
  23. FILES:=$(PKG_BUILD_DIR)/pwc.$(LINUX_KMOD_SUFFIX)
  24. AUTOLOAD:=$(call AutoLoad,70,$(shell cat ./files/pwc.modules))
  25. endef
  26. define Build/Compile
  27. $(MAKE) -C $(LINUX_DIR) \
  28. PATH="$(TARGET_PATH)" \
  29. KVER="$(LINUX_VERSION)" \
  30. KSRC="$(LINUX_DIR)" \
  31. SUBDIRS="$(PKG_BUILD_DIR)" \
  32. KERNEL_DIR="$(KERNEL_DIR)" \
  33. ARCH="$(LINUX_KARCH)" \
  34. CROSS_COMPILE="$(TARGET_CROSS)" \
  35. modules
  36. endef
  37. $(eval $(call KernelPackage,pwc))