栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

系统开发 (一)Aosp 下载

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

系统开发 (一)Aosp 下载

ubuntu18.04

1 安装所需依赖

sudo apt-get install git  curl

sudo apt-get install python

git config --global user.email xxxx

git config --global user.name xxxxx

git config --list 查看配置正确与否

2 repo下载 

AOSP | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

更新 REPO_URL  默认是google的 

export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'

代码目录

mkdir android
cd android
repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest

 查看分支

repo branches 

no branch

cd .repo/manifest.git

git branch -a

下载 7.0.0_r1分支

repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-7.0.0_r1

repo sync -j4   根据cpu 核数目 同步代码

大约 100多个G 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/757742.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号