2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR)/rules.mk
8 PKG_NAME:=prism54-firmware
11 # Prism54 FullMAC firmware (jbnore.free.fr seems to be rather slow, so we use daemonizer.de)
12 PRG_URL:=https://daemonizer.de/prism54/prism54-fw/
14 include $(INCLUDE_DIR)/package.mk
17 # PRISM54/P54 firmwares
18 PRISM54FW:=1.0.4.3.arm
19 P54USBFW:=2.13.24.0.lm87.arm
20 P54PCIFW:=2.13.12.0.arm
21 P54SPIFW:=2.13.0.0.a.13.14.arm
23 define Download/prism54-firmware
25 URL:=$(PRG_URL)/fw-fullmac
26 MD5SUM:=8bd4310971772a486b9784c77f8a6df9
28 $(eval $(call Download,prism54-firmware))
30 define Download/p54-usb-firmware
32 URL:=$(PRG_URL)/fw-usb
33 MD5SUM:=8e8ab005a4f8f0123bcdc51bc25b47f6
35 $(eval $(call Download,p54-usb-firmware))
37 define Download/p54-pci-firmware
39 URL:=$(PRG_URL)/fw-softmac
40 MD5SUM:=ff7536af2092b1c4b21315bd103ef4c4
42 $(eval $(call Download,p54-pci-firmware))
44 define Download/p54-spi-firmware
46 URL:=$(PRG_URL)/stlc4560
47 MD5SUM:=42661f8ecbadd88012807493f596081d
49 $(eval $(call Download,p54-spi-firmware))
52 define Package/prism54-firmware-default
55 URL:=https://daemonizer.de/prism54/prism54-fw
58 define Package/prism54-firmware
59 $(Package/prism54-firmware-default)
60 TITLE:=prism54 firmware
63 define Package/p54-usb-firmware
64 $(Package/prism54-firmware-default)
65 TITLE:=p54-usb firmware
68 define Package/p54-pci-firmware
69 $(Package/prism54-firmware-default)
70 TITLE:=p54-pci firmware
73 define Package/p54-spi-firmware
74 $(Package/prism54-firmware-default)
75 TITLE:=p54-spi firmware
80 mkdir -p $(PKG_BUILD_DIR)
87 define Package/prism54-firmware/install
88 $(INSTALL_DIR) $(1)/lib/firmware
89 $(INSTALL_DATA) $(DL_DIR)/$(PRISM54FW) $(1)/lib/firmware/isl3890
92 define Package/p54-usb-firmware/install
93 $(INSTALL_DIR) $(1)/lib/firmware
94 $(INSTALL_DATA) $(DL_DIR)/$(P54USBFW) $(1)/lib/firmware/isl3887usb
97 define Package/p54-pci-firmware/install
98 $(INSTALL_DIR) $(1)/lib/firmware
99 $(INSTALL_DATA) $(DL_DIR)/$(P54PCIFW) $(1)/lib/firmware/isl3886pci
102 define Package/p54-spi-firmware/install
103 $(INSTALL_DIR) $(1)/lib/firmware
104 $(INSTALL_DATA) $(DL_DIR)/$(P54SPIFW) $(1)/lib/firmware/3826.arm
108 $(eval $(call BuildPackage,prism54-firmware))
109 $(eval $(call BuildPackage,p54-usb-firmware))
110 $(eval $(call BuildPackage,p54-pci-firmware))
111 $(eval $(call BuildPackage,p54-spi-firmware))