////////////////
批处理内容简单如下// #!/bin/sh
export PATH=PATH:/opt/hisi-linux/x86-arm/arm-hisiv200-linux/target/bin:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin:/opt/hisi-linux-nptl/arm-hisiv100-linux/target/bin:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/lib:/opt/hisi-linux/x86-arm/arm-hisiv100-linux/target/bin:/opt/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/hisi-linux-nptl/arm-hisiv100-linux/bin:/opt/hisi-linux-nptl/arm-hisiv300-linux/bin:/opt/hisi-linux-nptl/arm-hisiv400-linux/bin:/opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/bin:/usr/lib/x86_64-linux-gnu:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/arm-hisiv300-linux-uclibcgnueabi/lib:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/arm-hisiv300-linux-uclibcgnueabi/lib/a9_soft:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/lib:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/lib:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/lib:/opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/bin:/opt/hisi-linux/x86-arm/arm-hisiv400-linux/lib:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/arm-hisiv300-linux-uclibcgnueabi/lib:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/arm-hisiv300-linux-uclibcgnueabi/bin:/opt/hisi-linux/x86-arm/arm-hisiv300-linux/arm-hisiv300-linux-uclibcgnueabi/lib:/opt/hisi-linux/x86-arm/arm-hisiv500-linux/arm-hisiv500-linux-uclibcgnueabi/bin:/opt/hisi-linux/x86-arm/arm-hisiv500-linux/arm-hisiv500-linux-uclibcgnueabi/lib:/opt/hisi-linux/x86-arm/arm-hisiv500-linux/target/bincd /home/ngs
sudo chmod -R 777 /home/ngs/workspace#####################################HIRtc
注意这里,虽然是一个工程HIRtc,但有好几个配置,每种配置都会有一个目录,如果你也是用的eclipse,打开目录一看就清楚了,只要eclipse里面编译各个项目正常,这里就是正常的cd /home/ngs/workspace/HIRtc/Release
make -j4 clean
make -j4 all
cd /home/ngs/workspace/HIRtc/release_3516A
make -j4 clean
make -j4 all
cd /home/ngs/workspace/HIRtc/release_3535
make -j4 clean
make -j4 all
cd /home/ngs/workspace/HIRtc/release_3536C
make -j4 clean
make -j4 all
cd /home/ngs/workspace/HIRtc/releaseV200
make -j4 clean
make -j4 all
cd /home/ngs/workspace/HIRtc/releaseV300
make -j4 clean
make -j4 all#############################################IVHISetIP
cd /home/ngs/workspace/IVHISetIP/Release
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVHISetIP/release_3516A
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVHISetIP/release_3535
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVHISetIP/release_3536
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVHISetIP/release_3536C
make -j4 clean
make -j4 allcd /home/ngs/workspace/IVHISetIP/releaseV200
make -j4 clean
make -j4 all####################################IVComInfSDK
cd /home/ngs/workspace/IVComInfSDK/Release
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVComInfSDK/release_3516A
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVComInfSDK/release_3535
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVComInfSDK/release_3536
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVComInfSDK/release_3536C
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVComInfSDK/release_3798M
make -j4 clean
make -j4 all#############################################IVHIComDataSDK
cd /home/ngs/workspace/IVHIComDataSDK/Release
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVHIComDataSDK/release_3535
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVHIComDataSDK/release_3536
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVHIComDataSDK/release_3536C
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVHIComDataSDK/release_3798M
make -j4 clean
make -j4 all
cd /home/ngs/workspace/IVHIComDataSDK/release_3516A
make -j4 clean
make -j4 all
#############################################HSMPISDK_3516D
cd /home/ngs/workspace/HSMPISDK_3516D/Release
make -j4 clean
make -j4 all
#############################################HSMPISDK_3520D
cd /home/ngs/workspace/HSMPISDK_3520D/Release
make -j4 clean
make -j4 all
cd /home/ngs/workspace/HSMPISDK_3520D/release_MINI
make -j4 clean
make -j4 all#############################################HSMPISDK_3535
cd /home/ngs/workspace/HSMPISDK_3535/Release
make -j4 clean
make -j4 all#############################################HSMPISDK_3536
cd /home/ngs/workspace/HSMPISDK_3536/Release
make -j4 clean
make -j4 all#############################################HSMPISDK_3536C
cd /home/ngs/workspace/HSMPISDK_3536C/Release
make -j4 clean
make -j4 all#############################################HSMPISDKEx_3798M
cd /home/ngs/workspace/HSMPISDKEx_3798M/Release
make -j4 clean
make -j4 all/////////////////////////////////////////////////////////////////////////
后面很多,省略
qt的工程也是一样:
###################################IVHITvWallCtrl
cd /home/ngs/workspace/IVHITvWallCtrl
make -j4 clean
sudo /home/ngs/QT/QT4.86_3798M/bin/qmake /home/ngs/workspace/IVHITvWallCtrl/IVHITvWallCtrl.pro -r -spec qws/linux-hisi3798M-g++ CONFIG+=3798M
make -j4
sudo chmod -R 777 /home/ngs/workspace/IVHITvWallCtrl/IVHITvWallCtrl
echo “ngs” |sudo -S cp -p -r IVHITvWallCtrl /nfsroot/HI3798M
echo “ngs” |sudo -S rm IVHITvWallCtrlcd /home/ngs/workspace/IVHITvWallCtrl
make -j4 clean
sudo /home/ngs/QT/Qt4.8.6/bin/qmake /home/ngs/workspace/IVHITvWallCtrl/IVHITvWallCtrl.pro -r -spec qws/linux-3520d-g++ CONFIG+=HI3520D
make -j4
sudo chmod -R 777 /home/ngs/workspace/IVHITvWallCtrl/IVHITvWallCtrlecho “ngs” |sudo -S cp -p -r IVHITvWallCtrl /nfsroot/HI3536C
echo “ngs” |sudo -S cp -p -r IVHITvWallCtrl /nfsroot/HI3536
echo “ngs” |sudo -S cp -p -r IVHITvWallCtrl /nfsroot/HI3520D
echo “ngs” |sudo -S cp -p -r IVHITvWallCtrl /nfsroot/HI3535
echo “ngs” |sudo -S rm IVHITvWallCtrl/////////////////////////
然后再把我以前写的整体打包sh放到后面,这样就一个命令,直接产生升级包,就和大家平时用的一样了,唉,这么简单,怎么网上没有相关介绍呢,要么没搜到,要么就是太简单,所以称之为愚昧之重大发现,写出来,避免其他人遇到同样弱智的问题,折腾许久。 OK,输入sudo ./mkall.sh,升级包就自动放到网站或者发给客户了,每次改完程序,测试模块后,就是这个动作,就可以休息了免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:愚昧之重大发现-嵌入式Eclipse C++项目-命令行整体编译 https://www.yhzz.com.cn/a/22038.html