嵌入式linux去掉开机进度条,更换背景

时间:2021-02-20 15:55:42   收藏:0   阅读:98

git clone git://git.yoctoproject.org/psplash

 

1.将psplash.c文件中的psplash_draw_progress函数定义及其调用通通注释掉

2.将psplash.c文件中以下代码屏蔽

  /* Draw progress bar border */

  psplash_fb_draw_image (fb,

                          (fb->width  - BAR_IMG_WIDTH)/2,

                          SPLIT_LINE_POS(fb),

                          BAR_IMG_WIDTH,

                          BAR_IMG_HEIGHT,

                          BAR_IMG_BYTES_PER_PIXEL,

                          BAR_IMG_ROWSTRIDE,

                          BAR_IMG_RLE_PIXEL_DATA);

 

#!/bin/bash

aclocal
autoheader
automake --add-missing
autoconf

./autogen.sh

./configure --host=arm-linux --prefix=/home/bert/arm/paplash/

遇到的问题

我的宿主机是ubuntu16.04。make时提示:

./make-image-header.sh: 7: ./make-image-header.sh: gdk-pixbuf-csource: not found

尝试sudo apt-get install libgdk-pixbuf2.0-dev

各种依赖问题装不上

最终通过在arm板中执行./make-image-header.sh psplash-poky.png POKY,将生成的psplash-poky-img.h复制到ubuntu中得以解决。

 

原文:https://www.cnblogs.com/real-bert/p/14420241.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!