[Yocto] Replace splash screen file


I’ve been working around the kernel and bootloader with patches and all work great.

I even replaced kernel splashscreen with a patch since it is ASCII, but the same does not happen in UBoot. Since it’s a BMP I cannot create a patch for it.

What is the best way to apply this? I can either replace toradex.bmp OR modify the makefile to compile mine.

Thanks in advance and Happy Holidays!


My quick fix for this was to just replace original image with my custom one.

The way I did this was to create a custom task and place it in the middle of do_unpack and do_patch tasks.

I don’t know if this is the best solution but it works.

I used this u-boot-toradex_2016.11.bbappend code:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI_append = "\
	file://toradex.bmp \

S = "${WORKDIR}/git"

# copy custom toradex logo to sources before patching
do_unpack_extra() {
    cp ${WORKDIR}/toradex.bmp ${S}/tools/logos/

addtask unpack_extra after do_unpack before do_patch

Hope it helps, Happy Holidays!

Hi mlinar,

Thanks for your quick answer. It works. Thank you very much for your help and for providing your hard work.

There’s a big abstraction line when it comes to the working directories and source directory of yocto, that’s why I was struggling on this one. I was beginning to study this way and you presented this, many thanks.

I’ve tried to substitute the unpack_extra for patch_prepend or unpack_append, both failed to work, some parsing errors appeared. But for now, this is a very nice beginning.

Merry Xmas and Happy New Year!