3a07121107ce675a57f9ee930f2ae1dea80d2b03
[openwrt.git] / package / system / vsc73x5-ucode / Makefile
1 #
2 # Copyright (C) 2010 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:=vsc73x5-ucode
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
14
15 PKG_SOURCE:=vsc73x5-ucode.tar.bz2
16 PKG_BUILD_DIR:=$(BUILD_DIR)/vsc73x5-ucode
17
18 PKG_MD5SUM:=b32e3debcd118f263c79199a7b5afa68
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/vsc73x5-defaults
23   SECTION:=net
24   CATEGORY:=Network
25   DEPENDS:=@TARGET_ar71xx
26   DEFAULT:=n
27   TITLE:=$(1)
28 endef
29
30 define Package/vsc73x5/install
31         $(INSTALL_DIR) $(1)/lib/firmware
32         $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(2) $(1)/lib/firmware/$(3)
33 endef
34
35 define Package/vsc7385-ucode-ap83
36   $(call Package/vsc73x5-defaults,Vitesse VSC7385 microcode for the Atheros AP83 boards)
37 endef
38
39 define Package/vsc7385-ucode-ap83/description
40   This package contains the Atheros AP83 board specific microcode for
41   the Vitesse VSC7385 ethernet switch.
42 endef
43
44 define Package/vsc7385-ucode-ap83/install
45   $(call Package/vsc73x5/install,$(1),g5_Plus1_2_31_unmanaged_Atheros_v3.bin,vsc7385_ucode_ap83.bin)
46 endef
47
48 define Package/vsc7395-ucode-ap83
49   $(call Package/vsc73x5-defaults, Vitesse VSC7395 microcode for the Atheros AP83 boards)
50 endef
51
52 define Package/vsc7395-ucode-ap83/description
53   This package contains the Atheros AP83 board specific microcode for
54   the Vitesse VSC7395 ethernet switch.
55 endef
56
57 define Package/vsc7395-ucode-ap83/install
58   $(call Package/vsc73x5/install,$(1),g5_Plus1_2_31_unmanaged_Atheros_v4.bin,vsc7395_ucode_ap83.bin)
59 endef
60
61 define Package/vsc7385-ucode-pb44
62   $(call Package/vsc73x5-defaults, Vitesse VSC7395 microcode for the Atheros PB44 boards)
63 endef
64
65 define Package/vsc7385-ucode-pb44/description
66   This package contains the Atheros PB44 board specific microcode for
67   the Vitesse VSC7385 ethernet switch.
68 endef
69
70 define Package/vsc7385-ucode-pb44/install
71   $(call Package/vsc73x5/install,$(1),g5_Plus1_2_29b_unmanaged_Atheros_v5.bin,vsc7385_ucode_pb44.bin)
72 endef
73
74 define Package/vsc7395-ucode-pb44
75   $(call Package/vsc73x5-defaults, Vitesse VSC7395 microcode for the Atheros PB44 boards)
76 endef
77
78 define Package/vsc7395-ucode-pb44/description
79   This package contains the Atheros AP83 board specific microcode for
80   the Vitesse VSC7395 ethernet switch.
81 endef
82
83 define Package/vsc7395-ucode-pb44/install
84   $(call Package/vsc73x5/install,$(1),g5e_Plus1_2_29a_unmanaged_Atheros_v3.bin,vsc7395_ucode_pb44.bin)
85 endef
86
87 define Build/Compile
88
89 endef
90
91 $(eval $(call BuildPackage,vsc7385-ucode-ap83))
92 $(eval $(call BuildPackage,vsc7395-ucode-ap83))
93 $(eval $(call BuildPackage,vsc7385-ucode-pb44))
94 $(eval $(call BuildPackage,vsc7395-ucode-pb44))