1 Star 0 Fork 11

sudong/ebf_6ull_linux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
ijiedev 提交于 2019-11-27 02:45 . compatible with 5-inch and 4.3-inch LCD
#!/bin/bash
export PATH=/opt/arm-gcc/bin:$PATH
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
workdir=$(cd $(dirname $0); pwd)
lcdsize="5.0"
if [ -f "$workdir/.lcdsize" ]; then
echo "have a $workdir/.lcdsize"
else
echo "touch a $workdir/.lcdsize"
touch $workdir/.lcdsize
diff $workdir/drivers/video/logo/logo_linux_clut224_5.0.ppm $workdir/drivers/video/logo/logo_linux_clut224.ppm > /dev/null
if [ $0 == 0 ]; then
echo "old lcd size: 5.0" > $workdir/.lcdsize
else
echo "old lcd size: 4.3" > $workdir/.lcdsize
fi
fi
if [ " $1" == " " ] || [ "$1" == "5.0" ]; then
echo "LCD size: 5.0"
elif [ "$1" == "4.3" ]; then
echo "LCD size: 4.3"
lcdsize="4.3"
else
echo "LCD size error"
echo "usage: $0 [LCD size]"
echo "LCD size:"
echo " default:5.0"
echo " optional:4.3"
exit 0
fi
cat $workdir/.lcdsize | grep -i "5.0"
if [ $? -ne 0 ]; then
cat $workdir/.lcdsize | grep -i "4.3"
if [ $? -ne 0 ]; then
echo "LCD size error"
exit 1
fi
if [ $lcdsize == "5.0" ]; then
cp -v $workdir/drivers/video/logo/logo_linux_clut224_5.0.ppm $workdir/drivers/video/logo/logo_linux_clut224.ppm
echo "old lcd size: 5.0" > $workdir/.lcdsize
fi
else
if [ $lcdsize == "4.3" ]; then
echo "need 4.3"
cp -v $workdir/drivers/video/logo/logo_linux_clut224_4.3.ppm $workdir/drivers/video/logo/logo_linux_clut224.ppm
echo "old lcd size: 4.3" > $workdir/.lcdsize
fi
fi
make ARCH=arm imx6_v7_ebf_defconfig
make ARCH=arm -j10 CROSS_COMPILE=arm-linux-gnueabihf-
make -j10;./copy.sh;make modules_install ARCH=arm INSTALL_MOD_PATH=my_lib/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/isudong/ebf_6ull_linux.git
[email protected]:isudong/ebf_6ull_linux.git
isudong
ebf_6ull_linux
ebf_6ull_linux
master

搜索帮助