Yocto 在不重建系统的情况下更改 psplash 图像

Yocto change psplash image without rebuild the system

我正在尝试在当前构建的系统中更改 yocto 启动画面(由 psplash 生成),没有 yocto 重建过程... 有没有可能改变这个形象? 我想我必须挂载包含启动映像的引导分区并替换它...

非常感谢,

可以找到 Yocto psplash 配方 here

如您所见,它使用了借助此 script 生成的编码图像 psplash-poky-img.h,然后编译 /usr/bin/psplash 二进制文件。

如果你想修补启动画面,你可以使用 make-image-header.sh 和你自己的图像,然后用 yocto SDK 帮助编译你自己的 psplash 二进制文件,然后替换 psplash。

修补图像取决于图像类型。

尽管如此,最简单的方法是创建一个 psplash_git.bbappend 文件,在文件中添加你的 png 图像,然后让魔法附加:

# Example of recipe-core/psplash/psplash_git.bbappend
# (insert my-custom-psplash.png image in recipe-core/psplash/files folder)

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SPLASH_IMAGES = "file://my-custom-psplash.png;outsuffix=default"