-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLGLK460_Nougat_README.txt
33 lines (29 loc) · 1.99 KB
/
LGLK460_Nougat_README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
1. Android build
- Download original android source code ( android-7.1.1_r22 ) from http://source.android.com
{
$repo init -u git://10.168.177.185/platform/manifest.git -b android-7.1.1_r22
$repo sync -cdq -j12 --no-tags
$repo start android-7.1.1_r22 --all
)
- Untar opensource packages of LGLK460_Nougat_Android.tar.gz into downloaded android source directory
a) tar -xvzf LGLK460_Nougat_Android.tar.gz
- And, merge the source into the android source code
- Run following scripts to build android
a) source build/envsetup.sh
b) lunch 1
c) 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
2. Kernel Build
- Uncompress using following command at the android directory
a) tar -xvzf LGLK460_Nougat_Kernel.tar.gz
- 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
a) cd android/kernel-3.18
b) mkdir -p out
c) export PATH=$PATH:$(pwd)/tools/lz4
d) make -C ../kernel-3.18 O=./out ARCH=arm CROSS_COMPILE=$(pwd)/../prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- ROOTDIR=../../android LGE_TARGET_PLATFORM=mt6750 LGE_TARGET_DEVICE=mth8 mth8_spr_us_defconfig -j4
e) make -C ../kernel-3.18 O=./out ARCH=arm CROSS_COMPILE=$(pwd)/../prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- ROOTDIR=../../android LGE_TARGET_PLATFORM=mt6750 LGE_TARGET_DEVICE=mth8 headers_install -j4
f) make -C ../kernel-3.18 O=./out ARCH=arm CROSS_COMPILE=$(pwd)/../prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- ROOTDIR=../../android LGE_TARGET_PLATFORM=mt6750 LGE_TARGET_DEVICE=mth8 -j4
* "-j4" : The number, 4, is the number of multiple jobs to be invoked simultaneously.
- After build, you can find the build image(zImage) at out/arch/arm/boot