简单记一下,免得以后翻。
1. 做好224色的ppm文件logo_mylogo_clut224.ppm,放到drivers/video/logo下
2. 在include/linux/linux_logo.h中添加
1
|
<span style="color: #000000; font-weight: bold;">extern</span> <span style="color: #993333;">const</span> <span style="color: #993333;">struct</span> linux_logo logo_mylogo_clut224<span style="color: #339933;">;</span>
|
3. 在drivers/video/logo/Makefile中添加
1
|
obj<span style="color: #339933;">-</span>$<span style="color: #009900;">(</span>CONFIG_LOGO_MYLOGO_CLUT224<span style="color: #009900;">)</span> <span style="color: #339933;">+=</span> logo_mylogo_clut224.<span style="color: #202020;">o</span>
|
4. 修改drivers/video/logo/Kconfig
1
2
3
4
|
config LOGO_MYLOGO_CLUT224
bool <span style="color: #ff0000;">"224-color logo"</span>
depends on LOGO
<span style="color: #b1b100;">default</span> y
|
5. 修改drivers/video/logo/logo.c
1
2
3
4
|
<span style="color: #339933;">#ifdef CONFIG_LOGO_MYLOGO_CLUT224</span>
<span style="color: #808080; font-style: italic;">/* M32R Linux logo */</span>
logo <span style="color: #339933;">=</span> <span style="color: #339933;">&</span>amp<span style="color: #339933;">;</span>logo_mylogo_clut224<span style="color: #339933;">;</span>
<span style="color: #339933;">#endif</span>
|
至于logo的居中显示,可以参考<a href="http://qiang.ws/?p=613">http://qiang.ws/?p=613</a>
转载请注明:爱开源 » kernel中添加logo