同时编译多个版本的脚本写法

TRUNK_SRC=$(pwd)
AA_SRC=$TRUNK_SRC/AA
ANDROID_SRC=$TRUNK_SRC/Android/android

# build driver.ko
cd $AA_SRC
mkdir -p build || exit 2
export PROJECT_TO_CMAKE=project_android_static
cd build
cmake ../cmake
make kernel_driver || exit 3
cp $AA_SRC/build/driver.ko $ANDROID_SRC/install
cp $AA_SRC/build/snd-XXXXalsa.ko $ANDROID_SRC/install
cp $AA_SRC/build/xxx.ko $ANDROID_SRC/install

export PROJECT_TO_CMAKE=project_android_ndk_adal
cmake ../cmake
make adal || exit 3
cd $TRUNK_SRC
cp $AA_SRC/build/projects/project_android_ndk_adal/adal/so/libadal.so $ANDROID_SRC/device/XXX/XXXX/lib/

cd $ANDROID_SRC
source build/envsetup.sh
lunch nXXXXX-eng
make -j32 || exit 1

echo "build android imgage done"

阅读更多
文章标签: 编译脚本
个人分类: linux
上一篇SVN文件冲突解决方法
下一篇android系统默认设置
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭