lantiq: Tune the XWAY subtarget cflags
[openwrt.git] / package / platform / lantiq / ltq-adsl-fw / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ltq-adsl-fw
11 PKG_VERSION:=0.1
12 PKG_RELEASE:=1
13
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>
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/kmod-ltq-adsl-fw-template
23   TITLE+=Firmware Annex-$(1) $(2)
24   SECTION:=sys
25   CATEGORY:=Kernel modules
26   SUBMENU:=Network Devices
27   VARIANT:= $(2)-fw-$(1)
28   SOC:=$(2)
29   ANNEX:=$(1)
30   URL:=http://www.lantiq.com/
31   DEPENDS:=@TARGET_lantiq_$(3) +kmod-ltq-adsl-$(2)
32 endef
33
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)
40
41 define Build/Compile
42 endef
43
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
48 endef
49
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))