Skip to content

Conversation

@rafluan
Copy link

@rafluan rafluan commented Jan 8, 2025

553b01c imx-boot: Added support for multiple DTBs in the build process
539b84e imx-boot: Drop un-necessary variable BOOT_NAME
75f9bad imx-boot: Fix 8M non multi-config build problem

The fix made in commit Freescale/meta-freescale@2db7047
("imx-boot: Fix 8M multi-config build problems")
broke builds not using U-Boot multi-config, as the link created ends up being a
simple recursive link when UBOOT_DTB_NAME_EXTRA is the same as UBOOT_DTB_NAME.

It fails with something like this:
```
| ./../scripts/dtb_check.sh imx8mq-evk.dtb evk.dtb imx8mq-var-dart-dt8mcustomboard.dtb
|  Can't find u-boot DTB file, please copy from u-boot
```

caused by a symlink like this:
```
lrwxrwxrwx 1 esben 1000001 35 Oct 29 21:32 imx8mq-var-dart-dt8mcustomboard.dtb -> imx8mq-var-dart-dt8mcustomboard.dtb
```

Fixes: Freescale/meta-freescale@2db7047 ("imx-boot: Fix 8M multi-config build problems")

Signed-off-by: Esben Haabendal <[email protected]>
Signed-off-by: Luan Rafael Carneiro <[email protected]>
The variable suggests the ability to override when there is no reason
to override.

Signed-off-by: Tom Hochstein <[email protected]>
Signed-off-by: Luan Rafael Carneiro <[email protected]>
This commit introduces changes to the build system to allow the handling of
multiple DTB files during the build process. This is useful for scenarios where
specific hardware variations require different DTB versions for the same type
of device. Additionally, it ensures compatibility with previous configurations.

Key Changes:

Added the ability to consolidate the values of UBOOT_DTB_NAME and
UBOOT_DTB_NAME_EXTRA for use in DTB configurations.

Configuration example:
```
UBOOT_DTB_NAME="main-dtb.dtb"
UBOOT_DTB_NAME_EXTRA="secondary-dtb.dtb"
```

This enhancement makes the build system more flexible, enabling it to handle
more complex cases requiring multiple hardware variations, without impacting
existing configurations.

Signed-off-by: Luan Rafael Carneiro <[email protected]>
@rafluan rafluan changed the title Fix 8M non multi-config build problem Added support for multiple DTBs in the build process Jan 18, 2025
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