How to build Lineage OS for your device

Follow this video to begin building custom ROMs for your own device instead of demanding developers to make different ROMs for you.

Below are the commands used in the video:

#Requirements
1.Linux System
2.Understanding Capability
3.Good Internet Connection

Commands to Build Lineage OS 14(Nougat)

#Some Facts
SUDO-SuperUser DO
JDK- Java Development Kit
mkdir- make directory
brunch- combination of lunch and breakfast :P


sudo apt-get update

#Installs JAVA:
sudo apt-get install openjdk-8-jdk

#Installs Required Packages
sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
  lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
  libgl1-mesa-dev libxml2-utils xsltproc unzip

sudo apt install bc bison build-essential curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

#Makes Directory called bin
mkdir ~/bin

#Sets PATH
PATH=~/bin:$PATH

#Install REPO
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

chmod a+x ~/bin/repo

#Git Profile Configuration
git config --global user.name "Abhishek"

git config --global user.email "basevd94@gmail.com"

#Make Directory For Downloading Lineage OS 7.12 Source
mkdir los14
cd los14

#Initiating Lineage OS REPO for synchronize 
repo init -u https://github.com/LineageOS/android.git -b cm-14.1

repo sync


#Sets up build environment 
.build/envsetup.sh

brunch x500

Visit Here For More Info and To Learn:
https://source.android.com/source/initializing