blob: 76a7998e261edb9c62e2649b32f3bf577b4443e9 [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
# WLAN
ath10k_firmware_files := \
board-2.bin \
firmware-5.bin
ath11k_firmware_files := \
amss.bin \
m3.bin
# Bluetooth firmware files
qca_firmware_files := \
crbtfw21.tlv \
crnv21.bin \
htbtfw20.tlv \
htnv20.bin
# Adreno firmware files
qcom_firmware_files := \
a630_gmu.bin \
a630_sqe.fw \
a650_gmu.bin \
a650_sqe.fw
# Firmware files to be copied to qcom/sdm845/ path
#
# SM8250 DSP binaries are being PRODUCT_COPY_FILES
# because of conflicting build target names
qcom_sdm845_firmware_files := \
a630_zap.mbn \
adsp.mbn \
adspr.jsn \
adspua.jsn \
cdsp.mbn \
cdspr.jsn \
mba.mbn \
modem.mbn \
modemuw.jsn
# Venus Codec
# SM8250 Venus binaries are being PRODUCT_COPY_FILES
# because of conflicting build target names
venus_sdm845_firmware_files := \
venus.b00 \
venus.b01 \
venus.b02 \
venus.b03 \
venus.b04 \
venus.mbn \
venus.mdt
# Include macro for Android.mk BUILD_PREBUILT build target
# Usage:
# add-qcom-firmware(LOCAL_MODULE, LOCAL_MODULE_SRC_FILES, LOCAL_MODULE_PATH, LOCAL_NOTICE_FILE)
include vendor/linaro_devices/common/CommonBuildMacros.mk
FIRMWARE_PATH := $(TARGET_OUT_VENDOR)/firmware/
$(call add-qcom-firmware, lt9611uxc_fw.bin, lt9611uxc_fw.bin, $(FIRMWARE_PATH), $(LOCAL_PATH)/LICENSE.Lontium)
$(call add-qcom-firmware, a650_zap.mbn, qcom/sm8250/a650_zap.mbn, $(FIRMWARE_PATH)/qcom/sm8250/, $(LOCAL_PATH)/LICENSE.qcom)
$(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)
$(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))
$(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))
$(foreach f, $(qca_firmware_files), $(call add-qcom-firmware, $(f), qca/$(f), $(FIRMWARE_PATH)/qca/, $(LOCAL_PATH)/LICENSE.QualcommAtheros_ath10k))
$(foreach f, $(qcom_firmware_files), $(call add-qcom-firmware, $(f), qcom/$(f), $(FIRMWARE_PATH)/qcom/, $(LOCAL_PATH)/LICENSE.qcom))
$(foreach f, $(qcom_sdm845_firmware_files), $(call add-qcom-firmware, $(f), qcom/sdm845/$(f), $(FIRMWARE_PATH)/qcom/sdm845/, $(LOCAL_PATH)/LICENSE.qcom))
$(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))
# 5.10 kernel need adsp.mdt and cdsp.mdt files
$(call add-qcom-firmware, adsp.mdt, qcom/sdm845/adsp.mbn, $(FIRMWARE_PATH)/qcom/sdm845/, $(LOCAL_PATH)/LICENSE.qcom)
$(call add-qcom-firmware, cdsp.mdt, qcom/sdm845/cdsp.mbn, $(FIRMWARE_PATH)/qcom/sdm845/, $(LOCAL_PATH)/LICENSE.qcom)
# 5.4 kernel need a630_zap.mdt file
$(call add-qcom-firmware, a630_zap.mdt, qcom/sdm845/a630_zap.mbn, $(FIRMWARE_PATH)/qcom/, $(LOCAL_PATH)/LICENSE.qcom)