How to compile AOSP 6.0 ROM - TheComputerGuy96/android_device_samsung_kylepro GitHub Wiki
The following commands should be used to install required packages:
For Ubuntu 14.04
sudo apt-get update
sudo apt-get install git bison build-essential curl flex gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libxml2 libxml2-utils lzop openjdk-7-jdk openjdk-7-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev
For Ubuntu 16.04
sudo apt-get remove openjdk-* icedtea-* icedtea6-*
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
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update && sudo apt-get install openjdk-7-jdk
The repo command should also be downloaded and installed:
sudo wget https://storage.googleapis.com/git-repo-downloads/repo -O /usr/local/bin/repo
Then in the desired directory, initialize the git repositories:
repo init -u https://github.com/TheComputerGuy96/android.git -b aosp-6.0
Do a repo sync to download all the sources:
repo sync
Then extract proprietary libraries and apply patches:
chmod +x device/samsung/kylepro/patch
device/samsung/kylepro/patch
patch -p1 < device/samsung/kylepro/AOSP\ 6.0\ patches.diff
patch -p1 < device/samsung/kylepro/misc/*.patch
Finally, build the ROM:
. build/envsetup.sh
brunch kylepro