balena-allwinner/layers/meta-resin-allwinner/recipes-kernel/linux-firmware/linux-firmware_%.bbappend
Florin Sarbu e9dfd398af linux-firmware_%.bbappend: Add and package nvram settings for AP6212A
This WiFi chipset is on a Nanopi Neo Air variant. File is taken from
https://github.com/BPI-SINOVOIP/BPI-files/blob/master/others/brcm/
lib/firmware/ap6212/nvram.txt

Signed-off-by: Florin Sarbu <florin@resin.io>
2018-10-09 14:08:33 +02:00

49 lines
1.8 KiB
Text

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
# These firmware files are fetched from https://github.com/armbian/build/tree/master/packages/extras/firmware/brcm
SRC_URI_append = " \
file://bcm4329.hcd \
file://bcm4330.hcd \
file://bcm43438-sdio.hcd \
file://brcmfmac43430a0-sdio.bin \
file://brcmfmac43430a0-sdio.txt \
file://config.txt \
file://brcmfmac43362-sdio.txt \
file://brcmfmac43430-sdio.txt \
"
do_install_append() {
cp ${WORKDIR}/bcm4329.hcd ${D}/lib/firmware/brcm/bcm4329.hcd
cp ${WORKDIR}/bcm4330.hcd ${D}/lib/firmware/brcm/bcm4330.hcd
cp ${WORKDIR}/bcm43438-sdio.hcd ${D}/lib/firmware/brcm/bcm43438-sdio.hcd
cp ${WORKDIR}/brcmfmac43430a0-sdio.bin ${D}/lib/firmware/brcm/brcmfmac43430a0-sdio.bin
cp ${WORKDIR}/brcmfmac43430a0-sdio.txt ${D}/lib/firmware/brcm/brcmfmac43430a0-sdio.txt
cp ${WORKDIR}/config.txt ${D}/lib/firmware/brcm/config.txt
cp ${S}/brcm/brcmfmac43362-sdio.bin ${D}/lib/firmware/brcm/
cp ${WORKDIR}/brcmfmac43362-sdio.txt ${D}/lib/firmware/brcm/
}
do_install_append_nanopi-neo-air() {
mkdir -p ${D}/${nonarch_base_libdir}/firmware/brcm
install -m 0644 ${WORKDIR}/brcmfmac43430-sdio.txt ${D}${nonarch_base_libdir}/firmware/brcm
}
PACKAGES =+ "${PN}-ap6212 ${PN}-brcm43362"
FILES_${PN}-ap6212 = " \
/lib/firmware/brcm/bcm4329.hcd \
/lib/firmware/brcm/bcm4330.hcd \
/lib/firmware/brcm/bcm43438-sdio.hcd \
/lib/firmware/brcm/brcmfmac43430a0-sdio.bin \
/lib/firmware/brcm/brcmfmac43430a0-sdio.txt \
/lib/firmware/brcm/config.txt \
"
FILES_${PN}-brcm43362 = " \
/lib/firmware/brcm/brcmfmac43362-sdio.bin \
/lib/firmware/brcm/brcmfmac43362-sdio.txt \
"
FILES_${PN}-bcm43430_append_nanopi-neo-air = " \
${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt \
"