Skip to contentSkip to conversation

recipes-kernel/linux-firmware: Add qcom-sdm845 firmware package

PATCH In review Anibal Limon 2 participants 3 messages Mar 31, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipes-kernel/linux-firmware: Add qcom-sdm845 firmware package

Contains the firmware for the modem and wireless in SDM845 platforms.

---
 meta/recipes-kernel/linux-firmware/linux-firmware_20200122.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-kernel/linux-firmware/linux-firmware_20200122.bb +3 -0
index a7406e48de..3e03aafb6b 100644
@@ -289,6 +289,7 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
              ${PN}-qcom-license \
              ${PN}-qcom-venus-1.8 ${PN}-qcom-venus-4.2 \
              ${PN}-qcom-adreno-a3xx ${PN}-qcom-adreno-a530 \
+             ${PN}-qcom-sdm845 \
              ${PN}-whence-license \
              ${PN}-license \
              "
@@ -848,10 +849,12 @@ FILES_${PN}-qcom-venus-1.8 = "${nonarch_base_libdir}/firmware/qcom/venus-1.8/*"
 FILES_${PN}-qcom-venus-4.2 = "${nonarch_base_libdir}/firmware/qcom/venus-4.2/*"
 FILES_${PN}-qcom-adreno-a3xx = "${nonarch_base_libdir}/firmware/qcom/a300_*.fw ${nonarch_base_libdir}/firmware/a300_*.fw"
 FILES_${PN}-qcom-adreno-a530 = "${nonarch_base_libdir}/firmware/qcom/a530*.*"
+FILES_${PN}-qcom-sdm845 = "${nonarch_base_libdir}/firmware/qcom/sdm845/*"
 RDEPENDS_${PN}-qcom-venus-1.8 = "${PN}-qcom-license"
 RDEPENDS_${PN}-qcom-venus-4.2 = "${PN}-qcom-license"
 RDEPENDS_${PN}-qcom-adreno-a3xx = "${PN}-qcom-license"
 RDEPENDS_${PN}-qcom-adreno-a530 = "${PN}-qcom-license"
+RDEPENDS_${PN}-qcom-sdm845 = "${PN}-qcom-license"
 
 FILES_${PN}-liquidio = "${nonarch_base_libdir}/firmware/liquidio"
 
Signature · 1 line
2.26.0
#1 lore raw
Quoted 2 lines · Aníbal Limón

Contains the firmware for the modem and wireless in SDM845 platforms.

it is more than that, since that folder contains also the audio and compute DSP firmware, so we should either say that , or not include them.

Quoted 20 lines
---
 meta/recipes-kernel/linux-firmware/linux-firmware_20200122.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-kernel/linux-firmware/linux-firmware_20200122.bb +1 -0
index a7406e48de..3e03aafb6b 100644
@@ -289,6 +289,7 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
              ${PN}-qcom-license \
              ${PN}-qcom-venus-1.8 ${PN}-qcom-venus-4.2 \
              ${PN}-qcom-adreno-a3xx ${PN}-qcom-adreno-a530 \
+             ${PN}-qcom-sdm845 \
              ${PN}-whence-license \
              ${PN}-license \
              "
@@ -848,10 +849,12 @@ FILES_${PN}-qcom-venus-1.8 =

"${nonarch_base_libdir}/firmware/qcom/venus-1.8/*"

Quoted 9 lines

FILES_${PN}-qcom-venus-4.2 =
"${nonarch_base_libdir}/firmware/qcom/venus-4.2/*"
FILES_${PN}-qcom-adreno-a3xx =
"${nonarch_base_libdir}/firmware/qcom/a300_*.fw ${nonarch_base_libdir}/firmware/a300_*.fw"
FILES_${PN}-qcom-adreno-a530 =
"${nonarch_base_libdir}/firmware/qcom/a530*.*" +FILES_${PN}-qcom-sdm845 = "${nonarch_base_libdir}/firmware/qcom/sdm845/*"

I think we should be specific for the files we include, using the wildcard means we don't control/know what we are packaging. We could do several packages for qcom-sdm845-modem, qcom-sdm845-audio, qcom-sdm845-compute, ... which would be ideal.. but i am not sure how appropriate this is for oe-core. but for the other qcom firmware, we package them by 'feature' (see above).

RDEPENDS_${PN}-qcom-venus-1.8 = "${PN}-qcom-license"

Quoted 11 lines

RDEPENDS_${PN}-qcom-venus-4.2 = "${PN}-qcom-license" RDEPENDS_${PN}-qcom-adreno-a3xx = "${PN}-qcom-license" RDEPENDS_${PN}-qcom-adreno-a530 = "${PN}-qcom-license"
+RDEPENDS_${PN}-qcom-sdm845 = "${PN}-qcom-license"

FILES_${PN}-liquidio = "${nonarch_base_libdir}/firmware/liquidio"

--
2.26.0

#2 lore raw
Quoted 41 lines · Nicolas Dechesne
Quoted 2 lines · Aníbal Limón

Contains the firmware for the modem and wireless in SDM845 platforms.

it is more than that, since that folder contains also the audio and compute DSP firmware, so we should either say that , or not include them.

Quoted 29 lines
---
 meta/recipes-kernel/linux-firmware/linux-firmware_20200122.bb | 3 +++
 1 file changed, 3 insertions(+)
(quoted diff) +0 -0

linux-firmware_20200122.bb b/meta/recipes-kernel/linux-firmware/ linux-firmware_20200122.bb
index a7406e48de..3e03aafb6b 100644

meta/recipes-kernel/linux-firmware/linux-firmware_20200122.bb +1 -0
@@ -289,6 +289,7 @@ PACKAGES =+ "${PN}-ralink-license ${PN}-ralink \
              ${PN}-qcom-license \
              ${PN}-qcom-venus-1.8 ${PN}-qcom-venus-4.2 \
              ${PN}-qcom-adreno-a3xx ${PN}-qcom-adreno-a530 \
+             ${PN}-qcom-sdm845 \
              ${PN}-whence-license \
              ${PN}-license \
              "
@@ -848,10 +849,12 @@ FILES_${PN}-qcom-venus-1.8 =

"${nonarch_base_libdir}/firmware/qcom/venus-1.8/*"
FILES_${PN}-qcom-venus-4.2 =
"${nonarch_base_libdir}/firmware/qcom/venus-4.2/*"
FILES_${PN}-qcom-adreno-a3xx =
"${nonarch_base_libdir}/firmware/qcom/a300_*.fw ${nonarch_base_libdir}/firmware/a300_*.fw"
FILES_${PN}-qcom-adreno-a530 =
"${nonarch_base_libdir}/firmware/qcom/a530*.*" +FILES_${PN}-qcom-sdm845 = "${nonarch_base_libdir}/firmware/qcom/sdm845/*"

Quoted 9 lines
Quoted 1 line

I think we should be specific for the files we include, using the wildcard means we don't control/know what we are packaging. We could do several packages for qcom-sdm845-modem, qcom-sdm845-audio, qcom-sdm845-compute, ... which would be ideal.. but i am not sure how appropriate this is for oe-core. but for the other qcom firmware, we package them by 'feature' (see above).

Right, better to have a split of firmware by feature, I will send a v2.

Anibal

Quoted 13 lines

RDEPENDS_${PN}-qcom-venus-1.8 = "${PN}-qcom-license"

Quoted 11 lines

RDEPENDS_${PN}-qcom-venus-4.2 = "${PN}-qcom-license" RDEPENDS_${PN}-qcom-adreno-a3xx = "${PN}-qcom-license" RDEPENDS_${PN}-qcom-adreno-a530 = "${PN}-qcom-license"
+RDEPENDS_${PN}-qcom-sdm845 = "${PN}-qcom-license"

FILES_${PN}-liquidio = "${nonarch_base_libdir}/firmware/liquidio"

--
2.26.0