]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
kernel-uboot.bbclass: do not require the kernel build folder
authorAdrian Freihofer <adrian.freihofer@siemens.com>
Tue, 3 Jun 2025 08:23:21 +0000 (10:23 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Jun 2025 10:01:24 +0000 (11:01 +0100)
commit8ea95cd419ee4efac5f54124e2ce98304262e8c1
treea9029a3fc754eb568cf344c16bc56b2c93f3f727
parent1044366a32d544af53307a03d7d3b0aaf4519990
kernel-uboot.bbclass: do not require the kernel build folder

The function must be executed in CWD. Make it more flexible by
specifying the kernel build folder as a parameter.

This is a refactoring without functional change. But later this change
will allow to use this function also with a kernel from the sstate-cache
instead of requiring the full kernel build folder structure.

Another preparation for using a kernel from sstate-cache is to persist
the linux_comp variable in a file next to the linux.bin file rather than
using a global shell variable.

This change also requires to adapt the kernel-uimage.bbclass
accordingly. This change also fixes a minor detail:
the kernel-uimage.bbclass used ${ instead of $ for evaluatiing a local
shell variable.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/kernel-uboot.bbclass
meta/classes-recipe/kernel-uimage.bbclass