aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2019-06-20 14:16:05 -0500
committerDaniel Díaz <daniel.diaz@linaro.org>2020-04-17 08:44:30 -0500
commitf6357b104ddf1f4ee7b8d32e49bd4d27eb4b171d (patch)
tree834b84089b97da12ba0683eccf430f15aa160f04
parent41c16462b74a6a0710b914407cce410b6c24c3e4 (diff)
downloadmeta-qcom-f6357b104ddf1f4ee7b8d32e49bd4d27eb4b171d.tar.gz
meta-qcom-f6357b104ddf1f4ee7b8d32e49bd4d27eb4b171d.tar.bz2
meta-qcom-f6357b104ddf1f4ee7b8d32e49bd4d27eb4b171d.zip
dragonboard-845c: Add firmware recipe
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> (Cherry-picked from commit 5fa864cce3860f3816d52572f802a403b8292331)
-rw-r--r--conf/machine/dragonboard-845c.conf1
-rw-r--r--recipes-bsp/firmware/firmware-qcom-dragonboard845c_20190529180356-v2.bb48
2 files changed, 49 insertions, 0 deletions
diff --git a/conf/machine/dragonboard-845c.conf b/conf/machine/dragonboard-845c.conf
index 95ec197..e849f99 100644
--- a/conf/machine/dragonboard-845c.conf
+++ b/conf/machine/dragonboard-845c.conf
@@ -12,6 +12,7 @@ KERNEL_DEVICETREE ?= "qcom/sdm845-db845c.dtb"
SERIAL_CONSOLE ?= "115200 ttyMSM0"
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " \
+ firmware-qcom-dragonboard845c \
kernel-modules \
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-msm', '', d)} \
"
diff --git a/recipes-bsp/firmware/firmware-qcom-dragonboard845c_20190529180356-v2.bb b/recipes-bsp/firmware/firmware-qcom-dragonboard845c_20190529180356-v2.bb
new file mode 100644
index 0000000..4857794
--- /dev/null
+++ b/recipes-bsp/firmware/firmware-qcom-dragonboard845c_20190529180356-v2.bb
@@ -0,0 +1,48 @@
+DESCRIPTION = "QCOM Firmware for DragonBoard 845c"
+
+LICENSE = "Proprietary"
+LIC_FILES_CHKSUM = "file://LICENSE.qcom.txt;md5=cbbe399f2c983ad51768f4561587f000"
+
+SRC_URI = "https://releases.linaro.org/96boards/dragonboard845c/qualcomm/firmware/RB3_firmware_${PV}.zip"
+SRC_URI[md5sum] = "8e9489a4bdfd3738ce4683a970b49f42"
+SRC_URI[sha256sum] = "d88ad0873792687b2906107b3244da874264c19384e49f2c4aec6768081cd29a"
+
+COMPATIBLE_MACHINE = "(dragonboard-845c)"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+S = "${WORKDIR}/RB3_firmware_${PV}"
+
+do_compile() {
+ :
+}
+
+do_install() {
+ install -d ${D}${nonarch_base_libdir}/firmware/
+ install -d ${D}${nonarch_base_libdir}/firmware/qcom/venus-5.2/
+
+ install -m 0444 ./17-USB3-201-202-FW/K2026090.mem ${D}${nonarch_base_libdir}/firmware/
+ install -m 0444 ./18-adreno-fw/a630*.* ${D}${nonarch_base_libdir}/firmware/
+ install -m 0444 ./20-adsp_split/firmware/adsp*.* ${D}${nonarch_base_libdir}/firmware/
+ install -m 0444 ./21-cdsp_split/firmware/cdsp*.* ${D}${nonarch_base_libdir}/firmware/
+ install -m 0444 ./33-venus_split/venus.* ${D}${nonarch_base_libdir}/firmware/qcom/venus-5.2/
+ install -m 0444 ./37-wlan_FW/wlanmdsp.mbn ${D}${nonarch_base_libdir}/firmware/
+ install -m 0444 ./38-bdwlan_split/bdwlan*.* ${D}${nonarch_base_libdir}/firmware/
+
+ install -d ${D}${sysconfdir}/
+ install -m 0644 LICENSE.qcom.txt ${D}${sysconfdir}/QCOM-LINUX-BOARD-SUPPORT-LICENSE
+}
+
+FILES_${PN} += "${nonarch_base_libdir}/firmware/*"
+INSANE_SKIP_${PN} += "arch"
+
+RPROVIDES_${PN} += "linux-firmware-qcom-adreno-a630"
+RREPLACES_${PN} += "linux-firmware-qcom-adreno-a630"
+RCONFLICTS_${PN} += "linux-firmware-qcom-adreno-a630"
+
+RPROVIDES_${PN} += "linux-firmware-qcom-venus-5.2"
+RREPLACES_${PN} += "linux-firmware-qcom-venus-5.2"
+RCONFLICTS_${PN} += "linux-firmware-qcom-venus-5.2"
+
+RPROVIDES_${PN} += "linux-firmware-qcom-license"
+RREPLACES_${PN} += "linux-firmware-qcom-license"
+RCONFLICTS_${PN} += "linux-firmware-qcom-license"