Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qcom-base: Swap KERNEL_IMAGETYPE and KERNEL_IMAGETYPES #42

Closed
wants to merge 1 commit into from

Conversation

adhudase
Copy link
Contributor

Update KERNEL_IMAGETYPE to Image.gz and KERNEL_IMAGETYPES to Image. This adjustment provides uncompressed kernel image required for the systemd-boot/UKI.

Update KERNEL_IMAGETYPE to Image.gz and KERNEL_IMAGETYPES to Image.
This adjustment provides uncompressed kernel image required for the
systemd-boot/UKI.

Signed-off-by: Atul Dhudase <[email protected]>
KERNEL_IMAGETYPE ?= "Image"
KERNEL_IMAGETYPES ?= "Image.gz"
KERNEL_IMAGETYPE ?= "Image.gz"
KERNEL_IMAGETYPES ?= "Image"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that these 2 variables are 'merged' together in OE. as such I don't know how this change makes any difference. Can you please point out to the problem you have that led to this patch?

Copy link
Contributor

@ricardosalveti ricardosalveti Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue is that https://github.com/Linaro/meta-qcom/blob/master/recipes-kernel/images/linux-qcom-uki.bb#L117 is not consuming the variable after the merge (which is done in the kernel class), so either we invert as done here or we change meta-qcom to take the variable merge into account.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the context. We need to fix meta-qcom instead. something like it's done in meta/classes-recipe/linux-dummy.bbclass. These variables are expected to be used in the kernel recipe, so using them outside of the kernel recipe is 1) not expected, 2) potentially the wrong thing to do.

Perhaps we need to review why linux-qcom-uki.bb was done like that.

ndechesne added a commit to ndechesne/meta-qcom that referenced this pull request Oct 15, 2024
In response to qualcomm-linux/meta-qcom-hwe#42.

KERNEL_IMAGETYPES is not enough to be checked, since kernel types can
also be set using KERNEL_IMAGETYPE or KERNEL_ALT_IMAGETYPE. Like it's
done in OE-core kernel class, we need to combine all these variables.

Signed-off-by: Nicolas Dechesne <[email protected]>
@ricardosalveti
Copy link
Contributor

Closing as Linaro/meta-qcom#666 was just merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants