Files
meta-pinephone-diya/recipes-kernel/pinephone-firmware/pinephone-firmware.bb
2025-07-11 10:52:26 +02:00

153 lines
9.4 KiB
BlitzBasic

DESCRIPTION = "UWE5622 Wifi firmware"
LICENSE = "CC0-1.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/${LICENSE};md5=0ceb3372c9595f0a8067e55da801e4a1"
S = "${WORKDIR}"
COMPATIBLE_MACHINE = "pinephone"
SRC_URI:append = " \
file://rtw89/rtw8852a_fw.bin \
file://wcnmodem.bin \
file://anx7688-fw.bin \
file://ov5640_af.bin \
file://regulatory.db.p7s \
file://rockchip/dptx.bin \
file://hm5065-init.bin \
file://regulatory.db \
file://rtlwifi/rtl8188eufw.bin \
file://brcm/BCM4345C0.hcd \
file://brcm/brcmfmac43362-sdio.tbs-biometrics,a711.txt \
file://brcm/BCM4345C5.hcd \
file://brcm/brcmfmac43455-sdio.bin \
file://brcm/brcmfmac43456-sdio.pine64,pinebook-pro.txt \
file://brcm/brcmfmac43455-sdio.pine64,pinebook-pro.txt \
file://brcm/brcmfmac43752-pcie.bin \
file://brcm/brcmfmac43455-sdio.pine64,pinephone-pro.txt \
file://brcm/brcmfmac43455-sdio.txt \
file://brcm/brcmfmac43362-sdio.txt \
file://brcm/brcmfmac43456-sdio.bin \
file://brcm/brcmfmac43456-sdio.xunlong,orangepi-3.txt \
file://brcm/BCM20702A1.hcd \
file://brcm/brcmfmac43455-sdio.clm_blob \
file://brcm/2020-02-12/brcmfmac43456-sdio.bin \
file://brcm/2020-02-12/brcmfmac43456-sdio.txt \
file://brcm/brcmfmac43752-pcie.clm_blob \
file://brcm/brcmfmac43456-sdio.txt \
file://brcm/brcmfmac43752-pcie.txt \
file://brcm/brcmfmac43456-sdio.clm_blob \
file://brcm/brcmfmac43362-sdio.bin \
file://ap6275p/wifi/nvram_AP6275P.txt \
file://ap6275p/wifi/fw_bcm43752a2_pcie_ag.bin \
file://ap6275p/wifi/clm_bcm43752a2_pcie_ag.blob \
file://ap6275p/bt/BCM4362A2.hcd \
file://rtw88/rtw8822c_wow_fw.bin \
file://rtw88/rtw8822c_fw.bin \
file://rtw88/rtw8703b_fw.bin \
file://rtw88/rtw8703b_wow_fw.bin \
file://rtw88/rtw8822b_fw.bin \
file://rtw88/rtw8821c_fw.bin \
file://rtl_bt/rtl8723bs_config-pine64.bin \
file://rtl_bt/rtl8723cs_xx_fw.bin \
file://rtl_bt/rtl8723cs_xx_config-pinephone.bin \
file://rtl_bt/rtl8723cs_xx_config.bin \
file://rtl_bt/rtl8821c_config.bin \
file://rtl_bt/rtl8821c_fw.bin \
file://rtl_bt/rtl8822b_config.bin \
file://rtl_bt/rtl8822b_fw.bin \
file://rt2870.bin \
file://rtl_nic/rtl8125b-1.fw \
file://rtl_nic/rtl8168h-2.fw \
file://rtl_nic/rtl8153a-4.fw \
file://rtl_nic/rtl8125b-2.fw \
file://rtl_nic/rtl8125a-3.fw \
file://hm5065-af.bin \
file://wifi_2355b001_1ant.ini \
"
#regulatory.db
#regulatory.db.p7s
# anx7688-fw.bin
# rtl_bt/rtl8723cs_xx_config.bin
# rtl_bt/rtl8723cs_xx_fw.bin
# ov5640_af.bin
# rtw88/rtw8703b_wow_fw.bin
# rtw88/rtw8703b_fw.bin"
do_install() {
install -d ${D}${base_libdir}/firmware
# install -d ${D}${base_libdir}/firmware/rtw89
# install -d ${D}${base_libdir}/firmware/rockchip
# install -d ${D}${base_libdir}/firmware/rtlwifi
# install -d ${D}${base_libdir}/firmware/brcm
# install -d ${D}${base_libdir}/firmware/brcm/2020-02-12
# install -d ${D}${base_libdir}/firmware/ap6275p
# install -d ${D}${base_libdir}/firmware/ap6275p/wifi
#install -d ${D}${base_libdir}/firmware/ap6275p/bt
install -d ${D}${base_libdir}/firmware/rtw88
install -d ${D}${base_libdir}/firmware/rtl_bt
#install -d ${D}${base_libdir}/firmware/rtl_nic
# install -m 0644 ${S}/rtw89/rtw8852a_fw.bin ${D}${base_libdir}/firmware/rtw89/rtw8852a_fw.bin
# install -m 0644 ${S}/wcnmodem.bin ${D}${base_libdir}/firmware/wcnmodem.bin
install -m 0644 ${S}/anx7688-fw.bin ${D}${base_libdir}/firmware/anx7688-fw.bin
install -m 0644 ${S}/ov5640_af.bin ${D}${base_libdir}/firmware/ov5640_af.bin
# install -m 0644 ${S}/regulatory.db.p7s ${D}${base_libdir}/firmware/regulatory.db.p7s
# install -m 0644 ${S}/rockchip/dptx.bin ${D}${base_libdir}/firmware/rockchip/dptx.bin
# install -m 0644 ${S}/hm5065-init.bin ${D}${base_libdir}/firmware/hm5065-init.bin
# install -m 0644 ${S}/regulatory.db ${D}${base_libdir}/firmware/regulatory.db
# install -m 0644 ${S}/rtlwifi/rtl8188eufw.bin ${D}${base_libdir}/firmware/rtlwifi/rtl8188eufw.bin
# install -m 0644 ${S}/brcm/BCM4345C0.hcd ${D}${base_libdir}/firmware/brcm/BCM4345C0.hcd
# install -m 0644 ${S}/brcm/brcmfmac43362-sdio.tbs-biometrics,a711.txt ${D}${base_libdir}/firmware/brcm/brcmfmac43362-sdio.tbs-biometrics,a711.txt
# install -m 0644 ${S}/brcm/BCM4345C5.hcd ${D}${base_libdir}/firmware/brcm/BCM4345C5.hcd
# install -m 0644 ${S}/brcm/brcmfmac43455-sdio.bin ${D}${base_libdir}/firmware/brcm/brcmfmac43455-sdio.bin
# install -m 0644 ${S}/brcm/brcmfmac43456-sdio.pine64,pinebook-pro.txt ${D}${base_libdir}/firmware/brcm/brcmfmac43456-sdio.pine64,pinebook-pro.txt
# install -m 0644 ${S}/brcm/brcmfmac43455-sdio.pine64,pinebook-pro.txt ${D}${base_libdir}/firmware/brcm/brcmfmac43455-sdio.pine64,pinebook-pro.txt
# install -m 0644 ${S}/brcm/brcmfmac43752-pcie.bin ${D}${base_libdir}/firmware/brcm/brcmfmac43752-pcie.bin
# install -m 0644 ${S}/brcm/brcmfmac43455-sdio.pine64,pinephone-pro.txt ${D}${base_libdir}/firmware/brcm/brcmfmac43455-sdio.pine64,pinephone-pro.txt
# install -m 0644 ${S}/brcm/brcmfmac43455-sdio.txt ${D}${base_libdir}/firmware/brcm/brcmfmac43455-sdio.txt
# install -m 0644 ${S}/brcm/brcmfmac43362-sdio.txt ${D}${base_libdir}/firmware/brcm/brcmfmac43362-sdio.txt
# install -m 0644 ${S}/brcm/brcmfmac43456-sdio.bin ${D}${base_libdir}/firmware/brcm/brcmfmac43456-sdio.bin
# install -m 0644 ${S}/brcm/brcmfmac43456-sdio.xunlong,orangepi-3.txt ${D}${base_libdir}/firmware/brcm/brcmfmac43456-sdio.xunlong,orangepi-3.txt
# install -m 0644 ${S}/brcm/BCM20702A1.hcd ${D}${base_libdir}/firmware/brcm/BCM20702A1.hcd
# install -m 0644 ${S}/brcm/brcmfmac43455-sdio.clm_blob ${D}${base_libdir}/firmware/brcm/brcmfmac43455-sdio.clm_blob
# install -m 0644 ${S}/brcm/2020-02-12/brcmfmac43456-sdio.bin ${D}${base_libdir}/firmware/brcm/2020-02-12/brcmfmac43456-sdio.bin
# install -m 0644 ${S}/brcm/2020-02-12/brcmfmac43456-sdio.txt ${D}${base_libdir}/firmware/brcm/2020-02-12/brcmfmac43456-sdio.txt
# install -m 0644 ${S}/brcm/brcmfmac43752-pcie.clm_blob ${D}${base_libdir}/firmware/brcm/brcmfmac43752-pcie.clm_blob
# install -m 0644 ${S}/brcm/brcmfmac43456-sdio.txt ${D}${base_libdir}/firmware/brcm/brcmfmac43456-sdio.txt
# install -m 0644 ${S}/brcm/brcmfmac43752-pcie.txt ${D}${base_libdir}/firmware/brcm/brcmfmac43752-pcie.txt
# install -m 0644 ${S}/brcm/brcmfmac43456-sdio.clm_blob ${D}${base_libdir}/firmware/brcm/brcmfmac43456-sdio.clm_blob
# install -m 0644 ${S}/brcm/brcmfmac43362-sdio.bin ${D}${base_libdir}/firmware/brcm/brcmfmac43362-sdio.bin
# install -m 0644 ${S}/ap6275p/wifi/nvram_AP6275P.txt ${D}${base_libdir}/firmware/ap6275p/wifi/nvram_AP6275P.txt
# install -m 0644 ${S}/ap6275p/wifi/fw_bcm43752a2_pcie_ag.bin ${D}${base_libdir}/firmware/ap6275p/wifi/fw_bcm43752a2_pcie_ag.bin
# install -m 0644 ${S}/ap6275p/wifi/clm_bcm43752a2_pcie_ag.blob ${D}${base_libdir}/firmware/ap6275p/wifi/clm_bcm43752a2_pcie_ag.blob
# install -m 0644 ${S}/ap6275p/bt/BCM4362A2.hcd ${D}${base_libdir}/firmware/ap6275p/bt/BCM4362A2.hcd
# install -m 0644 ${S}/rtw88/rtw8822c_wow_fw.bin ${D}${base_libdir}/firmware/rtw88/rtw8822c_wow_fw.bin
# install -m 0644 ${S}/rtw88/rtw8822c_fw.bin ${D}${base_libdir}/firmware/rtw88/rtw8822c_fw.bin
install -m 0644 ${S}/rtw88/rtw8703b_fw.bin ${D}${base_libdir}/firmware/rtw88/rtw8703b_fw.bin
install -m 0644 ${S}/rtw88/rtw8703b_wow_fw.bin ${D}${base_libdir}/firmware/rtw88/rtw8703b_wow_fw.bin
# install -m 0644 ${S}/rtw88/rtw8822b_fw.bin ${D}${base_libdir}/firmware/rtw88/rtw8822b_fw.bin
# install -m 0644 ${S}/rtw88/rtw8821c_fw.bin ${D}${base_libdir}/firmware/rtw88/rtw8821c_fw.bin
# install -m 0644 ${S}/rtl_bt/rtl8723bs_config-pine64.bin ${D}${base_libdir}/firmware/rtl_bt/rtl8723bs_config-pine64.bin
install -m 0644 ${S}/rtl_bt/rtl8723cs_xx_fw.bin ${D}${base_libdir}/firmware/rtl_bt/rtl8723cs_xx_fw.bin
install -m 0644 ${S}/rtl_bt/rtl8723cs_xx_config-pinephone.bin ${D}${base_libdir}/firmware/rtl_bt/rtl8723cs_xx_config-pinephone.bin
install -m 0644 ${S}/rtl_bt/rtl8723cs_xx_config.bin ${D}${base_libdir}/firmware/rtl_bt/rtl8723cs_xx_config.bin
# install -m 0644 ${S}/rtl_bt/rtl8821c_config.bin ${D}${base_libdir}/firmware/rtl_bt/rtl8821c_config.bin
# install -m 0644 ${S}/rtl_bt/rtl8821c_fw.bin ${D}${base_libdir}/firmware/rtl_bt/rtl8821c_fw.bin
# install -m 0644 ${S}/rtl_bt/rtl8822b_config.bin ${D}${base_libdir}/firmware/rtl_bt/rtl8822b_config.bin
# install -m 0644 ${S}/rtl_bt/rtl8822b_fw.bin ${D}${base_libdir}/firmware/rtl_bt/rtl8822b_fw.bin
# install -m 0644 ${S}/rt2870.bin ${D}${base_libdir}/firmware/rt2870.bin
# install -m 0644 ${S}/rtl_nic/rtl8125b-1.fw ${D}${base_libdir}/firmware/rtl_nic/rtl8125b-1.fw
# install -m 0644 ${S}/rtl_nic/rtl8168h-2.fw ${D}${base_libdir}/firmware/rtl_nic/rtl8168h-2.fw
# install -m 0644 ${S}/rtl_nic/rtl8153a-4.fw ${D}${base_libdir}/firmware/rtl_nic/rtl8153a-4.fw
# install -m 0644 ${S}/rtl_nic/rtl8125b-2.fw ${D}${base_libdir}/firmware/rtl_nic/rtl8125b-2.fw
# install -m 0644 ${S}/rtl_nic/rtl8125a-3.fw ${D}${base_libdir}/firmware/rtl_nic/rtl8125a-3.fw
# install -m 0644 ${S}/hm5065-af.bin ${D}${base_libdir}/firmware/hm5065-af.bin
# install -m 0644 ${S}/wifi_2355b001_1ant.ini ${D}${base_libdir}/firmware/wifi_2355b001_1ant.ini
}
FILES:${PN} = "${base_libdir}/*"
PACKAGES = "${PN}"