summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
diff options
context:
space:
mode:
authorNg Wei Tee <wei.tee.ng@intel.com>2017-05-04 19:04:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-04 11:12:11 +0000
commit0ec933118f591debc785f554c185a98a8cc577aa (patch)
tree07219b1796efd695acdf118e5d34e663eda9d648 /meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
parent3da3796133c2ebc1463b1fda9c73283e6b8460fe (diff)
downloadpoky-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.bb24
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"
146NO_GENERIC_LICENSE[Firmware-Marvell] = "LICENCE.Marvell" 148NO_GENERIC_LICENSE[Firmware-Marvell] = "LICENCE.Marvell"
147NO_GENERIC_LICENSE[Firmware-moxa] = "LICENCE.moxa" 149NO_GENERIC_LICENSE[Firmware-moxa] = "LICENCE.moxa"
148NO_GENERIC_LICENSE[Firmware-myri10ge_firmware] = "LICENCE.myri10ge_firmware" 150NO_GENERIC_LICENSE[Firmware-myri10ge_firmware] = "LICENCE.myri10ge_firmware"
151NO_GENERIC_LICENSE[Firmware-netronome] = "LICENCE.Netronome"
149NO_GENERIC_LICENSE[Firmware-nvidia] = "LICENCE.nvidia" 152NO_GENERIC_LICENSE[Firmware-nvidia] = "LICENCE.nvidia"
150NO_GENERIC_LICENSE[Firmware-OLPC] = "LICENCE.OLPC" 153NO_GENERIC_LICENSE[Firmware-OLPC] = "LICENCE.OLPC"
151NO_GENERIC_LICENSE[Firmware-ath9k-htc] = "LICENCE.open-ath9k-htc-firmware" 154NO_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"
365RDEPENDS_${PN}-sd8887 += "${PN}-marvell-license" 367RDEPENDS_${PN}-sd8887 += "${PN}-marvell-license"
366RDEPENDS_${PN}-sd8897 += "${PN}-marvell-license" 368RDEPENDS_${PN}-sd8897 += "${PN}-marvell-license"
367 369
370# For netronome
371LICENSE_${PN}-netronome = "Firmware-netronome"
372
373FILES_${PN}-netronome-license = " \
374 ${nonarch_base_libdir}/firmware/LICENCE.Netronome \
375"
376FILES_${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
383RDEPENDS_${PN}-netronome += "${PN}-netronome-license"
384
368# For rtl 385# For rtl
369LICENSE_${PN}-rtl8188 = "Firmware-rtlwifi_firmware" 386LICENSE_${PN}-rtl8188 = "Firmware-rtlwifi_firmware"
370LICENSE_${PN}-rtl8192cu = "Firmware-rtlwifi_firmware" 387LICENSE_${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.
662INSANE_SKIP_${PN}-netronome = "arch"