OSDN Git Service

Merge Offcial Source
[immortalwrt/immortalwrt.git] / package / firmware / cypress-firmware / Makefile
1 #
2 # Copyright (C) 2019-2020 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cypress-firmware
11 PKG_VERSION:=5.4.18-2021_0812
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/Infineon/ifx-linux-firmware/
16 PKG_MIRROR_HASH:=ac882b482dd401b53cdecc6004cd2bd3d65e888c19206dcf10931a28033ada4d
17 PKG_SOURCE_VERSION:=release-v$(PKG_VERSION)
18
19 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
20 PKG_LICENSE_FILES:=LICENCE
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/cypress-firmware-default
25   SECTION:=firmware
26   CATEGORY:=Firmware
27   URL:=https://community.infineon.com/
28 endef
29
30 define Build/Compile
31         true
32 endef
33
34 # Cypress 43012 SDIO Firmware
35 define Package/cypress-firmware-43012-sdio
36   $(Package/cypress-firmware-default)
37   TITLE:=CYW43012 FullMac SDIO firmware
38 endef
39
40 define Package/cypress-firmware-43012-sdio/install
41         $(INSTALL_DIR) $(1)/lib/firmware/brcm
42         $(INSTALL_DATA) \
43                 $(PKG_BUILD_DIR)/firmware/cyfmac43012-sdio.bin \
44                 $(1)/lib/firmware/brcm/brcmfmac43012-sdio.bin
45         $(INSTALL_DATA) \
46                 $(PKG_BUILD_DIR)/firmware/cyfmac43012-sdio.clm_blob \
47                 $(1)/lib/firmware/brcm/brcmfmac43012-sdio.clm_blob
48 endef
49
50 $(eval $(call BuildPackage,cypress-firmware-43012-sdio))
51
52 # Cypress 43340 SDIO Firmware
53 define Package/cypress-firmware-43340-sdio
54   $(Package/cypress-firmware-default)
55   TITLE:=CYW43340 FullMac SDIO firmware
56 endef
57
58 define Package/cypress-firmware-43340-sdio/install
59         $(INSTALL_DIR) $(1)/lib/firmware/brcm
60         $(INSTALL_DATA) \
61                 $(PKG_BUILD_DIR)/firmware/cyfmac43340-sdio.bin \
62                 $(1)/lib/firmware/brcm/brcmfmac43340-sdio.bin
63 endef
64
65 $(eval $(call BuildPackage,cypress-firmware-43340-sdio))
66
67 # Cypress 43362 SDIO Firmware
68 define Package/cypress-firmware-43362-sdio
69   $(Package/cypress-firmware-default)
70   TITLE:=CYW43362 FullMac SDIO firmware
71   PROVIDES:=brcmfmac-firmware-43362-sdio
72   CONFLICTS:=brcmfmac-firmware-43362-sdio
73 endef
74
75 define Package/cypress-firmware-43362-sdio/install
76         $(INSTALL_DIR) $(1)/lib/firmware/brcm
77         $(INSTALL_DATA) \
78                 $(PKG_BUILD_DIR)/firmware/cyfmac43362-sdio.bin \
79                 $(1)/lib/firmware/brcm/brcmfmac43362-sdio.bin
80 endef
81
82 $(eval $(call BuildPackage,cypress-firmware-43362-sdio))
83
84 # Cypress 4339 SDIO Firmware
85 define Package/cypress-firmware-4339-sdio
86   $(Package/cypress-firmware-default)
87   TITLE:=CYW4339 FullMac SDIO firmware
88 endef
89
90 define Package/cypress-firmware-4339-sdio/install
91         $(INSTALL_DIR) $(1)/lib/firmware/brcm
92         $(INSTALL_DATA) \
93                 $(PKG_BUILD_DIR)/firmware/cyfmac4339-sdio.bin \
94                 $(1)/lib/firmware/brcm/brcmfmac4339-sdio.bin
95 endef
96
97 $(eval $(call BuildPackage,cypress-firmware-4339-sdio))
98
99 # Cypress 43430 SDIO Firmware
100 define Package/cypress-firmware-43430-sdio
101   $(Package/cypress-firmware-default)
102   TITLE:=CYW43430 FullMac SDIO firmware
103   PROVIDES:=brcmfmac-firmware-43430-sdio
104   CONFLICTS:=brcmfmac-firmware-43430-sdio
105 endef
106
107 define Package/cypress-firmware-43430-sdio/install
108         $(INSTALL_DIR) $(1)/lib/firmware/brcm
109         $(INSTALL_DATA) \
110                 $(PKG_BUILD_DIR)/firmware/cyfmac43430-sdio.bin \
111                 $(1)/lib/firmware/brcm/brcmfmac43430-sdio.bin
112         $(INSTALL_DATA) \
113                 $(PKG_BUILD_DIR)/firmware/cyfmac43430-sdio.clm_blob \
114                 $(1)/lib/firmware/brcm/brcmfmac43430-sdio.clm_blob
115 endef
116
117 $(eval $(call BuildPackage,cypress-firmware-43430-sdio))
118
119 # Cypress 43455 SDIO Firmware
120 define Package/cypress-firmware-43455-sdio
121   $(Package/cypress-firmware-default)
122   TITLE:=CYW43455 FullMac SDIO firmware
123   PROVIDES:=brcmfmac-firmware-43455-sdio
124   CONFLICTS:=brcmfmac-firmware-43455-sdio
125 endef
126
127 define Package/cypress-firmware-43455-sdio/install
128         $(INSTALL_DIR) $(1)/lib/firmware/brcm
129         $(INSTALL_DATA) \
130                 $(PKG_BUILD_DIR)/firmware/cyfmac43455-sdio.bin \
131                 $(1)/lib/firmware/brcm/brcmfmac43455-sdio.bin
132         $(INSTALL_DATA) \
133                 $(PKG_BUILD_DIR)/firmware/cyfmac43455-sdio.clm_blob \
134                 $(1)/lib/firmware/brcm/brcmfmac43455-sdio.clm_blob
135 endef
136
137 $(eval $(call BuildPackage,cypress-firmware-43455-sdio))
138
139 # Cypress 4354 SDIO Firmware
140 define Package/cypress-firmware-4354-sdio
141   $(Package/cypress-firmware-default)
142   TITLE:=CYW4354 FullMac SDIO firmware
143 endef
144
145 define Package/cypress-firmware-4354-sdio/install
146         $(INSTALL_DIR) $(1)/lib/firmware/brcm
147         $(INSTALL_DATA) \
148                 $(PKG_BUILD_DIR)/firmware/cyfmac4354-sdio.bin \
149                 $(1)/lib/firmware/brcm/brcmfmac4354-sdio.bin
150         $(INSTALL_DATA) \
151                 $(PKG_BUILD_DIR)/firmware/cyfmac4354-sdio.clm_blob \
152                 $(1)/lib/firmware/brcm/brcmfmac4354-sdio.clm_blob
153 endef
154
155 $(eval $(call BuildPackage,cypress-firmware-4354-sdio))
156
157 # Cypress 4356 PCIe Firmware
158 define Package/cypress-firmware-4356-pcie
159   $(Package/cypress-firmware-default)
160   TITLE:=CYW4356 FullMac PCIe firmware
161 endef
162
163 define Package/cypress-firmware-4356-pcie/install
164         $(INSTALL_DIR) $(1)/lib/firmware/brcm
165         $(INSTALL_DATA) \
166                 $(PKG_BUILD_DIR)/firmware/cyfmac4356-pcie.bin \
167                 $(1)/lib/firmware/brcm/brcmfmac4356-pcie.bin
168         $(INSTALL_DATA) \
169                 $(PKG_BUILD_DIR)/firmware/cyfmac4356-pcie.clm_blob \
170                 $(1)/lib/firmware/brcm/brcmfmac4356-pcie.clm_blob
171 endef
172
173 $(eval $(call BuildPackage,cypress-firmware-4356-pcie))
174
175 # Cypress 4356 SDIO Firmware
176 define Package/cypress-firmware-4356-sdio
177   $(Package/cypress-firmware-default)
178   TITLE:=CYW4356 FullMac SDIO firmware
179 endef
180
181 define Package/cypress-firmware-4356-sdio/install
182         $(INSTALL_DIR) $(1)/lib/firmware/brcm
183         $(INSTALL_DATA) \
184                 $(PKG_BUILD_DIR)/firmware/cyfmac4356-sdio.bin \
185                 $(1)/lib/firmware/brcm/brcmfmac4356-sdio.bin
186         $(INSTALL_DATA) \
187                 $(PKG_BUILD_DIR)/firmware/cyfmac4356-sdio.clm_blob \
188                 $(1)/lib/firmware/brcm/brcmfmac4356-sdio.clm_blob
189 endef
190
191 $(eval $(call BuildPackage,cypress-firmware-4356-sdio))
192
193 # Cypress 43570 PCIe Firmware
194 define Package/cypress-firmware-43570-pcie
195   $(Package/cypress-firmware-default)
196   TITLE:=CYW43570 FullMac PCIe firmware
197 endef
198
199 define Package/cypress-firmware-43570-pcie/install
200         $(INSTALL_DIR) $(1)/lib/firmware/brcm
201         $(INSTALL_DATA) \
202                 $(PKG_BUILD_DIR)/firmware/cyfmac43570-pcie.bin \
203                 $(1)/lib/firmware/brcm/brcmfmac43570-pcie.bin
204         $(INSTALL_DATA) \
205                 $(PKG_BUILD_DIR)/firmware/cyfmac43570-pcie.clm_blob \
206                 $(1)/lib/firmware/brcm/brcmfmac43570-pcie.clm_blob
207 endef
208
209 $(eval $(call BuildPackage,cypress-firmware-43570-pcie))
210
211 # Cypress 4373 SDIO Firmware
212 define Package/cypress-firmware-4373-sdio
213   $(Package/cypress-firmware-default)
214   TITLE:=CYW4373 FullMac SDIO firmware
215 endef
216
217 define Package/cypress-firmware-4373-sdio/install
218         $(INSTALL_DIR) $(1)/lib/firmware/brcm
219         $(INSTALL_DATA) \
220                 $(PKG_BUILD_DIR)/firmware/cyfmac4373-sdio.bin \
221                 $(1)/lib/firmware/brcm/brcmfmac4373-sdio.bin
222         $(INSTALL_DATA) \
223                 $(PKG_BUILD_DIR)/firmware/cyfmac4373-sdio.clm_blob \
224                 $(1)/lib/firmware/brcm/brcmfmac4373-sdio.clm_blob
225 endef
226
227 $(eval $(call BuildPackage,cypress-firmware-4373-sdio))
228
229 # Cypress 4373 USB Firmware
230 define Package/cypress-firmware-4373-usb
231   $(Package/cypress-firmware-default)
232   TITLE:=CYW4373 FullMac USB firmware
233 endef
234
235 define Package/cypress-firmware-4373-usb/install
236         $(INSTALL_DIR) $(1)/lib/firmware/brcm
237         $(INSTALL_DATA) \
238                 $(PKG_BUILD_DIR)/firmware/cyfmac4373-usb.bin \
239                 $(1)/lib/firmware/brcm/brcmfmac4373-usb.bin
240         $(INSTALL_DATA) \
241                 $(PKG_BUILD_DIR)/firmware/cyfmac4373.clm_blob \
242                 $(1)/lib/firmware/brcm/brcmfmac4373.clm_blob
243 endef
244
245 $(eval $(call BuildPackage,cypress-firmware-4373-usb))
246
247 # Cypress 54591 PCIe Firmware
248 define Package/cypress-firmware-54591-pcie
249   $(Package/cypress-firmware-default)
250   TITLE:=CYW54591 FullMac PCIe firmware
251 endef
252
253 define Package/cypress-firmware-54591-pcie/install
254         $(INSTALL_DIR) $(1)/lib/firmware/brcm
255         $(INSTALL_DATA) \
256                 $(PKG_BUILD_DIR)/firmware/cyfmac54591-pcie.bin \
257                 $(1)/lib/firmware/brcm/brcmfmac54591-pcie.bin
258         $(INSTALL_DATA) \
259                 $(PKG_BUILD_DIR)/firmware/cyfmac54591-pcie.clm_blob \
260                 $(1)/lib/firmware/brcm/brcmfmac54591-pcie.clm_blob
261 endef
262
263 $(eval $(call BuildPackage,cypress-firmware-54591-pcie))
264