Makefile 2.6 KB

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