NEVER EVER USE ROOT UNLESS STATED
In this post we are covering how to do the build. You should have completed all previous tutorials.
Make sure you are in the top directory and run
. build/envsetup.sh. This will setup the environment ready for building android, and give you access to other commands you will need.
lunch rom_codename-userdebug. This tells the build system which device you wish to build for.
mka bacon. This is the final build! This command takes around 6 hours to complete on my own computer, speed varies based on specs. If you get an error such as
Target "bacon" not foundcheck your ROMs documentation for which command you need to use.
If your build completed successfully, you now have to flash it to your phone! The flashable zip should be in
If you made it this far congrats! You have built an entire ROM! You can now upload this to Sourceforge, AndroidFileHost, or anywhere you choose and share on XDA or Telegram. Commands learnt this post:
. build/envsetup.shto initialise the environment.
lunch rom_codename-userdebugto tell the build system which device you wish to build for.
mka baconto build the final package.