Skip to content

[Backport wrynose] image_types_qcom: install KVM uefi_dtbs variant into qcomflash for iq-x7181/x5121#2661

Open
quic-yocto-ci wants to merge 3 commits into
wrynosefrom
backport/2616-to-wrynose
Open

[Backport wrynose] image_types_qcom: install KVM uefi_dtbs variant into qcomflash for iq-x7181/x5121#2661
quic-yocto-ci wants to merge 3 commits into
wrynosefrom
backport/2616-to-wrynose

Conversation

@quic-yocto-ci

Copy link
Copy Markdown
Contributor

Description

Backport of #2616 to wrynose.

The spinor block bulk-copies the whole firmware spinor subdir into the
qcomflash package, leaving no place to select between same-type variants
(e.g. KVM/non-KVM UEFI DTB blobs).

Replace it with a whitelist mirroring firmware-qcom-boot-common.inc's
do_deploy filter. Behavior is unchanged: the source can only contain
files matching that filter.

Signed-off-by: Xinzheng Long <xinzheng.long@oss.qualcomm.com>
(cherry picked from commit b65fee5)
Platforms booting with KVM enabled (e.g. iq-x7181-evk / iq-x5121-evk
built with qcom-distro-kvm.yml) require a different UEFI DTB blob than
the non-KVM build. The boot firmware ships both variants (uefi_dtbs_kvm.xz
and uefi_dtbs.xz) side by side, but there is no variable to express
which one a given machine should use.

Introduce QCOM_UEFI_DTB, resolving to the KVM variant when the kvm
MACHINE_FEATURE is set and the non-KVM variant otherwise, so callers
can pick the correct file based on machine configuration.

Signed-off-by: Xinzheng Long <xinzheng.long@oss.qualcomm.com>
(cherry picked from commit d826a3b)
The spinor whitelist in create_qcomflash_pkg() picks up every *.xz file
from the firmware spinor subdir, which pulls both uefi_dtbs.xz and
uefi_dtbs_kvm.xz into the qcomflash package whenever the firmware set
ships them side by side. The resulting package carries duplicate DTB
blobs with no indication of which one matches the build, so the
KVM-appropriate DTB is never explicitly delivered to the flashing flow.

Exclude uefi_dtbs*.xz from the spinor whitelist and install only the
QCOM_UEFI_DTB-selected variant under the fixed name uefi_dtbs.xz, so the
package always carries the right DTB under a stable filename.

Signed-off-by: Xinzheng Long <xinzheng.long@oss.qualcomm.com>
(cherry picked from commit 27fbcfa)
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 939039f

nodistro
Pass: 9 | Fail: 0 | Total: 9
qcom-distro_linux-qcom-next
Pass: 9 | Fail: 1 | Total: 10
qcom-distro
Pass: 200 | Fail: 1 | Total: 239

@test-reporting-app

Copy link
Copy Markdown

Test Results

   63 files   -   6    305 suites   - 51   4h 15m 9s ⏱️ + 24m 50s
  107 tests  -  20     94 ✅  -  18   0 💤 ±0  13 ❌  - 2 
2 874 runs   - 485  2 808 ✅  - 494  43 💤 +9  23 ❌ ±0 

For more details on these failures, see this check.

Results for commit 939039f. ± Comparison against base commit 6f95b3d.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 939039f

nodistro
Pass: 9 | Fail: 0 | Total: 9
qcom-distro_linux-qcom-next
Pass: 241 | Fail: 0 | Total: 284
qcom-distro
Pass: 211 | Fail: 1 | Total: 250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants