标签:
1 #!/bin/bash 2 base_path="/Volumes/Android/omnirom_5.0" #此目录是我存放源代码的目录 3 xiaomi_device="device/xiaomi/cancro" #此目录用于存放小米3的device文件 4 aarch64_darwin_x86="prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9" #同步mac os x 使用的aarch64交叉编译器 5 6 #get the xiaomi mi3 cancro device 7 if [ ! -d $base_path/$xiaomi_device ]; then 8 mkdir -p $base_path/$xiaomi_device 9 git clone https://github.com/sndnvaps/android_device_xiaomi_cancro.git -b cm-12.0 . 10 else 11 cd $base_path/$xiaomi_device 12 git clone https://github.com/sndnvaps/android_device_xiaomi_cancro.git -b cm-12.0 . 13 fi 14 15 #get the aarch64_darwin_x86 cross compiler 16 17 if [ ! -d $base_path/$aarch64_darwin_x86 ]; then 18 mkdir -p $base_path/$aarch64_darwin_x86 19 git clone https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9.git -b master . 20 else 21 cd $base_path/$aarch64_darwin_x86 22 git clone https://android.googlesource.com/platform/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9.git -b master . 23 fi
标签:
原文地址:http://www.cnblogs.com/sn-dnv-aps/p/4297110.html