D
Deleted User
Guest
Set up build environment:
install JDK6-
Open terminal and issue:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
Install android SDK-
Download Android SDK
Get the one for existing IDE
Move downloaded file to home directory and extract it
Install platform-tools-
Goto android-sdk-linux/tools and double-click android and the click run in terminal
Make sure platform-tools and build-tools are checked and click install
Add paths for Android Tools-
Goto home dir and hold "ctrl" and hit "h"
open .bashrc
Add these lines to top:
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
Add USB permissions-
Download this file: 51-android.rules
Open terminal and issue:
sudo nautilus
When file window opens, grab file you just downloaded and move it to:
etc/udev/rules.d (note: click on File System then goto etc/udev/rules.d)
Install build packages-
Open terminal and issue:
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 schedtool
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Install Repo-
Open terminal and issue:
mkdir bin
PATH=~/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Repo-notes:
add "export PATH=${PATH}:~/bin" to your .bashrc so you don't have to add path everytime you reboot
issue these two commands in terminal so you don't have to enter it each time:
git config --global user.name "your-username"
git config --global user.email your-email
Reboot pc so paths and usb permissions are started.
Download CM Source:
Create a folder in your home dir for the source. I will be calling it source for this guide.
Open terminal and issue:
cd source
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync
Syncing repo takes a bit of time depending on your pc and internet speed.
Once sync is completed issue:
cd vendor/cm
./get-prebuilts (this downloads CM prebuilt stuff)
cd ../../ (this takes you back to source root)
cd device
mkdir zte
cd zte
git clone https://github.com/totlth/cm10.1_device_zte_elden.git elden (this will clone the device tree into a folder named "elden")
cd elden
(make sure that both extract-files.sh and setup-makefiles.sh are executable & connect your phone to pc with usb cord)
./extract-files.sh (proprietary blobs)
cd ../../../ (this takes you back to source root)
cd hardware/qcom
git clone https://github.com/totlth/cm10.1-elden_hardware_qcom_audio-legacy.git audio-legacy
git clone https://github.com/totlth/cm10.1-elden_hardware_qcom_display-legacy.git display-legacy
git clone https://github.com/totlth/cm10.1-elden_hardware_qcom_media-legacy.git media-legacy
cd ../../ (this takes you back to source root)
mkdir kernel
cd kernel
mkdir zte
cd zte
git clone https://github.com/totlth/android_kernel_zte_elden.git elden
cd ../../ (this takes you back to source root)
Start Build
From source root dir issue:
. build/envsetup.sh && brunch elden
---when the build completes, the flashable zip will be in source/out/target/product/elden
In between builds make sure you clean out the last build
From source root dir issue:
make clobber
The sources referenced in this guide assume you are building CM10.1 for ZTE Avid 4G
Hope this helps and stay groovy yall.
Any and all questions and comments are welcome.
install JDK6-
Open terminal and issue:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
Install android SDK-
Download Android SDK
Get the one for existing IDE
Move downloaded file to home directory and extract it
Install platform-tools-
Goto android-sdk-linux/tools and double-click android and the click run in terminal
Make sure platform-tools and build-tools are checked and click install
Add paths for Android Tools-
Goto home dir and hold "ctrl" and hit "h"
open .bashrc
Add these lines to top:
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
Add USB permissions-
Download this file: 51-android.rules
Open terminal and issue:
sudo nautilus
When file window opens, grab file you just downloaded and move it to:
etc/udev/rules.d (note: click on File System then goto etc/udev/rules.d)
Install build packages-
Open terminal and issue:
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 schedtool
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Install Repo-
Open terminal and issue:
mkdir bin
PATH=~/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Repo-notes:
add "export PATH=${PATH}:~/bin" to your .bashrc so you don't have to add path everytime you reboot
issue these two commands in terminal so you don't have to enter it each time:
git config --global user.name "your-username"
git config --global user.email your-email
Reboot pc so paths and usb permissions are started.
Download CM Source:
Create a folder in your home dir for the source. I will be calling it source for this guide.
Open terminal and issue:
cd source
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync
Syncing repo takes a bit of time depending on your pc and internet speed.
Once sync is completed issue:
cd vendor/cm
./get-prebuilts (this downloads CM prebuilt stuff)
cd ../../ (this takes you back to source root)
cd device
mkdir zte
cd zte
git clone https://github.com/totlth/cm10.1_device_zte_elden.git elden (this will clone the device tree into a folder named "elden")
cd elden
(make sure that both extract-files.sh and setup-makefiles.sh are executable & connect your phone to pc with usb cord)
./extract-files.sh (proprietary blobs)
cd ../../../ (this takes you back to source root)
cd hardware/qcom
git clone https://github.com/totlth/cm10.1-elden_hardware_qcom_audio-legacy.git audio-legacy
git clone https://github.com/totlth/cm10.1-elden_hardware_qcom_display-legacy.git display-legacy
git clone https://github.com/totlth/cm10.1-elden_hardware_qcom_media-legacy.git media-legacy
cd ../../ (this takes you back to source root)
mkdir kernel
cd kernel
mkdir zte
cd zte
git clone https://github.com/totlth/android_kernel_zte_elden.git elden
cd ../../ (this takes you back to source root)
Start Build
From source root dir issue:
. build/envsetup.sh && brunch elden
---when the build completes, the flashable zip will be in source/out/target/product/elden
In between builds make sure you clean out the last build
From source root dir issue:
make clobber
The sources referenced in this guide assume you are building CM10.1 for ZTE Avid 4G
Hope this helps and stay groovy yall.
Any and all questions and comments are welcome.