转载地址:https://blog.csdn.net/lu_embedded/article/details/53517440
最简单的替换方法是重新编译 psplash,对应目录在 meta-yocto/recipes-core/psplash。如果没有该目录的话,就需要下载,下载方法如下:
root@bogon:/yocto/sources/meta-fsl-arm/recipes-core# git clone git://git.yoctoproject.org/psplash
出现如下提示则表示下载成功:
Cloning into 'psplash'...
remote: Counting objects: 221, done.
remote: Compressing objects: 100% (101/101), done.
remote: Total 221 (delta 145), reused 195 (delta 119)
Receiving objects: 100% (221/221), 96.00 KiB | 14.00 KiB/s, done.
Resolving deltas: 100% (145/145), done.
Checking connectivity... done.
查看是否下载成功:
root@bogon:/yocto/sources/meta-fsl-arm/recipes-core# ls
packagegroup psplash udev
进入 psplash 目录,查看具体文件:
root@bogon:/yocto/sources/meta-fsl-arm/recipes-core# cd psplash/
root@bogon:/yocto/sources/meta-fsl-arm/recipes-core/psplash# ls
AUTHORS configure.ac make-image-header.sh psplash.c psplash-console.c psplash-fb.c psplash-hand-img.h radeon-font.h
base-images COPYING NEWS psplash-colors.h psplash-console.h psplash-fb.h psplash-poky-img.h README
ChangeLog Makefile.am psplash-bar-img.h psplash-config.h psplash.doap psplash.h psplash-write.c
生成 logo 头文件:
root@bogon:/yocto/sources/meta-fsl-arm/recipes-core/psplash# ./make-image-header.sh /home/rudy/Desktop/
.directory tux.png tux-p.png
root@bogon:/yocto/sources/meta-fsl-arm/recipes-core/psplash# ./make-image-header.sh /home/rudy/Desktop/tux.png POKY
再次查看:
root@bogon:/yocto/sources/meta-fsl-arm/recipes-core/psplash# ls
AUTHORS configure.ac Makefile.am psplash-bar-img.h psplash-config.h psplash.doap psplash.h psplash-write.c
base-images COPYING make-image-header.sh psplash.c psplash-console.c psplash-fb.c psplash-hand-img.h radeon-font.h
ChangeLog tux-img.h NEWS psplash-colors.h psplash-console.h psplash-fb.h psplash-poky-img.h README
修改 psplash.c 文件:
root@bogon:/yocto/sources/meta-fsl-arm/recipes-core/psplash# vim psplash.c
添加 #include "tux-img.h"
,重新编译再替换 /usr/bin/psplash 即可。