summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2013-03-22 10:21:00 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-23 11:41:27 +0000
commite887bd9f512790e494aa87c3f5556dd8f27cffba (patch)
treec48dcb88b70bff0d4e6b87c8ad4559bbd5e1f262 /meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
parent30ad60709511a9e01050235d38c7774f12d34a16 (diff)
downloadpoky-e887bd9f512790e494aa87c3f5556dd8f27cffba.tar.gz
linux-firmware: Package Broadcom firmwares
Adds specific packages for bcm4329, bcm4330 and bcm4334, including handling of symbolic link for the needed firmware filename. (From OE-Core rev: a8b8fb0447e8fb72050d1d9775ccb0e2b894a477) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> 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.bb39
1 files changed, 37 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 0bf5a08066..b9e00fcdd6 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
@@ -17,6 +17,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.radeon;md5=e56b405656593a0c97e478513051ea0e \
17 file://LICENCE.atheros_firmware;md5=30a14c7823beedac9fa39c64fdd01a13 \ 17 file://LICENCE.atheros_firmware;md5=30a14c7823beedac9fa39c64fdd01a13 \
18 file://LICENCE.agere;md5=af0133de6b4a9b2522defd5f188afd31 \ 18 file://LICENCE.agere;md5=af0133de6b4a9b2522defd5f188afd31 \
19 file://LICENCE.rtlwifi_firmware.txt;md5=00d06cfd3eddd5a2698948ead2ad54a5 \ 19 file://LICENCE.rtlwifi_firmware.txt;md5=00d06cfd3eddd5a2698948ead2ad54a5 \
20 file://LICENCE.broadcom_bcm43xx;md5=3160c14df7228891b868060e1951dfbc \
20 " 21 "
21 22
22SRCREV = "c530a75c1e6a472b0eb9558310b518f0dfcd8860" 23SRCREV = "c530a75c1e6a472b0eb9558310b518f0dfcd8860"
@@ -27,7 +28,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware
27 28
28S = "${WORKDIR}/git" 29S = "${WORKDIR}/git"
29 30
30inherit allarch 31inherit allarch update-alternatives
31 32
32do_compile() { 33do_compile() {
33 : 34 :
@@ -48,7 +49,9 @@ do_install() {
48 ( cd ${D}/lib/firmware ; ln -sf ti-connectivity/* . ) 49 ( cd ${D}/lib/firmware ; ln -sf ti-connectivity/* . )
49} 50}
50 51
51PACKAGES =+ "${PN}-ralink ${PN}-sd8686 ${PN}-rtl8192cu linux-firmware-rtl8192ce linux-firmware-rtl8192su ${PN}-wl12xx" 52PACKAGES =+ "${PN}-ralink ${PN}-sd8686 ${PN}-rtl8192cu \
53 ${PN}-rtl8192ce ${PN}-rtl8192su ${PN}-wl12xx \
54 ${PN}-bcm4329 ${PN}-bcm4330 ${PN}-bcm4334"
52 55
53LICENSE_${PN}-ralink = "Firmware-ralink" 56LICENSE_${PN}-ralink = "Firmware-ralink"
54FILES_${PN}-ralink = " \ 57FILES_${PN}-ralink = " \
@@ -85,4 +88,36 @@ FILES_${PN}-wl12xx = " \
85 /lib/firmware/ti-connectivity \ 88 /lib/firmware/ti-connectivity \
86" 89"
87 90
91# WARNING: The ALTERNATIVE_* variables are not using ${PN} because of
92# a bug in bitbake; when this is fixed and bitbake learns how to proper
93# pass variable flags with expansion we can rework this patch.
94
95ALTERNATIVE_LINK_NAME[brcmfmac-sdio.bin] = "/lib/firmware/brcm/brcmfmac-sdio.bin"
96
97LICENSE_${PN}-bcm4329 = "Firmware-bcm4329"
98FILES_${PN}-bcm4329 = " \
99 /lib/firmware/brcm/brcmfmac4329.bin \
100 /lib/firmware/LICENCE.broadcom_bcm43xx \
101"
102ALTERNATIVE_linux-firmware-bcm4329 = "brcmfmac-sdio.bin"
103ALTERNATIVE_TARGET_linux-firmware-bcm4329[brcmfmac-sdio.bin] = "/lib/firmware/brcm/brcmfmac4329.bin"
104
105LICENSE_${PN}-bcm4330 = "Firmware-bcm4330"
106FILES_${PN}-bcm4330 = " \
107 /lib/firmware/brcm/brcmfmac4330.bin \
108 /lib/firmware/LICENCE.broadcom_bcm43xx \
109"
110
111ALTERNATIVE_linux-firmware-bcm4330 = "brcmfmac-sdio.bin"
112ALTERNATIVE_TARGET_linux-firmware-bcm4330[brcmfmac-sdio.bin] = "/lib/firmware/brcm/brcmfmac4330.bin"
113
114LICENSE_${PN}-bcm4334 = "Firmware-bcm4334"
115FILES_${PN}-bcm4334 = " \
116 /lib/firmware/brcm/brcmfmac4334.bin \
117 /lib/firmware/LICENCE.broadcom_bcm43xx \
118"
119
120ALTERNATIVE_linux-firmware-bcm4334 = "brcmfmac-sdio.bin"
121ALTERNATIVE_TARGET_linux-firmware-bcm4334[brcmfmac-sdio.bin] = "/lib/firmware/brcm/brcmfmac4334.bin"
122
88FILES_${PN} += "/lib/firmware/*" 123FILES_${PN} += "/lib/firmware/*"