Step1. Enter into the root directory of the code:
1 | $ source build/envsetup.sh |
Step2. Choose Version information:
full_XXXX-eng for eng version
full_XXXX-userdebug for debug version
full_XXXX-user for user version
1 | $ lunch full_XXXX-eng |
Step3. Build options:
3.1 Build all
1 | $ make –j$(processes number) |
3.2 Build preloader
1 | $ make pl –j$(processes number) |
3.3 Build lk
1 | $ make lk –j$(processes number) |
3.4 Build kernel
1 | $ make kernel –j$(processes number) |
3.5 Make boot image
1 | $ make bootimage –j$(processes number) |
3.6 Build android and make system image
1 | $ make systemimage –j$(processes number) |