-
#!/bin/bash
-
set -xv
-
-
-
if [ $# -lt 1 ]
-
then
-
echo "usage:./mklogo.sh start.png"
-
exit 1
-
fi
-
-
-
file_pic=$1
-
picName=${file_pic%.*}
-
echo $picName
-
-
pngtopnm ${picName}.png > ${picName}.pnm
-
pnmquant 224 ${picName}.pnm > ${picName}_224.pnm
-
pnmtoplainpnm ${picName}_224.pnm > ${picName}_224.ppm
运行方法:
sh mklogo.sh start.png
或
chmod +x mklogo.sh
./mklogo.sh start.png
将生成的 .ppm 文件复制到 kernel/drive/video/logo 下,替换掉 logo_linux_clut224.ppm, 前删除
logo_linux_clut224.o ,logo_linux_clut224.c 文件
重新 make kernel即可
阅读(1350) | 评论(0) | 转发(1) |