I am trying to create a buildroot config (with make menuconfig) that adds a uboot environment variable.
I detected already BR2_TARGET_UBOOT_DEFAULT_ENV_FILE but this one replaces all existing environment variables with the new file (I want to extend it only).
Furthermore I detected BR2_PACKAGE_HOST_UBOOT_TOOLS_ENVIMAGE_SOURCE but the file I passed here did not change my uboot environment at all.
I also tried to run a script that sets the required environment variables via BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE but the script I passed was also not run.
-
This question is similar to: Yocto add custom UBoot Environment Variables. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem.sawdust– sawdust2025年05月20日 20:02:05 +00:00Commented May 20, 2025 at 20:02
-
The difference is that I am using a different distrubution: They use Yocro while I use buildroot. The way how to configure them is completely different (also both utilized uboot)mrh1997– mrh19972025年05月21日 09:58:48 +00:00Commented May 21, 2025 at 9:58
-
The difference in build tool is not relevant. The point is that simply adding a new environment variable to the U-Boot build typically involves an edit or patch to a macro in a header file rather than a top-level tool configuration. IOW everything you have tried so far is the wrong approach; there is no solution "to add a U-Boot environment variable with a Buildroot configuration". You're asking the wrong question.sawdust– sawdust2025年05月21日 10:49:19 +00:00Commented May 21, 2025 at 10:49