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
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
Quoted 23 lines
-----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 variableUBOOT_CONFIG?Hi!
In our machines we've defined
UBOOT_CONFIGfor sd and emmc and setUBOOT_CONFIGto 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_CONFIGto sd in that image recipe. When I run bitbake -e <image> I can see thatUBOOT_CONFIGis set to sd. But in our custom appended taskdo_unpackof the uboot recipe it seems thatUBOOT_CONFIGstill 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 modifyUBOOT_CONFIGoutside the machines?Thanks in advance, H. Wulff