Repository navigation
classes, conf: fix boot image and FIT defects and drop leftovers - #3800
Open
Ricardo Salveti (ricardosalveti) wants to merge 7 commits into
Open
Ricardo Salveti (ricardosalveti) wants to merge 7 commits into
Ricardo Salveti (ricardosalveti) wants to merge 7 commits into
Conversation
For boards with SD_QCOM_BOOTIMG_ROOTFS a second set of boot images is built with root= pointing at the SD card. The plain image gets it right, but the one bundling the initramfs is built with the eMMC rootfs, so boot-sd-<initramfs>-*.img still mounts the eMMC root filesystem. Pass the SD card rootfs to it as well. Assisted-by: Claude Code:claude-fable-5-2 Signed-off-by: Ricardo Salveti <[email protected]>
The boot images are built from variables read through a helper that takes the variable name as an argument, which hides them from the bitbake dependency scan, so they are listed by hand in vardeps. The list misses SD_QCOM_BOOTIMG_ROOTFS and SERIAL_CONSOLES: changing either does not rebuild the boot images, which keep the old root= or console= arguments. Add both to vardeps. Assisted-by: Claude Code:claude-fable-5-2 Signed-off-by: Ricardo Salveti <[email protected]>
The device tree nodes of the FIT image are emitted by iterating over a Python set of file names. String hashing is randomised for each bitbake run, so the order of the nodes, and with it the numbering of the configurations, changes from one build to the next and the generated image is not reproducible. Iterate over the sorted file names, as the selftest reproducing this logic already does. Assisted-by: Claude Code:claude-fable-5-2 Signed-off-by: Ricardo Salveti <[email protected]>
fitimage_emit_section_config has not been called since the overlay support moved the class to fitimage_emit_section_qcomconfig. It was not updated for the third element the device tree list gained then and would fail to unpack it if anything used it. Remove it, together with the variables that are assigned and never read, the unused typing import and a note that logs a bare lookup key for every overlay combination. Assisted-by: Claude Code:claude-fable-5-2 Signed-off-by: Ricardo Salveti <[email protected]>
The two generic machines still set SERIAL_CONSOLE. OE-Core dropped that variable in 2022 and nothing reads it anymore: the console comes from SERIAL_CONSOLES, which qcom-common.inc sets to the same port and speed. Drop the stale assignments. Assisted-by: Claude Code:claude-fable-5-2 Signed-off-by: Ricardo Salveti <[email protected]>
linux-qcom-rt and linux-qcom-next-rt add the directory of the kernel they are based on to FILESEXTRAPATHS right after requiring its recipe, which lives in the same directory and already adds it. Drop the second assignment from both. Assisted-by: Claude Code:claude-fable-5-2 Signed-off-by: Ricardo Salveti <[email protected]>
QcomFitImageMatrixTests._matrix() and its cache were added with the matrix tests but have never been called: the tests walk the machines and resolve the kernel providers themselves. Remove them. Assisted-by: Claude Code:claude-fable-5-2 Signed-off-by: Ricardo Salveti <[email protected]>
This comment has been minimized.
This comment has been minimized.
Test Results 121 files ± 0 826 suites +77 10h 46m 18s ⏱️ + 2h 9m 25s For more details on these failures, see this check. Results for commit f954161. ± Comparison against base commit ea8c790. ♻️ This comment has been updated with latest results. |
This comment has been minimized.
This comment has been minimized.
Test run workflowTest jobs for commit f954161nodistroPass: 10 | Fail: 0 | Total: 10 qcom-distroPass: 406 | Fail: 14 | Total: 426 qcom-distro_kernel-fitPass: 1 | Fail: 0 | Total: 1 qcom-distro_linux-qcom-6.18Pass: 296 | Fail: 3 | Total: 302 qcom-distro_linux-qcom-7.3-esPass: 1 | Fail: 0 | Total: 1 |
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.
Small fixes and cleanups found while auditing the layer, one commit each.
Fixes
was built with the eMMC rootfs. It now uses
SD_QCOM_BOOTIMG_ROOTFS, likethe plain SD card image. Only
apq8016-sbcsets that variable.SD_QCOM_BOOTIMG_ROOTFSandSERIAL_CONSOLESweremissing from the task
vardeps, so changing them did not rebuild the bootimages.
followed the iteration order of a Python set, which changes on every
bitbake run, so the FIT image was not reproducible. They are now emitted
in sorted order.
Leftovers removed
fitimage_emit_section_configand a few unused variables inlib/qcom/dtb_only_fitimage.py. Nothing has called the method since theoverlay support was added.
_matrix()helper in the FIT selftest, which was never called.SERIAL_CONSOLEfromqcom-armv7aandqcom-armv8a. OE-Core dropped thevariable in 2022 and
SERIAL_CONSOLESis already set.FILESEXTRAPATHSline inlinux-qcom-rtandlinux-qcom-next-rt,which repeats the one in the recipe they require.