Difference between revisions of "IoTGateway/BSP/Android/BSPsandImages/Source code"

From ESS-WIKI
Jump to: navigation, search
Line 23: Line 23:
 
$ cd myandroid/
 
$ cd myandroid/
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">Then you can build image for  Android M6.0.1_2.1.0</span></span>

Revision as of 06:33, 3 February 2017

Getting Android source code (Android 6.0.1_2.1.0/kernel Yocto-2.0 /U-Boot Yocto-2.0)

$ mkdir myandroid $ mkdir bin 
$ cd myandroid/ 
$ curl [https://storage.googleapis.com/git-repo-downloads/repo https://storage.googleapis.com/git-repo-downloads/repo] > ../bin/repo 
$ chmod a+x ../bin/repo 
$ ../bin/repo init -u [https://github.com/ADVANTECH-Corp/android-manifest.git https://github.com/ADVANTECH-Corp/android-manifest.git] -b m6.0.1_2.1.0-ga 
$ ../bin/repo sync
Remove the .repo and .git file
$ find . -name .repo | xargs rm -rf
$ find . -name .git | xargs rm -rf
Patch to Android M6.0.1_2.1.0
$ cd myandroid/bootable/bootloader/uboot-imx/
$ patch -p1 <../../../patches_android_6.0.1/6001-Uboot_Yocto_4.1.15_1.2.0-to-Android_M6.0.1_2.1.0.patch 
$ cd myandroid/kernel_imx/ 
$ patch -p1 <../patches_android_6.0.1/6001-Linux_Yocto_4.1.15_1.2.0-to-Android_M6.0.1_2.1.0.patch 
$ cd myandroid/
Then you can build image for  Android M6.0.1_2.1.0