Amit Pundir | ce6bf96 | 2021-11-23 22:33:59 +0530 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | # WLAN |
| 4 | ath10k_firmware_files := \ |
| 5 | board-2.bin \ |
| 6 | firmware-5.bin |
| 7 | |
| 8 | ath11k_firmware_files := \ |
| 9 | amss.bin \ |
| 10 | m3.bin |
| 11 | |
| 12 | # Bluetooth firmware files |
| 13 | qca_firmware_files := \ |
| 14 | crbtfw21.tlv \ |
| 15 | crnv21.bin \ |
| 16 | htbtfw20.tlv \ |
| 17 | htnv20.bin |
| 18 | |
| 19 | # Adreno firmware files |
| 20 | qcom_firmware_files := \ |
| 21 | a630_gmu.bin \ |
| 22 | a630_sqe.fw \ |
| 23 | a650_gmu.bin \ |
| 24 | a650_sqe.fw |
| 25 | |
| 26 | # Firmware files to be copied to qcom/sdm845/ path |
| 27 | # |
| 28 | # SM8250 DSP binaries are being PRODUCT_COPY_FILES |
| 29 | # because of conflicting build target names |
| 30 | qcom_sdm845_firmware_files := \ |
| 31 | a630_zap.mbn \ |
| 32 | adsp.mbn \ |
| 33 | adspr.jsn \ |
| 34 | adspua.jsn \ |
| 35 | cdsp.mbn \ |
| 36 | cdspr.jsn \ |
| 37 | mba.mbn \ |
| 38 | modem.mbn \ |
| 39 | modemuw.jsn |
| 40 | |
| 41 | # Venus Codec |
| 42 | # SM8250 Venus binaries are being PRODUCT_COPY_FILES |
| 43 | # because of conflicting build target names |
| 44 | venus_sdm845_firmware_files := \ |
| 45 | venus.b00 \ |
| 46 | venus.b01 \ |
| 47 | venus.b02 \ |
| 48 | venus.b03 \ |
| 49 | venus.b04 \ |
| 50 | venus.mbn \ |
| 51 | venus.mdt |
| 52 | |
| 53 | # Include macro for Android.mk BUILD_PREBUILT build target |
| 54 | # Usage: |
| 55 | # add-qcom-firmware(LOCAL_MODULE, LOCAL_MODULE_SRC_FILES, LOCAL_MODULE_PATH, LOCAL_NOTICE_FILE) |
| 56 | |
| 57 | include vendor/linaro_devices/common/CommonBuildMacros.mk |
| 58 | |
| 59 | FIRMWARE_PATH := $(TARGET_OUT_VENDOR)/firmware/ |
| 60 | |
| 61 | $(call add-qcom-firmware, lt9611uxc_fw.bin, lt9611uxc_fw.bin, $(FIRMWARE_PATH), $(LOCAL_PATH)/LICENSE.Lontium) |
| 62 | $(call add-qcom-firmware, a650_zap.mbn, qcom/sm8250/a650_zap.mbn, $(FIRMWARE_PATH)/qcom/sm8250/, $(LOCAL_PATH)/LICENSE.qcom) |
| 63 | $(call add-qcom-firmware, wlanmdsp.mbn, ath10k/WCN3990/hw1.0/wlanmdsp.mbn, $(FIRMWARE_PATH)/qcom/sdm845/, $(LOCAL_PATH)/ath10k/WCN3990/hw1.0/notice.txt_wlanmdsp) |
| 64 | |
| 65 | $(foreach f, $(ath10k_firmware_files), $(call add-qcom-firmware, $(f), ath10k/WCN3990/hw1.0/$(f), $(FIRMWARE_PATH)/ath10k/WCN3990/hw1.0/, $(LOCAL_PATH)/LICENSE.QualcommAtheros_ath10k)) |
| 66 | $(foreach f, $(ath11k_firmware_files), $(call add-qcom-firmware, $(f), ath11k/QCA6390/hw2.0/$(f), $(FIRMWARE_PATH)/ath11k/QCA6390/hw2.0/, $(LOCAL_PATH)/LICENSE.QualcommAtheros_ath10k)) |
| 67 | $(foreach f, $(qca_firmware_files), $(call add-qcom-firmware, $(f), qca/$(f), $(FIRMWARE_PATH)/qca/, $(LOCAL_PATH)/LICENSE.QualcommAtheros_ath10k)) |
| 68 | $(foreach f, $(qcom_firmware_files), $(call add-qcom-firmware, $(f), qcom/$(f), $(FIRMWARE_PATH)/qcom/, $(LOCAL_PATH)/LICENSE.qcom)) |
| 69 | $(foreach f, $(qcom_sdm845_firmware_files), $(call add-qcom-firmware, $(f), qcom/sdm845/$(f), $(FIRMWARE_PATH)/qcom/sdm845/, $(LOCAL_PATH)/LICENSE.qcom)) |
| 70 | $(foreach f, $(venus_sdm845_firmware_files), $(call add-qcom-firmware, $(f), qcom/venus-5.2/$(f), $(FIRMWARE_PATH)/qcom/venus-5.2/, $(LOCAL_PATH)/LICENSE.qcom)) |
| 71 | |
| 72 | # 5.10 kernel need adsp.mdt and cdsp.mdt files |
| 73 | $(call add-qcom-firmware, adsp.mdt, qcom/sdm845/adsp.mbn, $(FIRMWARE_PATH)/qcom/sdm845/, $(LOCAL_PATH)/LICENSE.qcom) |
| 74 | $(call add-qcom-firmware, cdsp.mdt, qcom/sdm845/cdsp.mbn, $(FIRMWARE_PATH)/qcom/sdm845/, $(LOCAL_PATH)/LICENSE.qcom) |
| 75 | |
| 76 | # 5.4 kernel need a630_zap.mdt file |
| 77 | $(call add-qcom-firmware, a630_zap.mdt, qcom/sdm845/a630_zap.mbn, $(FIRMWARE_PATH)/qcom/, $(LOCAL_PATH)/LICENSE.qcom) |