-
Initialize the repository
repo init -u git://github.com/LineageOS/android.git -b cm-14.1
-
Add my manifest to the .repo folder (don't worry about the alert you will get about being DEPRECATED)
cp local_manifest.xml .repo/
-
Sync latest LineageOS 14.1 sources
repo sync -j20 --force-sync
-
Apply all Patches
./Exynos5410_patcher/patch.sh
-
You are good to go, proceed with the compiling process OPTIONAL (if you want built-in root support):
export WITH_SU=true