python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / linux-firmware / linux-firmware.mk
blobbfcd2ef09687d03f17d35da4ec1d2a933390ee7b
1 ################################################################################
3 # linux-firmware
5 ################################################################################
7 LINUX_FIRMWARE_VERSION = 6d3bc8886517d171068fd1263176b8b5c51df204
8 LINUX_FIRMWARE_SITE = http://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
9 LINUX_FIRMWARE_SITE_METHOD = git
11 # Intel SST DSP
12 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_INTEL_SST_DSP),y)
13 LINUX_FIRMWARE_FILES += intel/fw_sst_0f28.bin-48kHz_i2s_master
14 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.fw_sst_0f28
15 endif
17 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_I915),y)
18 LINUX_FIRMWARE_DIRS += i915
19 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENSE.i915
20 endif
22 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_RADEON),y)
23 LINUX_FIRMWARE_DIRS += radeon
24 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENSE.radeon
25 endif
27 # Intel Wireless Bluetooth
28 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_IBT),y)
29 LINUX_FIRMWARE_FILES += intel/ibt-*
30 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.ibt_firmware
31 endif
33 # rt2501/rt61
34 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT61),y)
35 LINUX_FIRMWARE_FILES += rt2561.bin rt2561s.bin rt2661.bin
36 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.ralink-firmware.txt
37 endif
39 # rt73
40 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT73),y)
41 LINUX_FIRMWARE_FILES += rt73.bin
42 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.ralink-firmware.txt
43 endif
45 # rt2xx
46 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT2XX),y)
47 # rt3090.bin is a symlink to rt2860.bin
48 # rt3070.bin is a symlink to rt2870.bin
49 LINUX_FIRMWARE_FILES += rt2860.bin rt2870.bin rt3070.bin rt3071.bin rt3090.bin
50 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.ralink-firmware.txt
51 endif
53 # rtl81xx
54 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_RTL_81XX),y)
55 LINUX_FIRMWARE_FILES += \
56 rtlwifi/rtl8192cfw.bin rtlwifi/rtl8192cfwU.bin \
57 rtlwifi/rtl8192cfwU_B.bin rtlwifi/rtl8192cufw.bin \
58 rtlwifi/rtl8192defw.bin rtlwifi/rtl8192sefw.bin \
59 rtlwifi/rtl8188efw.bin rtlwifi/rtl8188eufw.bin \
60 rtlwifi/rtl8192cufw_A.bin \
61 rtlwifi/rtl8192cufw_B.bin rtlwifi/rtl8192cufw_TMSC.bin
62 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.rtlwifi_firmware.txt
63 endif
65 # rtl87xx
66 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_RTL_87XX),y)
67 LINUX_FIRMWARE_FILES += \
68 rtlwifi/rtl8712u.bin rtlwifi/rtl8723fw.bin \
69 rtlwifi/rtl8723fw_B.bin rtlwifi/rtl8723befw.bin
70 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.rtlwifi_firmware.txt
71 endif
73 # rtl88xx
74 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_RTL_88XX),y)
75 LINUX_FIRMWARE_FILES += \
76 rtlwifi/rtl8821aefw.bin \
77 rtlwifi/rtl8821aefw_wowlan.bin
78 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.rtlwifi_firmware.txt
79 endif
81 # ar6002
82 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_6002),y)
83 LINUX_FIRMWARE_FILES += ath6k/AR6002
84 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.atheros_firmware
85 endif
87 # ar6003
88 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_6003),y)
89 LINUX_FIRMWARE_FILES += ath6k/AR6003
90 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.atheros_firmware
91 endif
93 # ar6004
94 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_6004),y)
95 LINUX_FIRMWARE_FILES += ath6k/AR6004
96 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.atheros_firmware
97 endif
99 # ar7010
100 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_7010),y)
101 LINUX_FIRMWARE_FILES += ar7010.fw ar7010_1_1.fw htc_7010.fw ath9k_htc/htc_7010-1.4.0.fw
102 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.atheros_firmware
103 endif
105 # ar9170
106 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_9170),y)
107 LINUX_FIRMWARE_FILES += ar9170-1.fw ar9170-2.fw
108 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.atheros_firmware
109 endif
111 # ar9271
112 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_9271),y)
113 LINUX_FIRMWARE_FILES += ar9271.fw htc_9271.fw ath9k_htc/htc_9271-1.4.0.fw
114 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.atheros_firmware
115 endif
117 # sd8686 v8
118 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_LIBERTAS_SD8686_V8),y)
119 LINUX_FIRMWARE_FILES += libertas/sd8686_v8.bin libertas/sd8686_v8_helper.bin
120 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Marvell
121 endif
123 # sd8686 v9
124 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_LIBERTAS_SD8686_V9),y)
125 LINUX_FIRMWARE_FILES += libertas/sd8686_v9.bin libertas/sd8686_v9_helper.bin
126 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Marvell
127 endif
129 # sd8688
130 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_LIBERTAS_SD8688),y)
131 LINUX_FIRMWARE_FILES += libertas/sd8688.bin libertas/sd8688_helper.bin
132 # The two files above are but symlinks to those two ones:
133 LINUX_FIRMWARE_FILES += mrvl/sd8688.bin mrvl/sd8688_helper.bin
134 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Marvell
135 endif
137 # sd8787
138 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_SD8787),y)
139 LINUX_FIRMWARE_FILES += mrvl/sd8787_uapsta.bin
140 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Marvell
141 endif
143 # sd8797
144 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_SD8797),y)
145 LINUX_FIRMWARE_FILES += mrvl/sd8797_uapsta.bin
146 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Marvell
147 endif
149 # usb8797
150 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_USB8797),y)
151 LINUX_FIRMWARE_FILES += mrvl/usb8797_uapsta.bin
152 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Marvell
153 endif
155 # usb8801
156 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_USB8801),y)
157 LINUX_FIRMWARE_FILES += mrvl/usb8801_uapsta.bin
158 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Marvell
159 endif
161 # sd8887
162 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_SD8887),y)
163 LINUX_FIRMWARE_FILES += mrvl/sd8887_uapsta.bin
164 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Marvell
165 endif
167 # sd8897
168 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_SD8897),y)
169 LINUX_FIRMWARE_FILES += mrvl/sd8897_uapsta.bin
170 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Marvell
171 endif
173 # usb8897
174 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_USB8897),y)
175 LINUX_FIRMWARE_FILES += mrvl/usb8897_uapsta.bin
176 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Marvell
177 endif
179 # pcie8897
180 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_PCIE8897),y)
181 LINUX_FIRMWARE_FILES += mrvl/pcie8897_uapsta.bin
182 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Marvell
183 endif
185 # MT7601
186 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_MEDIATEK_MT7601U),y)
187 LINUX_FIRMWARE_FILES += mt7601u.bin
188 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.ralink_a_mediatek_company_firmware
189 endif
191 # wl127x
192 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_TI_WL127X),y)
193 # wl1271-nvs.bin is a symlink to wl127x-nvs.bin
194 LINUX_FIRMWARE_FILES += \
195 ti-connectivity/wl1271-fw-2.bin \
196 ti-connectivity/wl1271-fw-ap.bin \
197 ti-connectivity/wl1271-fw.bin \
198 ti-connectivity/wl1271-nvs.bin \
199 ti-connectivity/wl127x-fw-3.bin \
200 ti-connectivity/wl127x-fw-plt-3.bin \
201 ti-connectivity/wl127x-nvs.bin \
202 ti-connectivity/wl127x-fw-4-mr.bin \
203 ti-connectivity/wl127x-fw-4-plt.bin \
204 ti-connectivity/wl127x-fw-4-sr.bin \
205 ti-connectivity/wl127x-fw-5-mr.bin \
206 ti-connectivity/wl127x-fw-5-plt.bin \
207 ti-connectivity/wl127x-fw-5-sr.bin \
208 ti-connectivity/TIInit_7.2.31.bts
209 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.ti-connectivity
210 endif
212 # wl128x
213 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_TI_WL128X),y)
214 # wl1271-nvs.bin and wl12xx-nvs.bin are symlinks to wl127x-nvs.bin
215 LINUX_FIRMWARE_FILES += \
216 ti-connectivity/wl128x-fw-3.bin \
217 ti-connectivity/wl128x-fw-ap.bin \
218 ti-connectivity/wl128x-fw-plt-3.bin \
219 ti-connectivity/wl128x-fw.bin \
220 ti-connectivity/wl1271-nvs.bin \
221 ti-connectivity/wl128x-nvs.bin \
222 ti-connectivity/wl12xx-nvs.bin \
223 ti-connectivity/wl127x-nvs.bin \
224 ti-connectivity/wl128x-fw-4-mr.bin \
225 ti-connectivity/wl128x-fw-4-plt.bin \
226 ti-connectivity/wl128x-fw-4-sr.bin \
227 ti-connectivity/wl128x-fw-5-mr.bin \
228 ti-connectivity/wl128x-fw-5-plt.bin \
229 ti-connectivity/wl128x-fw-5-sr.bin \
230 ti-connectivity/TIInit_7.2.31.bts
231 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.ti-connectivity
232 endif
234 # wl18xx
235 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_TI_WL18XX),y)
236 # wl1271-nvs.bin is a symlink to wl127x-nvs.bin
237 LINUX_FIRMWARE_FILES += \
238 ti-connectivity/wl18xx-fw.bin \
239 ti-connectivity/wl18xx-fw-2.bin \
240 ti-connectivity/wl18xx-fw-3.bin \
241 ti-connectivity/wl18xx-fw-4.bin \
242 ti-connectivity/wl1271-nvs.bin \
243 ti-connectivity/wl127x-nvs.bin \
244 ti-connectivity/TIInit_7.2.31.bts
245 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.ti-connectivity
246 endif
248 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_3160),y)
249 LINUX_FIRMWARE_FILES += iwlwifi-3160-*.ucode
250 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.iwlwifi_firmware
251 endif
253 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_3168),y)
254 LINUX_FIRMWARE_FILES += iwlwifi-3168-*.ucode
255 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.iwlwifi_firmware
256 endif
258 # iwlwifi 5000. Multiple files are available (iwlwifi-5000-1.ucode,
259 # iwlwifi-5000-2.ucode, iwlwifi-5000-5.ucode), corresponding to
260 # different versions of the firmware API. For now, we only install the
261 # most recent one.
262 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_5000),y)
263 LINUX_FIRMWARE_FILES += iwlwifi-5000-5.ucode
264 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.iwlwifi_firmware
265 endif
267 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_6000G2A),y)
268 LINUX_FIRMWARE_FILES += iwlwifi-6000g2a-6.ucode
269 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.iwlwifi_firmware
270 endif
272 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_6000G2B),y)
273 LINUX_FIRMWARE_FILES += iwlwifi-6000g2b-6.ucode
274 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.iwlwifi_firmware
275 endif
277 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_7260),y)
278 LINUX_FIRMWARE_FILES += iwlwifi-7260-*.ucode
279 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.iwlwifi_firmware
280 endif
282 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_7265),y)
283 LINUX_FIRMWARE_FILES += iwlwifi-7265-*.ucode
284 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.iwlwifi_firmware
285 endif
287 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_7265D),y)
288 LINUX_FIRMWARE_FILES += iwlwifi-7265D-*.ucode
289 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.iwlwifi_firmware
290 endif
292 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_8000C),y)
293 LINUX_FIRMWARE_FILES += iwlwifi-8000C-*.ucode
294 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.iwlwifi_firmware
295 endif
297 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_IWLWIFI_8265),y)
298 LINUX_FIRMWARE_FILES += iwlwifi-8265-*.ucode
299 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.iwlwifi_firmware
300 endif
302 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_BNX2X),y)
303 LINUX_FIRMWARE_FILES += bnx2x/*
304 # No license file; the license is in the file WHENCE
305 # which is installed unconditionally
306 endif
308 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_CXGB4_T4),y)
309 # cxgb4/t4fw.bin is a symlink to cxgb4/t4fw-1.16.26.0.bin
310 LINUX_FIRMWARE_FILES += cxgb4/t4fw-1.16.26.0.bin cxgb4/t4fw.bin
311 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.chelsio_firmware
312 endif
314 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_CXGB4_T5),y)
315 # cxgb4/t5fw.bin is a symlink to cxgb4/t5fw-1.16.26.0.bin
316 LINUX_FIRMWARE_FILES += cxgb4/t5fw-1.16.26.0.bin cxgb4/t5fw.bin
317 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.chelsio_firmware
318 endif
320 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_RTL_8169),y)
321 LINUX_FIRMWARE_FILES += \
322 rtl_nic/rtl8105e-1.fw \
323 rtl_nic/rtl8106e-1.fw \
324 rtl_nic/rtl8106e-2.fw \
325 rtl_nic/rtl8168d-1.fw \
326 rtl_nic/rtl8168d-2.fw \
327 rtl_nic/rtl8168e-1.fw \
328 rtl_nic/rtl8168e-2.fw \
329 rtl_nic/rtl8168e-3.fw \
330 rtl_nic/rtl8168f-1.fw \
331 rtl_nic/rtl8168f-2.fw \
332 rtl_nic/rtl8168g-2.fw \
333 rtl_nic/rtl8168g-3.fw \
334 rtl_nic/rtl8168h-1.fw \
335 rtl_nic/rtl8168h-2.fw \
336 rtl_nic/rtl8402-1.fw \
337 rtl_nic/rtl8411-1.fw \
338 rtl_nic/rtl8411-2.fw
339 endif
341 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_XCx000),y)
342 LINUX_FIRMWARE_FILES += \
343 dvb-fe-xc4000-1.4.1.fw \
344 dvb-fe-xc5000-1.6.114.fw \
345 dvb-fe-xc5000c-4.1.30.7.fw
346 LINUX_FIRMWARE_ALL_LICENSE_FILES += \
347 LICENCE.xc4000 \
348 LICENCE.xc5000 \
349 LICENCE.xc5000c
350 endif
352 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_AS102),y)
353 LINUX_FIRMWARE_FILES += as102_data1_st.hex as102_data2_st.hex
354 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.Abilis
355 endif
357 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_DIB0700),y)
358 LINUX_FIRMWARE_FILES += dvb-usb-dib0700-1.20.fw
359 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENSE.dib0700
360 endif
362 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_ITETECH_IT9135),y)
363 LINUX_FIRMWARE_FILES += dvb-usb-it9135-01.fw dvb-usb-it9135-02.fw
364 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.it913x
365 endif
367 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_H5_DRXK),y)
368 LINUX_FIRMWARE_FILES += dvb-usb-terratec-h5-drxk.fw
369 # No license file; the license is in the file WHENCE
370 # which is installed unconditionally
371 endif
373 # brcm43xx
374 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XX),y)
375 LINUX_FIRMWARE_FILES += \
376 brcm/bcm43xx-0.fw brcm/bcm43xx_hdr-0.fw \
377 brcm/bcm4329-fullmac-4.bin brcm/brcmfmac4329-sdio.bin \
378 brcm/brcmfmac4330-sdio.bin brcm/brcmfmac4334-sdio.bin \
379 brcm/brcmfmac4335-sdio.bin brcm/brcmfmac4339-sdio.bin \
380 brcm/brcmfmac4350-pcie.bin brcm/brcmfmac4354-sdio.bin \
381 brcm/brcmfmac4356-pcie.bin brcm/brcmfmac4371-pcie.bin
382 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.broadcom_bcm43xx
383 endif
385 # brcm43xxx
386 ifeq ($(BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XXX),y)
387 LINUX_FIRMWARE_FILES += \
388 brcm/brcmfmac43143.bin brcm/brcmfmac43143-sdio.bin \
389 brcm/brcmfmac43236b.bin brcm/brcmfmac43241b0-sdio.bin \
390 brcm/brcmfmac43241b4-sdio.bin brcm/brcmfmac43241b5-sdio.bin \
391 brcm/brcmfmac43242a.bin brcm/brcmfmac43340-sdio.bin \
392 brcm/brcmfmac43362-sdio.bin brcm/brcmfmac43455-sdio.bin \
393 brcm/brcmfmac43569.bin brcm/brcmfmac43570-pcie.bin \
394 brcm/brcmfmac43602-pcie.ap.bin brcm/brcmfmac43602-pcie.bin \
395 brcm/brcmfmac43430-sdio.bin
396 LINUX_FIRMWARE_ALL_LICENSE_FILES += LICENCE.broadcom_bcm43xx
397 endif
399 ifneq ($(LINUX_FIRMWARE_FILES),)
400 define LINUX_FIRMWARE_INSTALL_FILES
401 cd $(@D) ; \
402 $(TAR) c $(sort $(LINUX_FIRMWARE_FILES)) | \
403 $(TAR) x -C $(TARGET_DIR)/lib/firmware
404 endef
405 endif
407 ifneq ($(LINUX_FIRMWARE_DIRS),)
408 # We need to rm-rf the destination directory to avoid copying
409 # into it in itself, should we re-install the package.
410 define LINUX_FIRMWARE_INSTALL_DIRS
411 $(foreach d,$(LINUX_FIRMWARE_DIRS), \
412 rm -rf $(TARGET_DIR)/lib/firmware/$(d); \
413 cp -a $(@D)/$(d) $(TARGET_DIR)/lib/firmware/$(d)$(sep))
414 endef
415 endif
417 ifneq ($(LINUX_FIRMWARE_FILES)$(LINUX_FIRMWARE_DIRS),)
419 # Most firmware files are under a proprietary license, so no need to
420 # repeat it for every selections above. Those firmwares that have more
421 # lax licensing terms may still add them on a per-case basis.
422 LINUX_FIRMWARE_LICENSE += Proprietary
424 # This file contains some licensing information about all the firmware
425 # files found in the linux-firmware package, so we always add it, even
426 # for firmwares that have their own licensing terms.
427 LINUX_FIRMWARE_ALL_LICENSE_FILES += WHENCE
429 # Some license files may be listed more than once, so we have to remove
430 # duplicates
431 LINUX_FIRMWARE_LICENSE_FILES = $(sort $(LINUX_FIRMWARE_ALL_LICENSE_FILES))
433 endif
435 define LINUX_FIRMWARE_INSTALL_TARGET_CMDS
436 mkdir -p $(TARGET_DIR)/lib/firmware
437 $(LINUX_FIRMWARE_INSTALL_FILES)
438 $(LINUX_FIRMWARE_INSTALL_DIRS)
439 endef
441 $(eval $(generic-package))