Build android source code 3 --
(2012-09-20 15:22)
分类:
转载地址:http://blog.csdn.net/yajun0601/article/details/7208529
The basic sequence of build commands is as follows:
Initialize
Initialize the environment with the envsetup.sh script. Note that replacing "source" with a single dot
saves a few characters, and the short form is more commonly used in documentation.
$ source build/envsetup.sh
or
$ . build/envsetup.sh Choose a Target
Choose which target to build with lunch. The exact configuration can be passed as an argument, e.g.
$ lunch full-eng
The example above refers to a complete build for the emulator, with all debugging enabled.
If run with no arguments lunch will prompt you to choose a target from the menu.
All build targets take the form BUILD-BUILDTYPE, where the BUILD is a codename referring to the
particular feature combination:
Build name
Device
Notes
full
emulator
fully configured with all languages, apps, input methods
full_maguro
maguro
full build running on Galaxy Nexus GSM/HSPA+
("maguro")
full_panda
panda
full build running on PandaBoard ("panda")
and the BUILDTYPE is one of the following:
Buildtype
Use
user
limited access; suited for production
userdebu
g
like "user" but with root access and debuggability; preferred for debugging