[Backport wrynose] Add support to build external device trees into qcom boot images - #3116
Open
quic-yocto-ci wants to merge 5 commits into
Open
[Backport wrynose] Add support to build external device trees into qcom boot images #3116quic-yocto-ci wants to merge 5 commits into
quic-yocto-ci wants to merge 5 commits into
Conversation
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)
quic-yocto-ci
requested review from
Anuj Mittal (anujm1),
Koen Kooi (koenkooi),
Dmitry Baryshkov (lumag),
Milosz Wasilewski (mwasilew),
Nicolas Dechesne (ndechesne),
Jose Quaresma (quaresmajose),
Ricardo Salveti (ricardosalveti) and
Viswanath Kraleti (vkraleti)
as code owners
September 10, 2026 13:30
Dmitry Baryshkov (lumag)
approved these changes
Sep 10, 2026
Koen Kooi (koenkooi)
approved these changes
Sep 10, 2026
Test Results 119 files + 65 715 suites +498 9h 7m 58s ⏱️ + 6h 39m 46s 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. |
Ricardo Salveti (ricardosalveti)
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Backport of #2880 to
wrynose.