https://naba-san.hatenablog.com/


Android を自力でビルドする (Ubuntu 10.04)

まだ記事になってないよ。メモだよ。

Set environment & building

install packages

sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils

install&initialize repo

$ mkdir ~/bin
$ PATH=~/bin:$PATH

$curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

Get AOSP Source *1

$ mkdir ~/working
$ cd working
$ repo init -u https://android.googlesource.com/platform/manifest
$ repo sync
$ source build/envsetup.sh
$ lunch

Get CanogenMod Source

CM 7.2.0 (GingerBread)

$ mkdir ~/working
$ cd working
$ repo init -u https://github.com/CyanogenMod/android.git -b gingerbread
$ repo sync
$ source build/envsetup.sh
$ lunch

CM 9.0.0 (ICS)

$ mkdir ~/working
$ cd working
$ repo init -u https://github.com/CyanogenMod/android.git -b ics
$ repo sync
$ source build/envsetup.sh
$ lunch