Difference between revisions of "OS: Android - Build AOKP"

From OnnoWiki
Jump to navigation Jump to search
(New page: ==Referensi== * http://rootzwiki.com/topic/31166-tutorial-building-aokp-ubuntu-1204/ ==Pranala Menarik== * Android * Pemrogramman Android * [[OS: Android - Mempersiapkan Deve...)
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
==Build Environment==
  
 +
* Linux based operating system -- Tested on Ubuntu 12.04, 12.10, 13.04 (64bit)
 +
* Terminal
 +
* Decent hardware (minimum of at least a dual core CPU and 4 GB of RAM)
 +
* Optimally have an SSD (standard mechanical drives work as well but slow down the process drastically)
 +
* Must have required packages for building installed, I will list them further down
 +
 +
==Instalasi Aplikasi Pendukung==
 +
 +
sudo apt-get install git gnupg flex bison gperf build-essential \
 +
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
 +
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
 +
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
 +
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 \
 +
pngcrush schedtool
 +
 +
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
 +
 +
==Instalasi Oracle Java 6==
 +
 +
sudo add-apt-repository ppa:webupd8team/java
 +
sudo apt-get update
 +
sudo apt-get install oracle-java6-installer
 +
sudo update-java-alternatives -s java-6-oracle
 +
sudo apt-get install oracle-java6-set-default
 +
 +
==Siapkan Perintah Repo==
 +
 +
mkdir ~/bin
 +
PATH=~/bin:$PATH
 +
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
 +
chmod a+x ~/bin/repo
 +
 +
==Siapkan Source Code==
 +
 +
cd ~
 +
rm -Rf android-source
 +
mkdir -p android-source
 +
cp -Rf /usr/local/aokp/mirror/* .
 +
repo init -u https://github.com/AOKP/platform_manifest.git -b jb-mr1
 +
repo init -u https://github.com/AOKP/platform_manifest.git -b jb
 +
repo sync
 +
 +
Instalasi kernel secara manual
 +
 +
. ./platform_manifest/manual_add_kernel_manifest.sh
 +
 +
==Build==
 +
 +
cd ~/android-source
 +
. build/envsetup.sh
 +
brunch
 +
 +
atau
 +
 +
cd ~/android-source
 +
. build/envsetup.sh
 +
time
 +
brunch aokp_mako-userdebug
 +
 +
dari waktu ke waktu lakukan
 +
 +
cd ~/android-source
 +
make clobber
 +
 +
Di akhiri dengan
 +
 +
make j16
  
 
==Referensi==
 
==Referensi==
Line 6: Line 74:
  
 
==Pranala Menarik==
 
==Pranala Menarik==
 
  
 
* [[Android]]
 
* [[Android]]

Latest revision as of 09:53, 29 May 2014

Build Environment

  • Linux based operating system -- Tested on Ubuntu 12.04, 12.10, 13.04 (64bit)
  • Terminal
  • Decent hardware (minimum of at least a dual core CPU and 4 GB of RAM)
  • Optimally have an SSD (standard mechanical drives work as well but slow down the process drastically)
  • Must have required packages for building installed, I will list them further down

Instalasi Aplikasi Pendukung

sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 \
pngcrush schedtool
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

Instalasi Oracle Java 6

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
sudo update-java-alternatives -s java-6-oracle
sudo apt-get install oracle-java6-set-default

Siapkan Perintah Repo

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

Siapkan Source Code

cd ~
rm -Rf android-source
mkdir -p android-source
cp -Rf /usr/local/aokp/mirror/* .
repo init -u https://github.com/AOKP/platform_manifest.git -b jb-mr1
repo init -u https://github.com/AOKP/platform_manifest.git -b jb
repo sync

Instalasi kernel secara manual

. ./platform_manifest/manual_add_kernel_manifest.sh

Build

cd ~/android-source
. build/envsetup.sh
brunch

atau

cd ~/android-source
. build/envsetup.sh
time
brunch aokp_mako-userdebug

dari waktu ke waktu lakukan

cd ~/android-source
make clobber

Di akhiri dengan

make j16

Referensi

Pranala Menarik