-
Notifications
You must be signed in to change notification settings - Fork 77
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
Don't list 'Image' multiple times in KERNEL_IMAGETYPES #661
Conversation
Bitbake doesn't document duplicate removal for the += operator. Could you please provide corresponding (only KERNEL_IMAGETYPES part) dumps of |
Yes bitbake document doesn't say and in fact bitbake isn't removing duplicates with +=. This particular behavior seems to be specific to handling KERNEL_IMAGETYPES in kernel.bbclass. The pre condition to reproduce this problem is to set KERNEL_IMAGETYPE to "Image". With this
Seems the timing of appending the value in kernel.bblcass is resulting in this behavior. As kernel.bbclass is resetting KERNEL_IMAGETYPES by merging KERNEL_IMAGETYPE & KERNEL_ALT_IMAGETYPE may be it is good if KERNEL_IMAGETYPE is updated instead of KERNEL_IMAGETYPES.
|
I think is better to replace the KERNEL_IMAGETYPES by KERNEL_IMAGETYPE on layer as the first one is managed by the kernel.bbclass. |
According to the documentation So, specifying the type in My suggestion would be to stop using per-machine configs. Please use qcom-armv8 instead. This machine config sets values correctly: |
Updated previous comment to provide better justification. |
I think we should drop this Taking Then we should have:
And then we can add a similar change to whatever other board conf that is including this one. |
@ricardosalveti I'd prefer to keep |
Sure, that works as well, since the class merges KERNEL_IMAGETYPE into KERNEL_IMAGETYPES. |
Move KERNEL_IMAGETYPES setting from qcom-common.inc to qcom-armv8a.conf as former is common for both qcom-armv7a and qcom-armv8a machines. We need "Image" type kernel only for qcom-armv8a to support UKI. Signed-off-by: Viswanath Kraleti <[email protected]>
c2ea1f9
to
37c6eb6
Compare
I will fix the CI |
Listing 'Image' multiple times in KERNEL_IMAGETYPES list leads to fatal QA errors while packaging [packages-list]. Using += operator instead of :append to add to list helps to avoid duplication.