rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | DESCRIPTION = "Combo FW" |
| 2 | LICENSE = "MediaTekProprietary" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 4 | INSANE_SKIP_${PN} += "installed-vs-shipped" |
| 5 | FILES_${PN} += "/lib/firmware/mt6630_patch_e3_0_hdr.bin /lib/firmware/mt6630_patch_e3_1_hdr.bin" |
| 6 | FILES_${PN} += "/lib/firmware/ROMv2_lm_patch_1_0_hdr.bin /lib/firmware/ROMv2_lm_patch_1_1_hdr.bin" |
| 7 | FILES_${PN} += "/lib/firmware/WIFI_RAM_CODE_MT6630" |
| 8 | FILES_${PN} += "/vendor/firmware/WIFI_RAM_CODE_8167" |
| 9 | |
| 10 | inherit workonsrc |
| 11 | WORKONSRC = "${TOPDIR}/../src/connectivity/combo_tool/patch_folder" |
| 12 | |
| 13 | do_install () { |
| 14 | if test "${COMBO_CHIP_ID}" = "mt6630"; then |
| 15 | install -d ${D}/lib/firmware |
| 16 | if test "${TARGET_PLATFORM}" = "mt2731"; then |
| 17 | install -m 0755 ${S}/mt2731/mt6630_patch_e3_0_hdr.bin ${D}/lib/firmware |
| 18 | install -m 0755 ${S}/mt2731/mt6630_patch_e3_1_hdr.bin ${D}/lib/firmware |
| 19 | else |
| 20 | install -m 0755 ${S}/mt6630_patch_e3_0_hdr.bin ${D}/lib/firmware |
| 21 | install -m 0755 ${S}/mt6630_patch_e3_1_hdr.bin ${D}/lib/firmware |
| 22 | fi |
| 23 | if test "${TARGET_PLATFORM}" = "mt8516"; then |
| 24 | install -m 0755 ${S}/audio/WIFI_RAM_CODE_MT6630 ${D}/lib/firmware |
| 25 | else |
| 26 | install -m 0755 ${S}/WIFI_RAM_CODE_MT6630 ${D}/lib/firmware |
| 27 | fi |
| 28 | fi |
| 29 | |
| 30 | if test "${COMBO_CHIP_ID}" = "mt8167"; then |
| 31 | install -d ${D}/lib/firmware |
| 32 | install -m 0755 ${S}/ROMv2_lm_patch_1_0_hdr.bin ${D}/lib/firmware |
| 33 | install -m 0755 ${S}/ROMv2_lm_patch_1_1_hdr.bin ${D}/lib/firmware |
| 34 | install -d ${D}/vendor/firmware |
| 35 | install -m 0755 ${S}/WIFI_RAM_CODE_8167 ${D}/vendor/firmware |
| 36 | fi |
| 37 | } |