Follow these instructions to successfully build Lunar OS 5 Community on your machine. It's quite simple:
- Initialize the repo in a folder of your choice, by opening a terminal and running repo init -u https://gerrit.goodphone.foundation/android/manifest -b LunarOS_5
- Run repo sync to sync all git repos.
- Run source build/envsetup.sh
- Run lunch
- Pick a build variant from the 6 options. The one ending in "-eng" is the full debug build (slow UI) and the one ending in "-user" is the release build.
- To start the build, run make -j12 . The number after -j can vary depending on the number of cores your processor has, so you could use less or more.
- The path to the scatter file you need in order to flash the product of your build is out/target/product/g1970upt_v2_gk_p60c_oj_r/MT6771_Android_scatter.txt
Flash this on your device and enjoy Lunar OS 5.X Community!