Resolve "missing file imx-boot" error after meta-freescale Sept 17, 2024 update to uuu_bootloader_tag.bbclass #28
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.
fix an imx8 build error caused by meta-freescale commit dd9125d436c574ddde18bbc4129eeda43dd20c2a on Sept 17 2024. That changed uuu_bootloader_tag.bbclass by adding a line to default the variable "UUU_BOOTLOADER" to "${UBOOT_BINARY}".
This recipe was previously overriding UUU_BOOTLOADER for the machines mx6-generic-bsp and mx7-generic-bsp, but all others (including imx8) had "UUU_BOOTLOADER" set to an empty string - which disables the cp command in meta-freescale's uuu_bootloader_tag.bbclass.
However the meta-freescale commit mentioned above broke this by adding overrides for "UUU_BOOTLOADER:mx8-generic-bsp" and "UUU_BOOTLOADER:mx9-generic-bsp". Those ":mx*-generic-bsp" overrides take priority over any plain "UUU_BOOTLOADER=" statements, regardless of layer priority. Thus that enabled the cp command mentioned above and mx8 builds now started looking for a file "imx-boot" in this u-boot-imx recipe, but it doesn't exist because this recipe doesn't make that file on mx8 devices.
So my proposed fix is to add machine specific overrides in this u-boot-imx recipe that will take priority over meta-freescale. Note that this will not affect the imx-boot recipe that does make the "imx-boot" file and thus needs UUU_BOOTLOADER" to have a different value