

Note that this is in no way a walkthrough in how to compile

Code: repo init -u https://android.googlesource.com/platform/manifest -b refs/tags/android-7.1.1_r6 repo sync

Code: git clone https://github.com/zaclimon/android_kernel_google_msm -b mako_nougat

Code: export CROSS_COMPILE "/path/to/aosp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-" make mako_defconfig make -j$(grep -c processor /proc/cpuinfo)

Code: device/lge: git clone https://github.com/zaclimon/android_device_lge_mako mako hardware/qcom: git clone https://github.com/zaclimon/android_hardware_qcom_audio audio git clone https://github.com/zaclimon/android_hardware_qcom_display display git clone https://github.com/zaclimon/android_hardware_qcom_gps gps git clone https://github.com/zaclimon/android_hardware_qcom_media media vendor: git clone https://github.com/zaclimon/android_vendor_lge lge

Code: bionic: https://github.com/LineageOS/android_bionic/commit/81af26a3a033723fb34ddf280e33a9d4a6ce82c4.patch frameworks/base: https://gist.github.com/zaclimon/bb39d7f5059b63e3add3b5cad15e87db https://android-review.googlesource.com/#/c/147266/ system/sepolicy: https://github.com/LineageOS/android_system_sepolicy/commit/10dd0402ab62aa1a6416d7ea549a6a3eea1c6ae4.patch

Code: export ANDROID_JACK_VM_ARGS="-Xmx4g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"

Code: . build/envsetup.sh && lunch aosp_mako-userdebug make -j$(grep -c processor /proc/cpuinfo) otapackage

Since some of you guys asked me how to build from scratch, I will give a walkthrough of what I mostly did.(there are several guides for that on XDA) but more a guideon how I did my setup so you can replicate the AOSP builds on your device.Here's what I did:1. Download the latest AOSP revision for android-7.1 which is r6 at the time of this writing (replace with whatever required branch necessary)2. Download the kernel source used for the build:3. Once both sources has been downloaded, compile the kernel. Note that AOSP do have a kernel toolchain that you can use to compile4. Copy the arch/arm/boot/zImage file to the Android source into device/lge/mako-kernelNote: You must create the said directories if they don't exist. You also must rename the file to kernel after copy.5. Go back to the AOSP source, and download/update/replace the following repositories for each component (relative path):6. Apply the following patches to each of their respective repositories:7. Increase RAM usage for Jack (Only if you have 6/8GB of RAM in your system)8. Once all the patches have been applied, we can now proceed to compile the system.9. The build should be in out/target/product/mako10. Flash and enjoy!!