blob: e9cf72f1680bb82b369d42b6fd215652b041f6bf [file] [log] [blame]
John Stultzd6997a22022-01-06 00:20:44 +00001# WLAN
2PRODUCT_PACKAGES := \
3 board-2.bin \
4 firmware-5.bin \
5 wlanmdsp.mbn
6
7# Bluetooth
8PRODUCT_PACKAGES += \
9 crbtfw21.tlv \
10 crnv21.bin
11
12# Adreno
13PRODUCT_PACKAGES += \
14 a630_gmu.bin \
15 a630_sqe.fw \
16 a630_zap.mbn \
17 a630_zap.mdt
18
19# DSP (adsp+cdsp)
20PRODUCT_PACKAGES += \
21 adsp.mbn.sdm845 \
22 adsp.mdt \
23 adspr.jsn.sdm845 \
24 adspua.jsn.sdm845 \
25 cdsp.mbn.sdm845 \
26 cdsp.mdt \
27 cdspr.jsn.sdm845
28
29# Modem
30PRODUCT_PACKAGES += \
31 mba.mbn \
32 modem.mbn \
33 modemuw.jsn
34
35# Video encoder/decoder accelerator
36PRODUCT_PACKAGES += \
37 venus.b00.sdm845 \
38 venus.b01.sdm845 \
39 venus.b02.sdm845 \
40 venus.b03.sdm845 \
41 venus.b04.sdm845 \
42 venus.mbn.sdm845 \
43 venus.mdt.sdm845
44
45# USB (USB Host to PCIE)
46# For Ethernet and one of the USB-A host port to work
47PRODUCT_PACKAGES += \
48 K2026090.mem
49
50# I2C/SPI fix
51PRODUCT_PACKAGES += \
52 devcfg.mbn
53
54FIRMWARE_VENDOR_PATH := $(LINARO_VENDOR_PATH)/linux-firmware/$(EXPECTED_LINARO_VENDOR_VERSION)
55
56# Copy Venus and ADSP/CDSP firmware files to ramdisk to drop the
57# dependency on user sysfs fw loader helper (FW_LOADER_USER_HELPER_FALLBACK)
58ifeq ($(TARGET_USES_BOOT_HDR_V3), true)
59 PRODUCT_COPY_FILES += \
60 $(FIRMWARE_VENDOR_PATH)/qcom/sdm845/adsp.mbn:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/sdm845/adsp.mbn \
61 $(FIRMWARE_VENDOR_PATH)/qcom/sdm845/cdsp.mbn:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/sdm845/cdsp.mbn \
62 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.b00:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.b00 \
63 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.b01:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.b01 \
64 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.b02:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.b02 \
65 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.b03:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.b03 \
66 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.b04:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.b04 \
67 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.mbn:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.mbn \
68 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.mdt:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.mdt
69else
70 PRODUCT_COPY_FILES += \
71 $(FIRMWARE_VENDOR_PATH)/qcom/sdm845/adsp.mbn:$(TARGET_COPY_OUT_RAMDISK)/vendor/firmware/qcom/sdm845/adsp.mbn \
72 $(FIRMWARE_VENDOR_PATH)/qcom/sdm845/cdsp.mbn:$(TARGET_COPY_OUT_RAMDISK)/vendor/firmware/qcom/sdm845/cdsp.mbn \
73 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.b00:$(TARGET_COPY_OUT_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.b00 \
74 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.b01:$(TARGET_COPY_OUT_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.b01 \
75 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.b02:$(TARGET_COPY_OUT_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.b02 \
76 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.b03:$(TARGET_COPY_OUT_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.b03 \
77 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.b04:$(TARGET_COPY_OUT_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.b04 \
78 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.mbn:$(TARGET_COPY_OUT_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.mbn \
79 $(FIRMWARE_VENDOR_PATH)/qcom/venus-5.2/venus.mdt:$(TARGET_COPY_OUT_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.mdt
80endif
81
82# Copy notice/license files to rootfs
83# Not an AOSP requirement but other Linux distros do this
84PRODUCT_COPY_FILES += \
85 $(FIRMWARE_VENDOR_PATH)/ath10k/WCN3990/hw1.0/notice.txt_wlanmdsp:$(TARGET_COPY_OUT_VENDOR)/firmware/ath10k/WCN3990/hw1.0/notice.txt_wlanmdsp \
86 $(FIRMWARE_VENDOR_PATH)/qca/NOTICE.txt:$(TARGET_COPY_OUT_VENDOR)/firmware/qca/NOTICE.txt \
87 $(FIRMWARE_VENDOR_PATH)/qcom/NOTICE.txt:$(TARGET_COPY_OUT_VENDOR)/firmware/qcom/NOTICE.txt \
88 $(FIRMWARE_VENDOR_PATH)/LICENSE.QualcommAtheros_ath10k:$(TARGET_COPY_OUT_VENDOR)/firmware/LICENSE.QualcommAtheros_ath10k \
89 $(FIRMWARE_VENDOR_PATH)/LICENSE.qcom:$(TARGET_COPY_OUT_VENDOR)/firmware/LICENSE.qcom \
90 $(LINARO_VENDOR_PATH)/db845c/$(EXPECTED_LINARO_VENDOR_VERSION)/RB3_firmware_20190529180356-v4/LICENSE.qcom.txt:$(TARGET_COPY_OUT_VENDOR)/firmware/LICENSE.qcom.txt