Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. include $(TOPDIR)/rules.mk
  6. include $(INCLUDE_DIR)/kernel.mk
  7. PKG_NAME:=ltq-deu
  8. PKG_RELEASE:=1
  9. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-deu-$(BUILD_VARIANT)
  10. PKG_MAINTAINER:=John Crispin <john@phrozen.org>
  11. PKG_LICENSE:=GPL-2.0+
  12. include $(INCLUDE_DIR)/package.mk
  13. define KernelPackage/ltq-deu-template
  14. SECTION:=sys
  15. CATEGORY:=Kernel modules
  16. SUBMENU:=Cryptographic API modules
  17. TITLE:=deu driver for $(1)
  18. URL:=http://www.lantiq.com/
  19. VARIANT:=$(1)
  20. DEPENDS:=@TARGET_lantiq_$(2) +kmod-crypto-manager
  21. FILES:=$(PKG_BUILD_DIR)/ltq_deu_$(1).ko
  22. AUTOLOAD:=$(call AutoProbe,ltq_deu_$(1))
  23. endef
  24. KernelPackage/ltq-deu-danube=$(call KernelPackage/ltq-deu-template,danube,xway)
  25. KernelPackage/ltq-deu-ar9=$(call KernelPackage/ltq-deu-template,ar9,xway)
  26. KernelPackage/ltq-deu-vr9=$(call KernelPackage/ltq-deu-template,vr9,xrx200)
  27. define Build/Configure
  28. endef
  29. define Build/Compile
  30. cd $(LINUX_DIR); \
  31. ARCH=mips CROSS_COMPILE="$(KERNEL_CROSS)" \
  32. $(MAKE) BUILD_VARIANT=$(BUILD_VARIANT) M=$(PKG_BUILD_DIR) V=1 modules
  33. endef
  34. $(eval $(call KernelPackage,ltq-deu-danube))
  35. $(eval $(call KernelPackage,ltq-deu-ar9))
  36. $(eval $(call KernelPackage,ltq-deu-vr9))