2 # Copyright (C) 2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_BUILD_DIR:=$(BUILD_DIR)/ltq-dsl-fw-$(PKG_VERSION)
15 PKG_SOURCE:=ltq-dsl-fw-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
17 PKG_MD5SUM:=4700a36b66b955b4c5544227267356f4
18 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
20 include $(INCLUDE_DIR)/package.mk
22 define Package/kmod-ltq-adsl-fw-template
23 TITLE+=Firmware Annex-$(1) $(2)
25 CATEGORY:=Kernel modules
26 SUBMENU:=Network Devices
27 VARIANT:= $(2)-fw-$(1)
30 URL:=http://www.lantiq.com/
31 DEPENDS:=@TARGET_lantiq_$(3) +kmod-ltq-adsl-$(2)
34 Package/kmod-ltq-adsl-danube-fw-a=$(call Package/kmod-ltq-adsl-fw-template,a,danube,xway)
35 Package/kmod-ltq-adsl-danube-fw-b=$(call Package/kmod-ltq-adsl-fw-template,b,danube,xway)
36 Package/kmod-ltq-adsl-ar9-fw-a=$(call Package/kmod-ltq-adsl-fw-template,a,ar9,xway)
37 Package/kmod-ltq-adsl-ar9-fw-b=$(call Package/kmod-ltq-adsl-fw-template,b,ar9,xway)
38 Package/kmod-ltq-adsl-ase-fw-a=$(call Package/kmod-ltq-adsl-fw-template,a,ase,ase)
39 Package/kmod-ltq-adsl-ase-fw-b=$(call Package/kmod-ltq-adsl-fw-template,b,ase,ase)
44 define Package/kmod-ltq-adsl-$(BUILD_VARIANT)/install
45 $(INSTALL_DIR) $(1)/lib/firmware/
46 $(CP) $(PKG_BUILD_DIR)/$(FW_NAME)/ltq-dsl-fw-$(ANNEX)-$(SOC).bin $(1)/lib/firmware/
47 ln -s /lib/firmware/$(FW_NAME)/ltq-dsl-fw-$(ANNEX)-$(SOC).bin $(1)/lib/firmware/adsl.bin
50 $(eval $(call BuildPackage,kmod-ltq-adsl-danube-fw-a))
51 $(eval $(call BuildPackage,kmod-ltq-adsl-danube-fw-b))
52 $(eval $(call BuildPackage,kmod-ltq-adsl-ase-fw-a))
53 $(eval $(call BuildPackage,kmod-ltq-adsl-ase-fw-b))
54 $(eval $(call BuildPackage,kmod-ltq-adsl-ar9-fw-a))
55 $(eval $(call BuildPackage,kmod-ltq-adsl-ar9-fw-b))