惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
P
Proofpoint News Feed
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
美团技术团队
D
Docker
博客园 - Franky
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

博客园 - nasiry

转入墙内:SAS HBA crossflashing or flashing to IT mode, Dell Perc H200 and H310 从下往上看--新皮层资料的读后感 第四部分 来自神经元的设计-perceptron 感知机 从下往上看--新皮层资料的读后感 第三部分 70年前的逆向推演- 从NN到ANN 从下往上看--新皮层资料的读后感 第二部分:突触Synapses 从下往上看--新皮层资料的读后感 第一部分:皮层细胞 aliyun source.list 建站随手记:installation python virtualenv mezzanine -1 建站随手记:about server stack 摘抄---USB RNDIS/CDC White Paper January 15, 2003 指针错位导致对FSD误判 摘抄--Multithreaded Programming on the Pocket PC with Visual C++ Touchpad驱动分析 摘录----What Is MTP? (Sidebar) 摘录---PlaysForSure/Napster to Go Testing 摘录---Windows CE API机制初探 摘录---Hacking Windows CE 串口驱动分析-未完成 摘抄--------See mips RUN中文版 摘抄---非技术---追梦—SQUARE大传
Android 6编译环境搭建 (Marshmallow)
nasiry · 2016-02-12 · via 博客园 - nasiry

1.安装 ubuntu 14.03 

       尽管android推荐 ubuntu 15, 安全起见,还是装LTS的14.04,步骤跳过

2. JDK:

Marshmallow 需要 JDK8 ,添个源,顺手配下java

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update 
sudo update-alternatives --config java
sudo update-alternatives --config javac

3.装下依赖项

sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
  lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
  libgl1-mesa-dev libxml2-utils xsltproc unzip

4. adb USB 

 wget -S -O - http://source.android.com/source/51-android.rules | sed "s/<username>/$USER/" | sudo tee >/dev/null /etc/udev/rules.d/51-android.rules; sudo udevadm control --reload-rules

5.设置编译输出目录

export OUT_DIR_COMMON_BASE=<path-to-your-out-directory>

6.装个REPO工具$ mkdir ~/bin



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

cd ~
git clone git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git

PATH=~/git-repo:$PATH

7.建个工作目录

mkdir ~/marshmallow
cd ~/marshmallow
墙内

指定Head版本

repo init -u git://aosp.tuna.tsinghua.edu.cn/aosp/platform/manifest
指定分支
repo init -u git://aosp.tuna.tsinghua.edu.cn/aosp/platform/manifest -b android-6.0.1_r16
 
墙外
repo init -u https://android.googlesource.com/platform/manifest
或者

repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r16
 
同步代码
$ repo sync

8.