OS: Android - Build CyanogenMod untuk LG F240K

From OnnoWiki
Jump to navigation Jump to search

Android build

  • Download original android source code ( kitkat 4.4.2 ) from http://source.android.com
  • Untar opensource packages of LGF240K_Gpro_Kikat_V20e_Android.tar.gz into downloaded android source directory
tar zxvf LGF240K_Gpro_Kikat_V20e_Android.tar.gz -C ~/android-cyanogenmod/
  • And, merge the source into the android source code
  • Run following scripts to build android
cd ~/android-cyanogenmod
source build/envsetup.sh
lunch
You're building on Linux

Breakfast menu... pick a combo:
 1. aosp_arm-eng 		 4. vbox_x86-eng 		 7. cm_goldfish-userdebug 	 10. mini_x86-userdebug 
 2. aosp_x86-eng 		 5. mini_armv7a_neon-userdebug 	 8. cm_goldfish-user 		 11. full_mako-userdebug 
 3. aosp_mips-eng 		 6. cm_goldfish-eng 		 9. mini_mips-userdebug 
... and don't forget the bacon!

Which would you like? [aosp_arm-eng] 6


make -j4


  • When you compile the android source code, you have to add google original prebuilt source(toolchain) into the android directory.
  • After build, you can find output at out/target/product/generic

Kernel Build

  • Uncompress using following command at the android directory
unzip LGF240K_Gpro_Kikat_V20e_kernel.zip
tar zxvf LGF240K_Gpro_Kikat_V20e_kernel.tar.gz -C ~/android-cyanogenmod/


  • When you compile the kernel source code, you have to add google original prebuilt source(toolchain) into the android directory.
  • Run following scripts to build kernel
cd ~/android-cyanogenmod/android/kernel
lunch
make PATH=$PATH:tools/lz4demo ARCH=arm CROSS_COMPILE=../prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- gku_bcm-perf_defconfig zImage -j4
       * "-j4" : The number, 4, is the number of multiple jobs to be invoked simultaneously. 
       * lz4demo : More information can be found at "https://code.google.com/p/lz4/"
  • After build, you can find the build image(zImage) at arch/arm/boot

how to build chromium_lge (vendor\lge\external\chromium_lge)

please refer to Buildme.txt at the folder mentioned above.