Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | LICENSE_append = " & Firmware-broadcom_brcm80211" |
| 4 | |
| 5 | LIC_FILES_CHKSUM_append = " file://${WORKDIR}/LICENSE.broadcom_brcm80211;md5=8cba1397cda6386db37210439a0da3eb" |
| 6 | |
| 7 | NO_GENERIC_LICENSE[Firmware-broadcom_brcm80211] = "LICENSE.broadcom_brcm80211" |
| 8 | |
| 9 | SRC_URI_append = " \ |
| 10 | file://brcmfmac43430-sdio.bin \ |
| 11 | file://brcmfmac43430-sdio.txt \ |
| 12 | file://LICENSE.broadcom_brcm80211 \ |
| 13 | " |
| 14 | |
| 15 | do_install_append() { |
| 16 | cp ${WORKDIR}/brcmfmac43430-sdio.* ${D}/lib/firmware/brcm/ |
| 17 | cp ${WORKDIR}/LICENSE.broadcom_brcm80211 ${D}/lib/firmware/ |
| 18 | } |
| 19 | |
| 20 | PACKAGES =+ "${PN}-brcm43430 ${PN}-brcm43430-license" |
| 21 | |
| 22 | LICENSE_${PN}-brcm43430 = "Firmware-broadcom_brcm80211" |
| 23 | FILES_${PN}-brcm43430-license = "/lib/firmware/LICENSE.broadcom_brcm80211" |
| 24 | FILES_${PN}-brcm43430 = " \ |
| 25 | /lib/firmware/brcm/brcmfmac43430-sdio.bin \ |
| 26 | /lib/firmware/brcm/brcmfmac43430-sdio.txt \ |
| 27 | " |
| 28 | |
| 29 | RDEPENDS_${PN}-brcm43430 += "${PN}-brcm43430-license" |
| 30 | |
| 31 | ALTERNATIVE_LINK_NAME[brcmfmac-sdio.bin] = "/lib/firmware/brcm/brcmfmac-sdio.bin" |
| 32 | ALTERNATIVE_TARGET_linux-firmware-brcm43430[brcmfmac-sdio.bin] = "/lib/firmware/brcm/brcmfmac43430-sdio.bin" |
| 33 | ALTERNATIVE_linux-firmware-brcm43430 = "brcmfmac-sdio.bin" |