1 # Copyright (C) 2012 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
6 include $(TOPDIR)/rules.mk
7 include $(INCLUDE_DIR)/kernel.mk
11 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-adsl-mei-$(BUILD_VARIANT)/
13 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
14 PKG_CHECK_FORMAT_SECURITY:=0
16 include $(INCLUDE_DIR)/package.mk
18 define KernelPackage/ltq-adsl-mei-template
20 CATEGORY:=Kernel modules
21 SUBMENU:=Network Devices
22 TITLE:=mei driver for $(1)
23 URL:=http://www.lantiq.com/
26 FILES:=$(PKG_BUILD_DIR)/drv_mei_cpe.ko
27 AUTOLOAD:=$(call AutoLoad,50,drv_mei_cpe)
30 KernelPackage/ltq-adsl-danube-mei=$(call KernelPackage/ltq-adsl-mei-template,danube,(TARGET_lantiq_xway||TARGET_lantiq_xway_legacy))
31 KernelPackage/ltq-adsl-ar9-mei=$(call KernelPackage/ltq-adsl-mei-template,ar9,TARGET_lantiq_xway)
32 KernelPackage/ltq-adsl-ase-mei=$(call KernelPackage/ltq-adsl-mei-template,ase,TARGET_lantiq_ase)
34 define Build/Configure
39 ARCH=mips CROSS_COMPILE="$(KERNEL_CROSS)" \
40 $(MAKE) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR)/ V=1 modules
43 $(eval $(call KernelPackage,ltq-adsl-danube-mei))
44 $(eval $(call KernelPackage,ltq-adsl-ase-mei))
45 $(eval $(call KernelPackage,ltq-adsl-ar9-mei))