1.替换图片法(推荐)
用logomaker做成的linux_logo_clut224.ppm替换/drivers/video/logo/linux_logo_clut224.ppm
2.替换名称法(不推荐)
在程序中替换linux_logo_clut224.ppm为linux_yourname_clut224.ppm
a.在/driver/video/logo/logo.c中修改为:(5~8为添加的)
#ifdef CONFIG_LOGO_M32R_CLUT224 /* M32R Linux logo */ logo = &logo_m32r_clut224; #endif #ifdef CONFIG_LOGO_YOURNAME_CLUT224 /* YOURNAME Linux logo */ logo = &logo_yourname_clut224; #endif } return logo; }
b.在/driver/video/logo/Kconfig:(6~8是添加的)
config LOGO_M32R_CLUT224 bool "224-color M32R Linux logo" depends on M32R default y config LOGO_YOURNAME_CLUT224 bool "224-color yourname Linux logo" default y
c.在/driver/video/logo/Makefile:(第二行是添加的)
d.$:make menuconfig中添加配置obj-$(CONFIG_LOGO_M32R_CLUT224) += logo_m32r_clut224.o obj-$(CONFIG_LOGO_YOURNAME_CLUT224) += logo_yourname_clut224.o