Android module compilation, mm, mmm

Source: Internet
Author: User

If you only modify the content of a module, but execute make every time, the last wait is a long time.
To compile a module, you only need to execute mm in the directory or its subdirectory of your module to compile a separate APK!
Procedure:
1) Open ~ /Add the. baserc file to the source ~ /I850/build/envsetup. Sh. Add the path of your own file. This removes the need to reference this file before executing the MM command every time you start a new terminal.
2) After completing step 1, you can execute mm in your module at will. To use other quick commands, you can view envsetup. sh files, such as cgrep, jgrep, and resgrep, are queried in different types of files. And M, mmm, etc.
3) You can also use ADB push to push your APK to the simulator or mobile terminal, or generate a new system. img in the project root directory through make-Snod.

 

 

From http://mcuos.com/redirect.php? Tid = 4553 & goto = lastpost

Compilation Module

An app in android can be compiled separately. After compilation, system. IMG needs to be regenerated.
Run in the android directory
$. Build/envsetup. Sh or
$ Source build/envsetup. sh:

-Croot: Changes directory to the top of the tree.
-M: makes from the top of the tree.
-Mm: builds all of the modules in the current directory.
-Mmm: builds all of the modules in the supplied directories.
-Cgrep: greps on all local C/C ++ files.
-Jgrep: greps on all local java files.
-Resgrep: greps on all local Res/*. XML files.
-Godir: Go to the directory containing a file.
-Printconfig: configuration of the current build.
You can use -- help to view the usage.
For example, after modifying a module, you can use $ Mmm <directory> to recompile all the modules in the <directory> and use $ mm to compile all the modules in the current directory.
After editing, you can use $ make Snod to regenerate system. IMG after modifying the Android system.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.