RE: [yocto] Recipes to modify variable UBOOT_CONFIG?

"Marko, Peter" <[email protected]> Wed, 4 Mar 2026 09:03:12 +0000
Newsgroups org.yoctoproject.lists.yocto
Message-ID <AS1PR10MB5697B1C9904D20325E0D93C5FD7CA@AS1PR10MB5697.EURPRD10.PROD.OUTLOOK.COM>
Variables set in one recipe (image) are valid only in that recipe and not others (u-boot).
What you want is to generate two u-boots (put both options to UBOOT_CONFIG in machine) and let the image decide which one to use.
Or make your single u-boot support both boot methods if possible.

Peter

> -----Original Message-----
> From: [email protected] <[email protected]> On Behalf Of
> H. Wulff via lists.yoctoproject.org
> Sent: Wednesday, March 4, 2026 9:08
> To: [email protected]
> Subject: [yocto] Recipes to modify variable UBOOT_CONFIG?
> 
> Hi!
> 
> In our machines we've defined UBOOT_CONFIG for sd and emmc and set
> UBOOT_CONFIG to emmc. This works fine.
> 
> We got one image recipe where we need to run from SD-Card instead of eMMC,
> so we set set UBOOT_CONFIG to sd in that image recipe. When I run bitbake -e
> <image> I can see that UBOOT_CONFIG is set to sd. But in our custom appended
> task do_unpack of the uboot recipe it seems that UBOOT_CONFIG still remains to
> emmc.
> 
> When I grep through all recipes I couldn't find a single recipe that modifies
> UBOOT_CONFIG. So the question is whether it is possible to modify
> UBOOT_CONFIG outside the machines?
> 
> Thanks in advance, H. Wulff