Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #
  2. # Copyright (C) 2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ltq-adsl-fw
  9. PKG_VERSION:=0.1
  10. PKG_RELEASE:=1
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/ltq-dsl-fw-$(PKG_VERSION)
  12. PKG_SOURCE:=ltq-dsl-fw-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
  14. PKG_MD5SUM:=4700a36b66b955b4c5544227267356f4
  15. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/kmod-ltq-adsl-fw-template
  18. TITLE+=Firmware Annex-$(1) $(2)
  19. SECTION:=sys
  20. CATEGORY:=Kernel modules
  21. SUBMENU:=Network Devices
  22. VARIANT:= $(2)-fw-$(1)
  23. SOC:=$(2)
  24. ANNEX:=$(1)
  25. URL:=http://www.lantiq.com/
  26. DEPENDS:=@TARGET_lantiq_$(3) +kmod-ltq-adsl-$(2)
  27. endef
  28. Package/kmod-ltq-adsl-danube-fw-a=$(call Package/kmod-ltq-adsl-fw-template,a,danube,xway)
  29. Package/kmod-ltq-adsl-danube-fw-b=$(call Package/kmod-ltq-adsl-fw-template,b,danube,xway)
  30. Package/kmod-ltq-adsl-ar9-fw-a=$(call Package/kmod-ltq-adsl-fw-template,a,ar9,xway)
  31. Package/kmod-ltq-adsl-ar9-fw-b=$(call Package/kmod-ltq-adsl-fw-template,b,ar9,xway)
  32. Package/kmod-ltq-adsl-ase-fw-a=$(call Package/kmod-ltq-adsl-fw-template,a,ase,ase)
  33. Package/kmod-ltq-adsl-ase-fw-b=$(call Package/kmod-ltq-adsl-fw-template,b,ase,ase)
  34. define Build/Compile
  35. endef
  36. define Package/kmod-ltq-adsl-$(BUILD_VARIANT)/install
  37. $(INSTALL_DIR) $(1)/lib/firmware/
  38. $(CP) $(PKG_BUILD_DIR)/$(FW_NAME)/ltq-dsl-fw-$(ANNEX)-$(SOC).bin $(1)/lib/firmware/
  39. ln -s /lib/firmware/$(FW_NAME)/ltq-dsl-fw-$(ANNEX)-$(SOC).bin $(1)/lib/firmware/adsl.bin
  40. endef
  41. $(eval $(call BuildPackage,kmod-ltq-adsl-danube-fw-a))
  42. $(eval $(call BuildPackage,kmod-ltq-adsl-danube-fw-b))
  43. $(eval $(call BuildPackage,kmod-ltq-adsl-ase-fw-a))
  44. $(eval $(call BuildPackage,kmod-ltq-adsl-ase-fw-b))
  45. $(eval $(call BuildPackage,kmod-ltq-adsl-ar9-fw-a))
  46. $(eval $(call BuildPackage,kmod-ltq-adsl-ar9-fw-b))