代码拉取完成,页面将自动刷新
同步操作将从 Embedfire-old/ebf_6ull_linux 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/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/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。