ltq-atm: remove xrx200 special handling
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-atm / 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-atm
10 PKG_RELEASE:=2
11 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-atm-$(BUILD_VARIANT)
12
13 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
14 PKG_LICENSE:=GPL-2.0+
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define KernelPackage/ltq-atm-template
19 SECTION:=sys
20 CATEGORY:=Kernel modules
21 SUBMENU:=Network Devices
22 TITLE:=atm driver for $(1)
23 URL:=http://www.lantiq.com/
24 VARIANT:=$(1)
25 DEPENDS:=@$(2) +kmod-atm +br2684ctl
26 FILES:=$(PKG_BUILD_DIR)/ltq_atm_$(1).ko
27 endef
28
29 KernelPackage/ltq-atm-danube=$(call KernelPackage/ltq-atm-template,danube,(TARGET_lantiq_xway||TARGET_lantiq_xway_legacy))
30 KernelPackage/ltq-atm-ar9=$(call KernelPackage/ltq-atm-template,ar9,TARGET_lantiq_xway)
31 KernelPackage/ltq-atm-ase=$(call KernelPackage/ltq-atm-template,ase,TARGET_lantiq_ase)
32 KernelPackage/ltq-atm-vr9=$(call KernelPackage/ltq-atm-template,vr9,TARGET_lantiq_xrx200)
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38 cd $(LINUX_DIR); \
39 ARCH=mips CROSS_COMPILE="$(KERNEL_CROSS)" \
40 $(MAKE) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
41 endef
42
43 $(eval $(call KernelPackage,ltq-atm-danube))
44 $(eval $(call KernelPackage,ltq-atm-ase))
45 $(eval $(call KernelPackage,ltq-atm-ar9))
46 $(eval $(call KernelPackage,ltq-atm-vr9))