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

Handle multiple values for IMXBOOT_TARGETS #1653

Open
angolini opened this issue Sep 26, 2023 · 3 comments
Open

Handle multiple values for IMXBOOT_TARGETS #1653

angolini opened this issue Sep 26, 2023 · 3 comments

Comments

@angolini
Copy link
Member

          Thanks @bmx666 and @angolini, this sounds very useful.

Can we extend UBOOT_CONFIG directly?

# MACHINE M1 and M2
KERNEL_DEVICETREE = "\
    freescale/imx8mp_m1.dtb \
    freescale/imx8mp_m2.dtb \
"
IMXBOOT_TARGETS = "flash_evk"
UBOOT_CONFIG = "sd-m1 sd-m2"

UBOOT_CONFIG[sd-m1] = "imx8mp_m1_defconfig,sdcard,imx8mp_m1.dtb"
UBOOT_CONFIG[sd-m2] = "imx8mp_m2_defconfig,sdcard,imx8mp_m2.dtb"

WKS_FILE = "${IMAGE_BASENAME}.wks.in"

Can we add IMXBOOT_TARGETS to UBOOT_CONFIG?

We should have an actual implementation. The EVK machines seem a good fit. How about reworking the include/imx*-evk.inc design? For an example, if we choose imx8mp-unified-evk.conf for the unified machine name, then imx8mp-lpddr4-evk.conf might include the following important lines:

require imx8mp-unified-evk.conf
UBOOT_CONFIG = "sd-lpddr4"

Originally posted by @thochstein in #1642 (comment)

@thochstein
Copy link
Contributor

UBOOT_CONFIG[sd-m1] = "imx8mp_m1_defconfig,sdcard,imx8mp_m1.dtb"
UBOOT_CONFIG[sd-m2] = "imx8mp_m2_defconfig,sdcard,imx8mp_m2.dtb"

This is wrong, there is already a third field which is just now being documented: https://lists.yoctoproject.org/g/poky/message/13167

@angolini
Copy link
Member Author

I'm not sure which exact comment to pin here, that's why I pinnet this one. However, the main point of this issue is to discuss how to handle multiple IMXBOOT_TARGETS and how to related the IMXBOOT_TARGET to the machine

@thochstein
Copy link
Contributor

Okay. I did just fix my original comment.

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

No branches or pull requests

2 participants