diff options
author | Ng Wei Tee <wei.tee.ng@intel.com> | 2017-05-04 19:04:58 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-04 11:12:11 +0000 |
commit | 0ec933118f591debc785f554c185a98a8cc577aa (patch) | |
tree | 07219b1796efd695acdf118e5d34e663eda9d648 /meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | |
parent | 3da3796133c2ebc1463b1fda9c73283e6b8460fe (diff) | |
download | poky-0ec933118f591debc785f554c185a98a8cc577aa.tar.gz |
linux-firmware: enable netronome firmware
It was previously disabled, as rpm refused to package it into noarch
package, due to the firmware being considered arch-specific. This
check is disabled in rpm now.
The netronome binaries has ELF headers which will trigger an
arch-specific error. INSANE_SKIP variable is used to skip some
package_qa check usage.
(From OE-Core rev: 2aa934bc429c407efc2a275616e16b677ceae9fe)
Signed-off-by: Ng Wei Tee <wei.tee.ng@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 8b2f6b308019e697c9d3e66969807eb573350d78)
Manual fixup to current base
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/linux-firmware/linux-firmware_git.bb')
-rw-r--r-- | meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb index c17afc9e47..a374fb6a61 100644 --- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb +++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | |||
@@ -31,6 +31,7 @@ LICENSE = "\ | |||
31 | & Firmware-Marvell \ | 31 | & Firmware-Marvell \ |
32 | & Firmware-moxa \ | 32 | & Firmware-moxa \ |
33 | & Firmware-myri10ge_firmware \ | 33 | & Firmware-myri10ge_firmware \ |
34 | & Firmware-netronome \ | ||
34 | & Firmware-nvidia \ | 35 | & Firmware-nvidia \ |
35 | & Firmware-OLPC \ | 36 | & Firmware-OLPC \ |
36 | & Firmware-ath9k-htc \ | 37 | & Firmware-ath9k-htc \ |
@@ -88,6 +89,7 @@ LIC_FILES_CHKSUM = "\ | |||
88 | file://LICENCE.Marvell;md5=9ddea1734a4baf3c78d845151f42a37a \ | 89 | file://LICENCE.Marvell;md5=9ddea1734a4baf3c78d845151f42a37a \ |
89 | file://LICENCE.moxa;md5=1086614767d8ccf744a923289d3d4261 \ | 90 | file://LICENCE.moxa;md5=1086614767d8ccf744a923289d3d4261 \ |
90 | file://LICENCE.myri10ge_firmware;md5=42e32fb89f6b959ca222e25ac8df8fed \ | 91 | file://LICENCE.myri10ge_firmware;md5=42e32fb89f6b959ca222e25ac8df8fed \ |
92 | file://LICENCE.Netronome;md5=cd2a3e6effe3cdf42731575b8e9477ed \ | ||
91 | file://LICENCE.nvidia;md5=4428a922ed3ba2ceec95f076a488ce07 \ | 93 | file://LICENCE.nvidia;md5=4428a922ed3ba2ceec95f076a488ce07 \ |
92 | file://LICENCE.OLPC;md5=5b917f9d8c061991be4f6f5f108719cd \ | 94 | file://LICENCE.OLPC;md5=5b917f9d8c061991be4f6f5f108719cd \ |
93 | file://LICENCE.open-ath9k-htc-firmware;md5=1b33c9f4d17bc4d457bdb23727046837 \ | 95 | file://LICENCE.open-ath9k-htc-firmware;md5=1b33c9f4d17bc4d457bdb23727046837 \ |
@@ -146,6 +148,7 @@ NO_GENERIC_LICENSE[Firmware-kaweth] = "LICENCE.kaweth" | |||
146 | NO_GENERIC_LICENSE[Firmware-Marvell] = "LICENCE.Marvell" | 148 | NO_GENERIC_LICENSE[Firmware-Marvell] = "LICENCE.Marvell" |
147 | NO_GENERIC_LICENSE[Firmware-moxa] = "LICENCE.moxa" | 149 | NO_GENERIC_LICENSE[Firmware-moxa] = "LICENCE.moxa" |
148 | NO_GENERIC_LICENSE[Firmware-myri10ge_firmware] = "LICENCE.myri10ge_firmware" | 150 | NO_GENERIC_LICENSE[Firmware-myri10ge_firmware] = "LICENCE.myri10ge_firmware" |
151 | NO_GENERIC_LICENSE[Firmware-netronome] = "LICENCE.Netronome" | ||
149 | NO_GENERIC_LICENSE[Firmware-nvidia] = "LICENCE.nvidia" | 152 | NO_GENERIC_LICENSE[Firmware-nvidia] = "LICENCE.nvidia" |
150 | NO_GENERIC_LICENSE[Firmware-OLPC] = "LICENCE.OLPC" | 153 | NO_GENERIC_LICENSE[Firmware-OLPC] = "LICENCE.OLPC" |
151 | NO_GENERIC_LICENSE[Firmware-ath9k-htc] = "LICENCE.open-ath9k-htc-firmware" | 154 | NO_GENERIC_LICENSE[Firmware-ath9k-htc] = "LICENCE.open-ath9k-htc-firmware" |
@@ -211,8 +214,6 @@ do_install() { | |||
211 | # fixup wl12xx location, after 2.6.37 the kernel searches a different location for it | 214 | # fixup wl12xx location, after 2.6.37 the kernel searches a different location for it |
212 | ( cd ${D}${nonarch_base_libdir}/firmware ; ln -sf ti-connectivity/* . ) | 215 | ( cd ${D}${nonarch_base_libdir}/firmware ; ln -sf ti-connectivity/* . ) |
213 | 216 | ||
214 | # TODO: Remove netronome firmware until RPM packaging issue is resolved | ||
215 | rm -r ${D}${nonarch_base_libdir}/firmware/netronome/ | ||
216 | } | 217 | } |
217 | 218 | ||
218 | 219 | ||
@@ -240,6 +241,7 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \ | |||
240 | ${PN}-i915-license ${PN}-i915 \ | 241 | ${PN}-i915-license ${PN}-i915 \ |
241 | ${PN}-adsp-sst-license ${PN}-adsp-sst \ | 242 | ${PN}-adsp-sst-license ${PN}-adsp-sst \ |
242 | ${PN}-bnx2-mips \ | 243 | ${PN}-bnx2-mips \ |
244 | ${PN}-netronome-license ${PN}-netronome \ | ||
243 | ${PN}-whence-license \ | 245 | ${PN}-whence-license \ |
244 | ${PN}-license \ | 246 | ${PN}-license \ |
245 | " | 247 | " |
@@ -365,6 +367,21 @@ RDEPENDS_${PN}-sd8801 += "${PN}-marvell-license" | |||
365 | RDEPENDS_${PN}-sd8887 += "${PN}-marvell-license" | 367 | RDEPENDS_${PN}-sd8887 += "${PN}-marvell-license" |
366 | RDEPENDS_${PN}-sd8897 += "${PN}-marvell-license" | 368 | RDEPENDS_${PN}-sd8897 += "${PN}-marvell-license" |
367 | 369 | ||
370 | # For netronome | ||
371 | LICENSE_${PN}-netronome = "Firmware-netronome" | ||
372 | |||
373 | FILES_${PN}-netronome-license = " \ | ||
374 | ${nonarch_base_libdir}/firmware/LICENCE.Netronome \ | ||
375 | " | ||
376 | FILES_${PN}-netronome = " \ | ||
377 | ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0081*.nffw \ | ||
378 | ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0096*.nffw \ | ||
379 | ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0097*.nffw \ | ||
380 | ${nonarch_base_libdir}/firmware/netronome/nic_AMDA0099*.nffw \ | ||
381 | " | ||
382 | |||
383 | RDEPENDS_${PN}-netronome += "${PN}-netronome-license" | ||
384 | |||
368 | # For rtl | 385 | # For rtl |
369 | LICENSE_${PN}-rtl8188 = "Firmware-rtlwifi_firmware" | 386 | LICENSE_${PN}-rtl8188 = "Firmware-rtlwifi_firmware" |
370 | LICENSE_${PN}-rtl8192cu = "Firmware-rtlwifi_firmware" | 387 | LICENSE_${PN}-rtl8192cu = "Firmware-rtlwifi_firmware" |
@@ -640,3 +657,6 @@ python populate_packages_prepend () { | |||
640 | iwlwifi_pkgs = filter(lambda x: x.find('-iwlwifi-') != -1, firmware_pkgs) | 657 | iwlwifi_pkgs = filter(lambda x: x.find('-iwlwifi-') != -1, firmware_pkgs) |
641 | d.appendVar('RDEPENDS_linux-firmware-iwlwifi', ' ' + ' '.join(iwlwifi_pkgs)) | 658 | d.appendVar('RDEPENDS_linux-firmware-iwlwifi', ' ' + ' '.join(iwlwifi_pkgs)) |
642 | } | 659 | } |
660 | |||
661 | # Netronome binaries has ELF headers and therefore triggers an arch-specific error. | ||
662 | INSANE_SKIP_${PN}-netronome = "arch" | ||