1. Android build
  - Download original android source code ( android-8.1.0_r12 ) from http://source.android.com
  ( $repo init -u https://android.googlesource.com/platform/manifest -b android-8.1.0_r12
    $repo sync -cdq -j12 --no-tags
    $repo start android-8.1.0_r12 --all
  )
  
  - Untar opensource packages of LMQ710GX_Oreo_Android.tar.gz into downloaded android source directory
       a) tar -xvzf LMQ710GX_Oreo_Android.tar.gz

  - And, merge the source into the android source code
  	
  - Before the android source code compilation, you have to add google original prebuilt source(toolchain) into the android directory.
  
  - Create folder by name "arm-eabi-6.3.1" under "prebuilts/gcc/linux-x86/arm"
  
  - Download toolchain from https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/arm-eabi/
		file name : gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi.tar.xz in to the path "prebuilts/gcc/linux-x86/arm/arm-eabi-6.3.1"
		
  - Uncompress using following command at the prebuilts/gcc/linux-x86/arm/arm-eabi-6.3.1
    a) xz -d gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi.tar.xz
	b) tar -xf gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi.tar	
	c) mv gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi/* ./
    
  - When you compile the android source code, you need to add kernel files by 
  - Uncompress using following command at the android directory
  
        b) tar -xvzf LMQ710GX_Oreo_Kernel.tar.gz
		
  - Run following scripts to build android
  
    a) source build/envsetup.sh
	b) lunch 1
	c) export ALLOW_MISSING_DEPENDENCIES=true
    d) make -j4	
  
    - After build, you can find output at out/target/product/generic

2. Kernel Build  

   - Download toolchain from https://releases.linaro.org/components/toolchain/binaries/6.3-2017.05/arm-eabi/
		file name : gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi.tar.xz in to the path "prebuilts/gcc/linux-x86/arm/arm-eabi-6.3.1"
		
  - Uncompress using following command at the prebuilts/gcc/linux-x86/arm/arm-eabi-6.3.1
    a) xz -d gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi.tar.xz
	b) tar -xf gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi.tar	
	c) mv gcc-linaro-6.3.1-2017.05-x86_64_arm-eabi/*./
    
  - Uncompress using following command at the android directory
        a) tar -xvzf  LMQ710GX_Oreo_Kernel.tar.gz

  - Run following scripts to build kernel
  
a) make -j8 -C kernel-3.18 O=../out ARCH=arm CROSS_COMPILE=../prebuilts/gcc/linux-x86/arm/arm-eabi-6.3.1/bin/arm-eabi- LGE_TARGET_PLATFORM=mt6750 LGE_TARGET_DEVICE=mcv7a MTK_DTBO_FEATURE=yes mcv7a_lao_com_defconfig
 
b)make -j8 -C kernel-3.18 O=../out ARCH=arm CROSS_COMPILE=../prebuilts/gcc/linux-x86/arm/arm-eabi-6.3.1/bin/arm-eabi- LGE_TARGET_PLATFORM=mt6750 LGE_TARGET_DEVICE=mcv7a MTK_DTBO_FEATURE=yes headers_install 

c)make -j8 -C kernel-3.18 O=../out ARCH=arm CROSS_COMPILE=../prebuilts/gcc/linux-x86/arm/arm-eabi-6.3.1/bin/arm-eabi- LGE_TARGET_PLATFORM=mt6750 LGE_TARGET_DEVICE=mcv7a MTK_DTBO_FEATURE=yes
	
	
	* "-j4" : The number, 4, is the number of multiple jobs to be invoked simultaneously. 
  - After build, you can find the build image(zImage) at android/out/arch/arm/boot
  

  



