Skip to content

[Backport wrynose] Add support to build external device trees into qcom boot images - #3116

Open
quic-yocto-ci wants to merge 5 commits into
wrynosefrom
backport/2880-to-wrynose
Open

[Backport wrynose] Add support to build external device trees into qcom boot images #3116
quic-yocto-ci wants to merge 5 commits into
wrynosefrom
backport/2880-to-wrynose

Conversation

@quic-yocto-ci

Copy link
Copy Markdown
Contributor

Description

Backport of #2880 to wrynose.

In preparation for external device tree support where device trees are
not build from a kernel recipe, factor out the qcom boot image creation
into a function and call that for every kernel devicetree.

No functional changes.

Signed-off-by: Rouven Czerwinski <rouven.czerwinski@linaro.org>
(cherry picked from commit 99475a5)
Add support for device trees that are not build from the kernel
repository. The implementation is similar to kernel-fit-image.bbclass,
we detect whether the provider for virtual/dtb has been changed and
retrieve the build devicetrees from the sysroot instead of using those
build by the kernel.

A new variable QCOM_BOOTIMG_DEVICETREE is introduced to specify the
trees for which boot images should be build.

In order to use this, set the provider for virtual/dtb to your device
tree yocto recipe and then specify QCOM_BOOTIMG_DEVICETREE:

PREFERRED_PROVIDER_virtual/dtb = "my-devicetree-recipe"

QCOM_BOOTIMG_DEVICETREE ?= " \
    my-devicetree-for-bootimg.dtb \
"

in your machine configuration.

Signed-off-by: Rouven Czerwinski <rouven.czerwinski@linaro.org>
(cherry picked from commit 2c16f58)
Name boot images generated from external dtbs with a -ext-dtb suffix to
indicate that they were generated from an external device tree recipe
and also to prevent overwriting similarly named boot images generated
from a kernel device tree.

Signed-off-by: Rouven Czerwinski <rouven.czerwinski@linaro.org>
(cherry picked from commit e4c5f6c)
Add a devicetree-dummy recipe that generates an empty but valid DTB for
testing with the qcom-armv8 machine.

Signed-off-by: Rouven Czerwinski <rouven.czerwinski@linaro.org>
(cherry picked from commit 7580c30)
Modify the qcom-armv8 machine to use the dummy device tree recipe and
generate a boot image from an external devicetree with it.

Signed-off-by: Rouven Czerwinski <rouven.czerwinski@linaro.org>
(cherry picked from commit aa00cff)
@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 6bbf483

qcom-distro
Pass: 233 | Fail: 4 | Total: 258
qcom-distro_linux-qcom-next
Pass: 11 | Fail: 1 | Total: 12
nodistro
Pass: 10 | Fail: 0 | Total: 10

@test-reporting-app

test-reporting-app Bot commented Sep 10, 2026

Copy link
Copy Markdown

Test Results

  119 files  +   65    715 suites  +498   9h 7m 58s ⏱️ + 6h 39m 46s
  175 tests +   52    140 ✅ +   26   4 💤 + 3  31 ❌ +23 
4 592 runs  +3 135  4 481 ✅ +3 056  70 💤 +51  41 ❌ +28 

For more details on these failures, see this check.

Results for commit 6bbf483. ± Comparison against base commit ec98e4a.

♻️ This comment has been updated with latest results.

@qcomlnxci

Copy link
Copy Markdown

Test Coral run workflow

Test jobs for commit 6bbf483

  • qcomdistro 6.18: multimedia image
    Pass: 8 | Fail: 0 | Total: 8
  • qcomdistro 6.18: multimedia image-prop
    Pass: 30 | Fail: 0 | Total: 30

@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 6bbf483

qcom-distro
Pass: 233 | Fail: 3 | Total: 259
qcom-distro_linux-qcom-next
Pass: 283 | Fail: 27 | Total: 357
nodistro
Pass: 10 | Fail: 0 | Total: 10

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.

6 participants