package/kernel: add dependencies on kmod-crc16 and kmod-rfkill to kmod-bluetooth...
[openwrt.git] / package / 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://www.tp-link.com/GPL
14
15 PKG_SOURCE:=WirelessNRouer_AP.tar.gz
16 PKG_BUILD_DIR:=$(BUILD_DIR)/vsc73x5-ucode
17
18 PKG_MD5SUM:=7dd6069a5f0e44cc9965fc7b43eb3046
19
20 UCODE_SRC_DIR:=u-boot/board/ar7100/common
21 UCODE_BUILD_DIR:=$(PKG_BUILD_DIR)/$(UCODE_SRC_DIR)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/vsc73x5-defaults
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=@TARGET_ar71xx
29 DEFAULT:=n
30 TITLE:=$(1)
31 endef
32
33 define Package/vsc73x5/install
34 $(INSTALL_DIR) $(1)/lib/firmware
35 $(INSTALL_DATA) $(UCODE_BUILD_DIR)/$(2) $(1)/lib/firmware/$(3)
36 endef
37
38 define Package/vsc7385-ucode-ap83
39 $(call Package/vsc73x5-defaults,Vitesse VSC7385 microcode for the Atheros AP83 boards)
40 endef
41
42 define Package/vsc7385-ucode-ap83/description
43 This package contains the Atheros AP83 board specific microcode for
44 the Vitesse VSC7385 ethernet switch.
45 endef
46
47 define Package/vsc7385-ucode-ap83/install
48 $(call Package/vsc73x5/install,$(1),g5_Plus1_2_31_unmanaged_Atheros_v3.bin,vsc7385_ucode_ap83.bin)
49 endef
50
51 define Package/vsc7395-ucode-ap83
52 $(call Package/vsc73x5-defaults, Vitesse VSC7395 microcode for the Atheros AP83 boards)
53 endef
54
55 define Package/vsc7395-ucode-ap83/description
56 This package contains the Atheros AP83 board specific microcode for
57 the Vitesse VSC7395 ethernet switch.
58 endef
59
60 define Package/vsc7395-ucode-ap83/install
61 $(call Package/vsc73x5/install,$(1),g5_Plus1_2_31_unmanaged_Atheros_v4.bin,vsc7395_ucode_ap83.bin)
62 endef
63
64 define Package/vsc7385-ucode-pb44
65 $(call Package/vsc73x5-defaults, Vitesse VSC7395 microcode for the Atheros PB44 boards)
66 endef
67
68 define Package/vsc7385-ucode-pb44/description
69 This package contains the Atheros PB44 board specific microcode for
70 the Vitesse VSC7385 ethernet switch.
71 endef
72
73 define Package/vsc7385-ucode-pb44/install
74 $(call Package/vsc73x5/install,$(1),g5_Plus1_2_29b_unmanaged_Atheros_v5.bin,vsc7385_ucode_pb44.bin)
75 endef
76
77 define Package/vsc7395-ucode-pb44
78 $(call Package/vsc73x5-defaults, Vitesse VSC7395 microcode for the Atheros PB44 boards)
79 endef
80
81 define Package/vsc7395-ucode-pb44/description
82 This package contains the Atheros AP83 board specific microcode for
83 the Vitesse VSC7395 ethernet switch.
84 endef
85
86 define Package/vsc7395-ucode-pb44/install
87 $(call Package/vsc73x5/install,$(1),g5e_Plus1_2_29a_unmanaged_Atheros_v3.bin,vsc7395_ucode_pb44.bin)
88 endef
89
90 define Build/Prepare
91 tar -xzf "$(DL_DIR)/$(PKG_SOURCE)" ap-9x-gpl/ap93-u-boot.tar.bz2 -O | tar -C "$(PKG_BUILD_DIR)" -xj $(UCODE_SRC_DIR)
92 cp files/Makefile $(UCODE_BUILD_DIR)
93 endef
94
95 define Build/Compile
96 $(MAKE) -C $(UCODE_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) all
97 endef
98
99 $(eval $(call BuildPackage,vsc7385-ucode-ap83))
100 $(eval $(call BuildPackage,vsc7395-ucode-ap83))
101 $(eval $(call BuildPackage,vsc7385-ucode-pb44))
102 $(eval $(call BuildPackage,vsc7395-ucode-pb44))
This page took 0.041973 seconds and 5 git commands to generate.