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-deu-$(BUILD_VARIANT)
13 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
15 include $(INCLUDE_DIR)/package.mk
17 define KernelPackage/ltq-deu-template
19 CATEGORY:=Kernel modules
20 SUBMENU:=Cryptographic API modules
21 TITLE:=deu driver for $(1)
22 URL:=http://www.lantiq.com/
24 DEPENDS:=@TARGET_lantiq_$(2) +kmod-crypto-manager
25 FILES:=$(PKG_BUILD_DIR)/ltq_deu_$(1).ko
26 AUTOLOAD:=$(call AutoProbe,ltq_deu_$(1))
29 KernelPackage/ltq-deu-danube=$(call KernelPackage/ltq-deu-template,danube,xway)
30 KernelPackage/ltq-deu-ar9=$(call KernelPackage/ltq-deu-template,ar9,xway)
31 KernelPackage/ltq-deu-vr9=$(call KernelPackage/ltq-deu-template,vr9,xrx200)
33 define Build/Configure
38 ARCH=mips CROSS_COMPILE="$(KERNEL_CROSS)" \
39 $(MAKE) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
42 $(eval $(call KernelPackage,ltq-deu-danube))
43 $(eval $(call KernelPackage,ltq-deu-ar9))
44 $(eval $(call KernelPackage,ltq-deu-vr9))