[Galaxy Tab S Android Development] yang_w:
How To Build MoKee Rom For Exynos5420 Device (7.1.2)

​

Support Device :

klimtwifi # Samsung T700
klimtlte # Samsung T705
chagallwifi # Samsung T800
chagalllte # Samsung T805
chagallltetmo # Samsung T807T
ha3g # Samsung Note3 (N900)

Step 1: Setting Up A Compile Environment

You must have a 64-bit environment.

A Linux computer should have 8 GB RAM or more, otherwise build errors may occur.

Ubuntu 16.04

These instructions should work for other version of Ubuntu and most other Debian-based systems.

Install build packages

Open a terminal (ctrl + alt + t). First install the necessary packages; copy paste the code below and hit enter.

sudo apt-get update
sudo apt-get install git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng maven bc pngquant imagemagick yasm libssl-dev
sudo apt-get install openjdk-8-jdk

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

Add bin to PATH

echo "export PATH=~/bin:$PATH" >> ~/.bashrc

Configure git:

git config --global user.email "your@email.address"
git config --global user.name "Your Name"

Move to build directory and sync the source code:

cd ~/mokee
repo init -u https://github.com/Cyborg2017/android_mokee.git -b mokee-7.1.2
repo sync -j8 -f --no-clone-bundle

Let's configure ccache too. It will reduce the build time to 40% after first build

echo "export USE_CCACHE=1" >> ~/.bashrc
~/mokee/prebuilts/misc/linux-x86/ccache/ccache -M 25G

25G means it will use upto 25 gb of disk space for ccaching. Atleast 10 gb is recommended. But if you want to compile for more devices, use more space for ccache.

Step 2: Compiling For Your Device

# MoKee Rom For Samsung Exynos5420 Chips Device

============================================================

To initialize your local repository using the MoKee trees, use a command like this:

repo init -u https://github.com/Cyborg2017/android_mokee.git -b mokee-7.1.2

Then to sync up:

repo sync

Start Work

-------------------------------------------------------------

To work faster, we introduced a new build script to help you start compiling.

First, go to the root path of your project. We assume that your source is under

(/mokee):

cd /mokee

then feel free to use the build script:

. build/envsetup.sh
lunch mk_klimtwifi # T700
lunch mk_klimtlte # T705
lunch mk_chagallwifi # T800
lunch mk_chagalllte # T805
lunch mk_chagallltetmo # T807T
lunch mk_ha3g # N900
mka bacon -j8

The script is interactive so everything else is self-explanatory.

Source:

https://github.com/Cyborg2017/android_mokee

https://github.com/Cyborg2017/android_device_samsung_exynos5420-common

https://github.com/Cyborg2017/android_device_samsung_chagalllte

https://github.com/Cyborg2017/android_device_samsung_chagallwifi

https://github.com/Cyborg2017/android_device_samsung_klimtlte

https://github.com/Cyborg2017/android_device_samsung_klimtwifi

https://github.com/Cyborg2017/android_device_samsung_chagallltetmo

https://github.com/Cyborg2017/android_device_samsung_ha3g

https://github.com/Cyborg2017/android_kernel_samsung_exynos5420

Thanks:

MoKee Rom Team: https://github.com/MoKee

Exynos5420 Team: https://github.com/exynos5420

LineageOs Team: https://github.com/LineageOS