]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
u-boot: Make sure the build dir is unique for each UBOOT_CONFIG
authorRyan Eatmon <reatmon@ti.com>
Tue, 7 Oct 2025 22:43:49 +0000 (17:43 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 13 Oct 2025 16:54:56 +0000 (17:54 +0100)
commit22e96b32b0be02ec0971c9334d4b1df7c9ef8d84
tree32520063769a50c1325e8b76564cbb6030396898
parentd7b6887dfbe2817ceb03d44a59210f65bbb25390
u-boot: Make sure the build dir is unique for each UBOOT_CONFIG

Each UBOOT_CONFIG entry is run in a different directory under ${B} so
that the files can be generated, compiled, and installed differently
from each other.  Currently that unique directory name was just the
defconfig used for each UBOOT_CONFIG.

One potential conflict arises when you want build the same defconfig
twice, but pass in different make options.  Then we get directory
collision.  Simple fix is to include both the defconfig name and the
UBOOT_CONFIG type in the directory name.

This change has the potential to be backwards breaking if a layer is
using the UBOOT_CONFIG flow and overriding/appending any of the do_*
shell functions.  Each of those will either need to change to using:

${B}/${config}  ->  ${B}/${config}-${type}

or for append functions they can use the new variable in the parent
function:

${B}/${config}  ->  ${B}/${builddir}

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/uboot-sign.bbclass
meta/recipes-bsp/u-boot/u-boot-configure.inc
meta/recipes-bsp/u-boot/u-boot.inc