Last active
August 15, 2016 09:32
-
-
Save FrozenCow/9f7658a4ba49feb96046a060a3539e73 to your computer and use it in GitHub Desktop.
CyanogenMod 13 on Ubuntu 16.08
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Building CyanogenMod 13 on Ubuntu 16.08 (xenial) | |
## Install required packages | |
cat > /etc/apt/sources.list << EOF | |
deb http://nl.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse | |
deb http://nl.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse | |
deb http://nl.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse | |
deb http://archive.canonical.com/ubuntu xenial partner | |
EOF | |
apt-get update | |
apt-get upgrade | |
apt-get install software-properties-common | |
add-apt-repository ppa:openjdk-r/ppa | |
apt-get update | |
apt-get install bison build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libxml2 libxml2-utils lzop maven pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev | |
apt-get install g++-multilib gcc-multilib lib32ncurses5-dev lib32z1-dev | |
apt-get install lib32readline6-dev | |
apt-get install libwxgtk3.0-dev openjdk-8-jdk | |
apt-get install openjdk-7-jdk | |
## Install Android SDK | |
# See https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7 | |
## Install repo | |
mkdir -p ~/bin | |
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo | |
chmod a+x ~/bin/repo | |
cat >> ~/.profile << EOF | |
# set PATH so it includes user's private bin if it exists | |
if [ -d "$HOME/bin" ] ; then | |
PATH="$HOME/bin:$PATH" | |
fi | |
EOF | |
## Initialize CyanogenMod repositories | |
mkdir -p ~/android/system | |
cd ~/android/system | |
repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0 | |
## Retrieve CyanogenMod repositories | |
repo sync | |
## | |
source build/envsetup.sh | |
breakfast bacon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment