1.下载repo脚本
repo是google用Python脚本写的调用git的脚本,用来下载,管理Android项目仓库
参考:https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/
# mkdir ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
#chmod a+x ~/bin/repo
#export PATH=~/bin:$PATH
REPO_URL = 'https://gerrit.googlesource.com/git-repo'
修改为清华大学的地址https://aosp.tuna.tsinghua.edu.cn/git-repo
4.内核
git clone git://git.freescale.com/imx/linux-imx.git kernel_imx
cd kernel_imx
git checkout n7.1.1_1.0.0-ga
5.u-boot
cd bootloader
git clone git://git.freescale.com/imx/uboot-imx.git uboot-imx
cd uboot-imx
git checkout n7.1.1_1.0.0-ga
repo是google用Python脚本写的调用git的脚本,用来下载,管理Android项目仓库
参考:https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/
# mkdir ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
#chmod a+x ~/bin/repo
#export PATH=~/bin:$PATH
# repo --help
出现 repo init 等提示初始化信息,repo下载成功
REPO_URL = 'https://gerrit.googlesource.com/git-repo'
修改为清华大学的地址https://aosp.tuna.tsinghua.edu.cn/git-repo
3.运行下载脚本
初始化仓库
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-7.1.1_r13
同步:
repo sync
或者运行下载脚本,防止网络不稳定
#!/bin/sh
repo sync
while [ $? -ne 0 ]
do
repo sync
done
4.内核
git clone git://git.freescale.com/imx/linux-imx.git kernel_imx
cd kernel_imx
git checkout n7.1.1_1.0.0-ga
5.u-boot
cd bootloader
git clone git://git.freescale.com/imx/uboot-imx.git uboot-imx
cd uboot-imx
git checkout n7.1.1_1.0.0-ga