source: branches/backfire/package/vsc73x5-ucode/Makefile @ 21275

Last change on this file since 21275 was 21275, checked in by nbd, 7 years ago

[backfire] merge vsc73x5-ucode download patch from r21274

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