qcom: dragonboards: Copy license files to rootfs
Copy license/notice files to rootfs explicitly. It is not
an AOSP requirement but other distros do it as well.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/linaro_devices/qcom/db845c/device.mk b/linaro_devices/qcom/db845c/device.mk
index 5dbd771..ca1f27a 100644
--- a/linaro_devices/qcom/db845c/device.mk
+++ b/linaro_devices/qcom/db845c/device.mk
@@ -76,3 +76,13 @@
vendor/linaro_devices/linux-firmware/qcom/venus-5.2/venus.mbn:$(TARGET_COPY_OUT_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.mbn \
vendor/linaro_devices/linux-firmware/qcom/venus-5.2/venus.mdt:$(TARGET_COPY_OUT_RAMDISK)/vendor/firmware/qcom/venus-5.2/venus.mdt
endif
+
+# Copy notice/license files to rootfs
+# Not an AOSP requirement but other Linux distros do this
+PRODUCT_COPY_FILES += \
+ vendor/linaro_devices/linux-firmware/ath10k/WCN3990/hw1.0/notice.txt_wlanmdsp:$(TARGET_COPY_OUT_VENDOR)/firmware/ath10k/WCN3990/hw1.0/notice.txt_wlanmdsp \
+ vendor/linaro_devices/linux-firmware/qca/NOTICE.txt:$(TARGET_COPY_OUT_VENDOR)/firmware/qca/NOTICE.txt \
+ vendor/linaro_devices/linux-firmware/qcom/NOTICE.txt:$(TARGET_COPY_OUT_VENDOR)/firmware/qcom/NOTICE.txt \
+ vendor/linaro_devices/linux-firmware/LICENSE.QualcommAtheros_ath10k:$(TARGET_COPY_OUT_VENDOR)/firmware/LICENSE.QualcommAtheros_ath10k \
+ vendor/linaro_devices/linux-firmware/LICENSE.qcom:$(TARGET_COPY_OUT_VENDOR)/firmware/LICENSE.qcom \
+ vendor/linaro_devices/qcom/db845c/RB3_firmware_20190529180356-v4/LICENSE.qcom.txt:$(TARGET_COPY_OUT_VENDOR)/firmware/LICENSE.qcom.txt
diff --git a/linaro_devices/qcom/rb5/device.mk b/linaro_devices/qcom/rb5/device.mk
index 29742d8..2cfcbd9 100644
--- a/linaro_devices/qcom/rb5/device.mk
+++ b/linaro_devices/qcom/rb5/device.mk
@@ -63,3 +63,14 @@
vendor/linaro_devices/linux-firmware/qcom/vpu-1.0/venus.b19:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/vpu-1.0/venus.b19 \
vendor/linaro_devices/linux-firmware/qcom/vpu-1.0/venus.mbn:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/vpu-1.0/venus.mbn \
vendor/linaro_devices/linux-firmware/qcom/vpu-1.0/venus.mdt:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/vendor/firmware/qcom/vpu-1.0/venus.mdt
+
+# Copy notice/license files to rootfs
+# Not an AOSP requirement but other Linux distros do this
+PRODUCT_COPY_FILES += \
+ vendor/linaro_devices/linux-firmware/ath11k/QCA6390/hw2.0/Notice.txt:$(TARGET_COPY_OUT_VENDOR)/firmware/ath11k/QCA6390/hw2.0/Notice.txt \
+ vendor/linaro_devices/linux-firmware/qca/NOTICE.txt:$(TARGET_COPY_OUT_VENDOR)/firmware/qca/NOTICE.txt \
+ vendor/linaro_devices/linux-firmware/qcom/NOTICE.txt:$(TARGET_COPY_OUT_VENDOR)/firmware/qcom/NOTICE.txt \
+ vendor/linaro_devices/linux-firmware/LICENSE.Lontium:$(TARGET_COPY_OUT_VENDOR)/firmware/LICENSE.Lontium \
+ vendor/linaro_devices/linux-firmware/LICENSE.QualcommAtheros_ath10k:$(TARGET_COPY_OUT_VENDOR)/firmware/LICENSE.QualcommAtheros_ath10k \
+ vendor/linaro_devices/linux-firmware/LICENSE.qcom:$(TARGET_COPY_OUT_VENDOR)/firmware/LICENSE.qcom \
+ vendor/linaro_devices/qcom/rb5/RB5_firmware_20210331-v4/LICENSE.qcom.txt:$(TARGET_COPY_OUT_VENDOR)/firmware/ath11k/QCA6390/hw2.0/LICENSE.qcom.txt