[x86] grub: Natively build grub only on x86 linux hosts, cross compile everywhere...
[openwrt.git] / package / linux-uvc / Makefile
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
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=linux-uvc
13 PKG_REV:=215
14 PKG_VERSION:=r$(PKG_REV)
15 PKG_RELEASE:=1
16
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_SOURCE_URL:=http://svn.berlios.de/svnroot/repos/linux-uvc/linux-uvc/trunk/
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=$(PKG_REV)
21 PKG_SOURCE_PROTO:=svn
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define KernelPackage/video-uvc
26 SUBMENU:=Video Support
27 TITLE:=USB Video Class (UVC) support
28 URL:=http://linux-uvc.berlios.de/
29 DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core kmod-video-core
30 FILES:=$(PKG_BUILD_DIR)/uvcvideo.$(LINUX_KMOD_SUFFIX)
31 AUTOLOAD:=$(call AutoLoad,90,uvcvideo)
32 endef
33
34 define Build/Compile
35 echo "#define DRIVER_VERSION \"SVN $(PKG_VERSION)\"" > "$(PKG_BUILD_DIR)/version.h"
36 $(MAKE) -C $(LINUX_DIR) \
37 ARCH="$(LINUX_KARCH)" \
38 CROSS_COMPILE="$(TARGET_CROSS)" \
39 SUBDIRS="$(PKG_BUILD_DIR)" \
40 modules
41 endef
42
43 $(eval $(call KernelPackage,video-uvc))
This page took 0.043217 seconds and 5 git commands to generate.