MTK ALPS开发环境配置及编译

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Environment Requirements
OS
Linux Ubuntu10.04(LTS, long term support version) 64bit
Memory & Disk Space
2+ G physical memory (Avoid “JVM run out of memory” & Speed up build performance) 10+G or more disk space is needed (to build Android tree)
Build ALPS
We use “makeMtk” build ALPS
If you type ./makeMtk or ./makeMtk –h, you will get how to use the makeMtk
Build ALPS
We use “makeMtk” build ALPS
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
(全局的Makefile, make 总入口) (一些基础的库的源代码) (引导加载器) (是编译和配置所需要的脚本和工具) (cts测试源码) (JAVA虚拟机有关的代码) (程序开发所需要的模板和工具) (目标机器使用的一些库) (应用程序的框架层) (与硬件相关的库, 供framework调用) (Linux内核源代码) (MTK平台相关代码) (Android的各种应用程序) (Android在各种平台下编译的预置脚本) (与目标的恢复功能相关) (Android的底层的一些库以及守护进程)
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Make utility
GNU make 3.81 or above
Others
wine1.1 or above
mingw32 (to build win32 executable for emulator on linux host) unix2dos/tofrodos (to build windows tool for SDK package)
Compilation tool chain
arm-eabi-4.4.3 (can get from released SW package, prebuilt/linux-x86/toolchain/arm-eabi4.4.3)
JDK1.6
Perl, Python interpreter
Environment Requirements
Install Software
Configure Build Profile
gedit mbldenv.sh then change the Java, eabi, and python path for your computer Take mine for example:
Install Software
Notice: If you fail in building android, try make update-api in ALPS root directory
Install Software
Build a new project
Install Software
Build a new project
sudo apt-get install flex bison gperf build-essential curl zlib1g-dev g++-multilib g++-4.4-multilib libc6-devi386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z1-dev wine mingw32 tofrodos
Build a new project
Take tinnopmt73_gb for Example ./makeMtk listp You will get all the project supported in your source code
Build the whole project tinnopmt73_gb ./makeMtk tinnopmt73_gb r
2. Change default sh soft link to bash
sudo rm /bin/sh sudo ln -s /bin/bash /bin/sh
3. Install JDK 1.6 (recommended installation way)
sudo chmod a+x jdk-6u29-linux-x64.bin ./jdk-6u29-linux-x64.bin
Install Software
Check Environment
From the sceenshot above, we know my environment is failed for my low physical memory. Sometime our computers may not meet the lowest hardware requriement for APLS, So we need to cheat in environment check. gedit mediatek/build/tools/checkEnv.py
Install Software
Check Environment
Now the environment is OK, Of course, you can change “checkEnv.py” for other failure if necessary.
InstallΒιβλιοθήκη SoftwareInstall Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install build relative packages
e the following command to get these packages to install
Install Software
Configure Build Profile
gedit ~/.bashrc Add you Java folder to System Path source ~/.bashrc (Not nessary, it will also be set by mbldenv.sh when makeMtk)
Check Environment
If having finished installing your environment to build ALPS, You can use this command ./makeMtk check-env to know if the environment is prepared
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
MTK ALPS开发环境配置及编译(ppt 83 页)
Android
Android Source Code
|-- Makefile |-- bionic |-- bootloader |-- build |-- cts |-- dalvik |-- development |-- external |-- frameworks |-- hardware |-- kernel |-- mediatek |-- packages |-- prebuilt |-- recovery |-- system
Build Scripts Introduction
1)makeMtk
./mbldenv.sh #mentioned above, set your build env If the following folders or files do not exsits, makeMtk will die mediatek mediatek/config mediatek/build/tools mediatek/config/${project}/ProjectConfig.mk
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Build ALPS
We use “makeMtk” build ALPS
For example
1.Build the whole project for tinnopmt73_gb ./makeMtk tinnopmt73_gb r
2.Build the Linux Kernel for tinnopmt73_gb ./makeMtk tinnopmt73_gb r k ./makeMtk tinnopmt73_gb bootimage
Install Software
Required Packages & recommend installation way
Install Software
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
3. Build the Galley.apk for tinnopmt73_gb ./makeMtk tinnopmt73_gb r dr Gallery
Notice: mk is a link to makeMtk, so we can use mk to replace makeMtk
Build ALPS
You can review the logs in /out/target/product, if there are any errors.
Install Software
Build a new project
You can find all you product images in out/target/product/tinnopmt73_gb
相关文档
最新文档