lantiq: update packages for v3.10
[openwrt/svn-archive/archive.git] / package / kernel / lantiq / ltq-hcd / Makefile
1 # Copyright (C) 2012 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5
6 include $(TOPDIR)/rules.mk
7 include $(INCLUDE_DIR)/kernel.mk
8
9 PKG_NAME:=ltq-hcd
10 PKG_RELEASE:=1
11 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-hcd-$(BUILD_VARIANT)
12
13 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/ltq-hcd-template
18 SECTION:=sys
19 CATEGORY:=Kernel modules
20 SUBMENU:=USB Support
21 TITLE:=USB driver for $(1)
22 URL:=http://www.lantiq.com/
23 VARIANT:=$(1)
24 DEPENDS:=@TARGET_lantiq_$(2) +kmod-usb-core
25 FILES:=$(PKG_BUILD_DIR)/ltq_hcd_$(1).ko
26 AUTOLOAD:=$(call AutoProbe,ltq_hcd_$(1),1)
27 endef
28
29 KernelPackage/ltq-hcd-ase=$(call KernelPackage/ltq-hcd-template,ase,ase)
30 KernelPackage/ltq-hcd-danube=$(call KernelPackage/ltq-hcd-template,danube,xway)
31 KernelPackage/ltq-hcd-ar9=$(call KernelPackage/ltq-hcd-template,ar9,xway)
32 KernelPackage/ltq-hcd-vr9=$(call KernelPackage/ltq-hcd-template,vr9,xrx200)
33 KernelPackage/ltq-hcd-ar10=$(call KernelPackage/ltq-hcd-template,ar10,xrx200)
34
35 define Build/Prepare
36 $(INSTALL_DIR) $(PKG_BUILD_DIR)
37 $(CP) ./src/* $(PKG_BUILD_DIR)
38 endef
39
40 define Build/Configure
41 endef
42
43 define Build/Compile
44 cd $(LINUX_DIR); \
45 ARCH=mips CROSS_COMPILE="$(KERNEL_CROSS)" \
46 $(MAKE) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
47 endef
48
49 $(eval $(call KernelPackage,ltq-hcd-ase))
50 $(eval $(call KernelPackage,ltq-hcd-danube))
51 $(eval $(call KernelPackage,ltq-hcd-ar9))
52 $(eval $(call KernelPackage,ltq-hcd-vr9))
53 #$(eval $(call KernelPackage,ltq-hcd-ar10))