Skip to contentSkip to conversation

Multiple uboot defconfigs

Buildroot Lance Fredrickson 2 participants 2 messages Aug 6, 2025 – Aug 14, 2025

lore
Share & tools
lore
#0 lore raw

I'm working with a device that can boot from nor, nand, emmc, and sdcard.  I'd like to compile uboot for each of these configurations in one go in a single buildroot configuration, but it looks as though you can only specify a single uboot defconfig.  Is there anyone that's also dealt with this scenario? or is there anything I've missed for compiling multiple uboot configs in a single buildroot configuration?

thanks,
Lance
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#1 lore raw
Quoted 1 line · Lance Fredrickson

I'm working with a device that can boot from nor, nand, emmc, and sdcard.  I'd like to compile uboot for each of these configurations in one go in a single buildroot configuration, but it looks as though you can only specify a single uboot defconfig.  Is there anyone that's also dealt with this scenario? or is there anything I've missed for compiling multiple uboot configs in a single buildroot configuration?

The problem is that U-Boot doesn't really support that scenario, so the only
thing you can do is to do _all_ the configure and build steps in a loop. With the kconfig infra of Buildroot, that's pretty much impossible. Yocto does have something like that, but they don't have things like make uboot-menuconfig which makes life a bit simpler.

So the best practical solution is to make a separate defconfig that builds
just U-Boot. And if you build a toolchain, use the one that you build for the rootfs as a pre-installed external toolchain.

Or, of course, you can choose to move the additional U-Boot builds outside of
Buildroot entirely, in a post-build script.

Regards,
Arnout
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot