780c29abde963775808bd4a0e2f9c837a438217d
[openwrt/staging/mkresin.git] / package / firmware / prism54-firmware / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=prism54-firmware
9 PKG_RELEASE:=1
10
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/
13
14 include $(INCLUDE_DIR)/package.mk
15
16
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
22
23 define Download/prism54-firmware
24 FILE:=$(PRISM54FW)
25 URL:=$(PRG_URL)/fw-fullmac
26 MD5SUM:=8bd4310971772a486b9784c77f8a6df9
27 endef
28 $(eval $(call Download,prism54-firmware))
29
30 define Download/p54-usb-firmware
31 FILE:=$(P54USBFW)
32 URL:=$(PRG_URL)/fw-usb
33 MD5SUM:=8e8ab005a4f8f0123bcdc51bc25b47f6
34 endef
35 $(eval $(call Download,p54-usb-firmware))
36
37 define Download/p54-pci-firmware
38 FILE:=$(P54PCIFW)
39 URL:=$(PRG_URL)/fw-softmac
40 MD5SUM:=ff7536af2092b1c4b21315bd103ef4c4
41 endef
42 $(eval $(call Download,p54-pci-firmware))
43
44 define Download/p54-spi-firmware
45 FILE:=$(P54SPIFW)
46 URL:=$(PRG_URL)/stlc4560
47 MD5SUM:=42661f8ecbadd88012807493f596081d
48 endef
49 $(eval $(call Download,p54-spi-firmware))
50
51
52 define Package/prism54-firmware-default
53 SECTION:=firmware
54 CATEGORY:=Firmware
55 URL:=https://daemonizer.de/prism54/prism54-fw
56 endef
57
58 define Package/prism54-firmware
59 $(Package/prism54-firmware-default)
60 TITLE:=prism54 firmware
61 endef
62
63 define Package/p54-usb-firmware
64 $(Package/prism54-firmware-default)
65 TITLE:=p54-usb firmware
66 endef
67
68 define Package/p54-pci-firmware
69 $(Package/prism54-firmware-default)
70 TITLE:=p54-pci firmware
71 endef
72
73 define Package/p54-spi-firmware
74 $(Package/prism54-firmware-default)
75 TITLE:=p54-spi firmware
76 endef
77
78
79 define Build/Prepare
80 mkdir -p $(PKG_BUILD_DIR)
81 endef
82
83 define Build/Compile
84
85 endef
86
87 define Package/prism54-firmware/install
88 $(INSTALL_DIR) $(1)/lib/firmware
89 $(INSTALL_DATA) $(DL_DIR)/$(PRISM54FW) $(1)/lib/firmware/isl3890
90 endef
91
92 define Package/p54-usb-firmware/install
93 $(INSTALL_DIR) $(1)/lib/firmware
94 $(INSTALL_DATA) $(DL_DIR)/$(P54USBFW) $(1)/lib/firmware/isl3887usb
95 endef
96
97 define Package/p54-pci-firmware/install
98 $(INSTALL_DIR) $(1)/lib/firmware
99 $(INSTALL_DATA) $(DL_DIR)/$(P54PCIFW) $(1)/lib/firmware/isl3886pci
100 endef
101
102 define Package/p54-spi-firmware/install
103 $(INSTALL_DIR) $(1)/lib/firmware
104 $(INSTALL_DATA) $(DL_DIR)/$(P54SPIFW) $(1)/lib/firmware/3826.arm
105 endef
106
107
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))