2 # Copyright (C) 2010 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
10 PKG_NAME
:=vsc73x5-ucode
13 PKG_SOURCE_URL
:=http
://www.tp-link.com
/GPL
15 PKG_SOURCE
:=WirelessNRouer_AP.
tar.gz
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/vsc73x5-ucode
18 PKG_MD5SUM
:=7dd6069a5f0e44cc9965fc7b43eb3046
20 UCODE_SRC_DIR
:=u-boot
/board
/ar7100
/common
21 UCODE_BUILD_DIR
:=$(PKG_BUILD_DIR
)/$(UCODE_SRC_DIR
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/vsc73x5-defaults
28 DEPENDS
:=@TARGET_ar71xx
33 define Package
/vsc73x5
/install
34 $(INSTALL_DIR
) $(1)/lib
/firmware
35 $(INSTALL_DATA
) $(UCODE_BUILD_DIR
)/$(2) $(1)/lib
/firmware
/$(3)
38 define Package
/vsc7385-ucode-ap83
39 $(call Package
/vsc73x5-defaults
,Vitesse VSC7385 microcode for the Atheros AP83 boards
)
42 define Package
/vsc7385-ucode-ap83
/description
43 This package contains the Atheros AP83 board specific microcode for
44 the Vitesse VSC7385 ethernet switch.
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
)
51 define Package
/vsc7395-ucode-ap83
52 $(call Package
/vsc73x5-defaults
, Vitesse VSC7395 microcode for the Atheros AP83 boards
)
55 define Package
/vsc7395-ucode-ap83
/description
56 This package contains the Atheros AP83 board specific microcode for
57 the Vitesse VSC7395 ethernet switch.
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
)
64 define Package
/vsc7385-ucode-pb44
65 $(call Package
/vsc73x5-defaults
, Vitesse VSC7395 microcode for the Atheros PB44 boards
)
68 define Package
/vsc7385-ucode-pb44
/description
69 This package contains the Atheros PB44 board specific microcode for
70 the Vitesse VSC7385 ethernet switch.
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
)
77 define Package
/vsc7395-ucode-pb44
78 $(call Package
/vsc73x5-defaults
, Vitesse VSC7395 microcode for the Atheros PB44 boards
)
81 define Package
/vsc7395-ucode-pb44
/description
82 This package contains the Atheros AP83 board specific microcode for
83 the Vitesse VSC7395 ethernet switch.
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
)
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
)
96 $(MAKE
) -C
$(UCODE_BUILD_DIR
) $(TARGET_CONFIGURE_OPTS
) all
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
))