blob: f0781c5ff4caf808ca512b15fd206323c50f3b8c [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001DESCRIPTION = "Combo FW"
2LICENSE = "MediaTekProprietary"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
4INSANE_SKIP_${PN} += "installed-vs-shipped"
5FILES_${PN} += "/lib/firmware/mt6630_patch_e3_0_hdr.bin /lib/firmware/mt6630_patch_e3_1_hdr.bin"
6FILES_${PN} += "/lib/firmware/ROMv2_lm_patch_1_0_hdr.bin /lib/firmware/ROMv2_lm_patch_1_1_hdr.bin"
7FILES_${PN} += "/lib/firmware/WIFI_RAM_CODE_MT6630"
8FILES_${PN} += "/vendor/firmware/WIFI_RAM_CODE_8167"
9
10inherit workonsrc
11WORKONSRC = "${TOPDIR}/../src/connectivity/combo_tool/patch_folder"
12
13do_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}