Skip to contentSkip to conversation

Recipes to modify variable UBOOT_CONFIG?

DISCUSSION H. Wulff 2 participants 2 messages Mar 4

lore
Share & tools
lore

H. Wulff

author
#0 lore raw

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

#1 lore raw

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 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