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

Resolve "missing file imx-boot" error after meta-freescale Sept 17, 2024 update to uuu_bootloader_tag.bbclass #28

Open
wants to merge 1 commit into
base: scarthgap-6.6.36-2.1.0
Choose a base branch
from

Conversation

georgekelly1097
Copy link

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

…4ddde18bbc4129eeda43dd20c2a 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant