This build script will automatically build LineageOS 14.1 Android ROM for Samsung SHV-E210L / SHV-E210S / SHV-E210K.
It is divided into 3 stages:
stage1.sh - Install all requirements for Android building, and download all needed LineageOS sources. As it needs to download and install very large amount of files this will take a long time on the first run. Sometimes the script exits in the middle due to fetch errors because of overloaded network, in that case just run it again and it will resume.
stage2.sh - Configure sources for GT-I9300 (international S3), and then patch the source to work for SHV-E210. This will be fast but it is the most important stage.
stage3.sh - Compile sources and build ROM package. This also can take a lot of time.
In stage2 and stage3, the script defaults for SHV-E210L. To specify another variant, run before stage2 and stage3:
export C1MODEL=c1skt for SHV-E210S or
export C1MODEL=c1ktt for SHV-E210K or
export C1MODEL=c1lgt for SHV-E210L (the default).
Building Android requires a lot of RAM - 16GB or more recommended, and a lot of free disk space - 250GB or more. Ubuntu, or another Debian-based linux is required to install all the required packages automatically. This script was tested and confirmed to work under normal Ubuntu 16.04 and under the new WSL-based Ubuntu from Windows Store. Only the new release of WSL that is available in Windows 10 Fall Creators Update can be used to build Android, older versions of WSL will fail.
If you don't want to build this ROM by yourself, and just want to download a ready to use ROM, it is here:
https://www.androidfilehost.com/?w=files&flid=146865
XDA thread about this ROM is here:
https://forum.xda-developers.com/galaxy-s3/general/rom-fullgreen-rom-e210l-everything-t3360600