| DESCRIPTION = "Combo FW" |
| LICENSE = "MediaTekProprietary" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| INSANE_SKIP_${PN} += "installed-vs-shipped" |
| FILES_${PN} += "/lib/firmware/mt6630_patch_e3_0_hdr.bin /lib/firmware/mt6630_patch_e3_1_hdr.bin" |
| FILES_${PN} += "/lib/firmware/ROMv2_lm_patch_1_0_hdr.bin /lib/firmware/ROMv2_lm_patch_1_1_hdr.bin" |
| FILES_${PN} += "/lib/firmware/WIFI_RAM_CODE_MT6630" |
| FILES_${PN} += "/vendor/firmware/WIFI_RAM_CODE_8167" |
| |
| inherit workonsrc |
| WORKONSRC = "${TOPDIR}/../src/connectivity/combo_tool/patch_folder" |
| |
| do_install () { |
| if test "${COMBO_CHIP_ID}" = "mt6630"; then |
| install -d ${D}/lib/firmware |
| if test "${TARGET_PLATFORM}" = "mt2731"; then |
| install -m 0755 ${S}/mt2731/mt6630_patch_e3_0_hdr.bin ${D}/lib/firmware |
| install -m 0755 ${S}/mt2731/mt6630_patch_e3_1_hdr.bin ${D}/lib/firmware |
| else |
| install -m 0755 ${S}/mt6630_patch_e3_0_hdr.bin ${D}/lib/firmware |
| install -m 0755 ${S}/mt6630_patch_e3_1_hdr.bin ${D}/lib/firmware |
| fi |
| if test "${TARGET_PLATFORM}" = "mt8516"; then |
| install -m 0755 ${S}/audio/WIFI_RAM_CODE_MT6630 ${D}/lib/firmware |
| else |
| install -m 0755 ${S}/WIFI_RAM_CODE_MT6630 ${D}/lib/firmware |
| fi |
| fi |
| |
| if test "${COMBO_CHIP_ID}" = "mt8167"; then |
| install -d ${D}/lib/firmware |
| install -m 0755 ${S}/ROMv2_lm_patch_1_0_hdr.bin ${D}/lib/firmware |
| install -m 0755 ${S}/ROMv2_lm_patch_1_1_hdr.bin ${D}/lib/firmware |
| install -d ${D}/vendor/firmware |
| install -m 0755 ${S}/WIFI_RAM_CODE_8167 ${D}/vendor/firmware |
| fi |
| } |