SOC OV788开发:2.OV788 gcc -version 数字查看
SOC OV788开发:2.OV788 gcc -version 数字查看
linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396$ vi make/build.sh
…
#check gcc version
gccv=${CROSS_COMPILE}gcc --version | grep GCC | sed -e "s/^.* //g" | sed -e "s/\.//g"
if [ -z $gccv ] ; then
echo “${CROSS_COMPILE}gcc not found”
exit
fi
gccfile=which ${CROSS_COMPILE}gcc
gccdir=dirname $gccfile
if [ $gccv -gt 440 ] ; then
GCC_NO_UNDERSCORE=1
link_libgccdir="-L g c c d i r / . . / l i b / g c c / b a − e l f / 4.7.3 / − L gccdir/../lib/gcc/ba-elf/4.7.3/ -L gccdir/../lib/gcc/ba−elf/4.7.3/−Lgccdir/…/ba-elf/lib/"
else
GCC_NO_UNDERSCORE=0
link_libgccdir="-L g c c d i r / . . / l i b / g c c / b a − e l f / 4.4.0 / b a 2 / − L gccdir/../lib/gcc/ba-elf/4.4.0/ba2/ -L gccdir/../lib/gcc/ba−elf/4.4.0/ba2/−Lgccdir/…/ba-elf/lib/ba2"
fi
export GCC_NO_UNDERSCORE
export link_libgccdir
if [ ! -e build_$chip ] ; then
mkdir build_$chip
fi
linux@ubuntu:~/sdk_ov788$ ba-elf-gcc --version
ba-elf-gcc (GCC) 4.4.0
Copyright © 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
linux@ubuntu:~/sdk_ov788$ ba-elf-gcc --version| grep GCC
ba-elf-gcc (GCC) 4.4.0
linux@ubuntu:~/sdk_ov788$ ba-elf-gcc --version| grep GCC| sed -e “s/^.* //g”
4.4.0
linux@ubuntu:~/sdk_ov788$ ba-elf-gcc --version| grep GCC| sed -e “s/^.* //g” | sed -e “s/.//g”
440
文章来源: blog.csdn.net,作者:悟空胆好小,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/xushx_bigbear/article/details/123078972
- 点赞
- 收藏
- 关注作者
评论(0)