Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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_HASH:=9728cec2b5d49ddd52578a8c600f1fd9f878a34e7e00ed51c248e0d608dd763a
  14. PKG_FLAGS:=nonshared
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/vsc73x5-defaults
  17. SECTION:=net
  18. CATEGORY:=Network
  19. DEPENDS:=@TARGET_ar71xx
  20. DEFAULT:=n
  21. TITLE:=$(1)
  22. endef
  23. define Package/vsc73x5/install
  24. $(INSTALL_DIR) $(1)/lib/firmware
  25. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(2) $(1)/lib/firmware/$(3)
  26. endef
  27. define Package/vsc7385-ucode-pb44
  28. $(call Package/vsc73x5-defaults, Vitesse VSC7395 microcode for the Atheros PB44 boards)
  29. endef
  30. define Package/vsc7385-ucode-pb44/description
  31. This package contains the Atheros PB44 board specific microcode for
  32. the Vitesse VSC7385 ethernet switch.
  33. endef
  34. define Package/vsc7385-ucode-pb44/install
  35. $(call Package/vsc73x5/install,$(1),g5_Plus1_2_29b_unmanaged_Atheros_v5.bin,vsc7385_ucode_pb44.bin)
  36. endef
  37. define Package/vsc7395-ucode-pb44
  38. $(call Package/vsc73x5-defaults, Vitesse VSC7395 microcode for the Atheros PB44 boards)
  39. endef
  40. define Package/vsc7395-ucode-pb44/description
  41. This package contains the Atheros PB44 board specific microcode for
  42. the Vitesse VSC7395 ethernet switch.
  43. endef
  44. define Package/vsc7395-ucode-pb44/install
  45. $(call Package/vsc73x5/install,$(1),g5e_Plus1_2_29a_unmanaged_Atheros_v3.bin,vsc7395_ucode_pb44.bin)
  46. endef
  47. define Build/Compile
  48. endef
  49. $(eval $(call BuildPackage,vsc7385-ucode-pb44))
  50. $(eval $(call BuildPackage,vsc7395-ucode-pb44))