add SoC support to madwifi
[openwrt.git] / package / pwc / Makefile
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
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=pwc
13 PKG_VERSION:=10.0.12-rc1
14 PKG_RELEASE:=1
15
16 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_SOURCE_URL:=http://www.saillard.org/linux/pwc/files/
19 PKG_MD5SUM:=8763f3d6fd0f9738ef9854de205a126d
20 PKG_CAT:=bzcat
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/kmod-pwc
25 SECTION:=kernel
26 CATEGORY:=Kernel drivers
27 DEPENDS:=@BROKEN @LINUX_2_6
28 TITLE:=USB Philips camera driver
29 URL:=http://www.saillard.org/linux/pwc/
30 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(LINUX_DIR) \
35 PATH="$(TARGET_PATH)" \
36 KVER="$(LINUX_VERSION)" \
37 KSRC="$(LINUX_DIR)" \
38 SUBDIRS="$(PKG_BUILD_DIR)" \
39 KERNEL_DIR="$(KERNEL_DIR)" \
40 ARCH="$(LINUX_KARCH)" \
41 CROSS_COMPILE="$(TARGET_CROSS)" \
42 modules
43 endef
44
45 define Package/kmod-pwc/install
46 mkdir -p $(1)/etc/modules.d
47 $(INSTALL_DATA) ./files/pwc.modules $(1)/etc/modules.d/70-pwc
48 $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
49 $(CP) $(PKG_BUILD_DIR)/pwc.$(LINUX_KMOD_SUFFIX) \
50 $(1)/lib/modules/$(LINUX_VERSION)/
51 endef
52
53 $(eval $(call BuildPackage,kmod-pwc))
This page took 0.043747 seconds and 5 git commands to generate.