Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=prism54-firmware
  7. PKG_RELEASE:=1
  8. # Prism54 FullMAC firmware (jbnore.free.fr seems to be rather slow, so we use daemonizer.de)
  9. PRG_URL:=https://daemonizer.de/prism54/prism54-fw/
  10. include $(INCLUDE_DIR)/package.mk
  11. # PRISM54/P54 firmwares
  12. PRISM54FW:=1.0.4.3.arm
  13. P54USBFW:=2.13.24.0.lm87.arm
  14. P54PCIFW:=2.13.12.0.arm
  15. P54SPIFW:=2.13.0.0.a.13.14.arm
  16. define Download/prism54-firmware
  17. FILE:=$(PRISM54FW)
  18. URL:=$(PRG_URL)/fw-fullmac
  19. MD5SUM:=8bd4310971772a486b9784c77f8a6df9
  20. endef
  21. $(eval $(call Download,prism54-firmware))
  22. define Download/p54-usb-firmware
  23. FILE:=$(P54USBFW)
  24. URL:=$(PRG_URL)/fw-usb
  25. MD5SUM:=8e8ab005a4f8f0123bcdc51bc25b47f6
  26. endef
  27. $(eval $(call Download,p54-usb-firmware))
  28. define Download/p54-pci-firmware
  29. FILE:=$(P54PCIFW)
  30. URL:=$(PRG_URL)/fw-softmac
  31. MD5SUM:=ff7536af2092b1c4b21315bd103ef4c4
  32. endef
  33. $(eval $(call Download,p54-pci-firmware))
  34. define Download/p54-spi-firmware
  35. FILE:=$(P54SPIFW)
  36. URL:=$(PRG_URL)/stlc4560
  37. MD5SUM:=42661f8ecbadd88012807493f596081d
  38. endef
  39. $(eval $(call Download,p54-spi-firmware))
  40. define Package/prism54-firmware-default
  41. SECTION:=firmware
  42. CATEGORY:=Firmware
  43. URL:=https://daemonizer.de/prism54/prism54-fw
  44. endef
  45. define Package/prism54-firmware
  46. $(Package/prism54-firmware-default)
  47. TITLE:=prism54 firmware
  48. endef
  49. define Package/p54-usb-firmware
  50. $(Package/prism54-firmware-default)
  51. TITLE:=p54-usb firmware
  52. endef
  53. define Package/p54-pci-firmware
  54. $(Package/prism54-firmware-default)
  55. TITLE:=p54-pci firmware
  56. endef
  57. define Package/p54-spi-firmware
  58. $(Package/prism54-firmware-default)
  59. TITLE:=p54-spi firmware
  60. endef
  61. define Build/Prepare
  62. mkdir -p $(PKG_BUILD_DIR)
  63. endef
  64. define Build/Compile
  65. endef
  66. define Package/prism54-firmware/install
  67. $(INSTALL_DIR) $(1)/lib/firmware
  68. $(INSTALL_DATA) $(DL_DIR)/$(PRISM54FW) $(1)/lib/firmware/isl3890
  69. endef
  70. define Package/p54-usb-firmware/install
  71. $(INSTALL_DIR) $(1)/lib/firmware
  72. $(INSTALL_DATA) $(DL_DIR)/$(P54USBFW) $(1)/lib/firmware/isl3887usb
  73. endef
  74. define Package/p54-pci-firmware/install
  75. $(INSTALL_DIR) $(1)/lib/firmware
  76. $(INSTALL_DATA) $(DL_DIR)/$(P54PCIFW) $(1)/lib/firmware/isl3886pci
  77. endef
  78. define Package/p54-spi-firmware/install
  79. $(INSTALL_DIR) $(1)/lib/firmware
  80. $(INSTALL_DATA) $(DL_DIR)/$(P54SPIFW) $(1)/lib/firmware/3826.arm
  81. endef
  82. $(eval $(call BuildPackage,prism54-firmware))
  83. $(eval $(call BuildPackage,p54-usb-firmware))
  84. $(eval $(call BuildPackage,p54-pci-firmware))
  85. $(eval $(call BuildPackage,p54-spi-firmware))